chipsalliance / caliptra-sw

Caliptra software (ROM, FMC, runtime firmware), and libraries/tools needed to build and test
Apache License 2.0
94 stars 44 forks source link

Verilator test failure: caliptra-rom::all test_fake_rom::test_fake_rom_update_reset #777

Closed korran closed 1 year ago

korran commented 1 year ago
        FAIL [ 778.884s] caliptra-rom::all test_fake_rom::test_fake_rom_update_reset

--- STDOUT:              caliptra-rom::all test_fake_rom::test_fake_rom_update_reset ---

running 1 test
      6,155 ready_for_fuses is high
      6,333 writing to cptra_bootfsm_go
test test_fake_rom::test_fake_rom_update_reset has been running for over 60 seconds
    195,155 UART: 
    195,199 UART: Running Caliptra ROM ...
    196,298 UART: 
    205,499 UART: [state] CFI Enabled
    207,281 UART: [state] LifecycleState = Unprovisioned
    209,076 UART: [state] DebugLocked = No
    211,108 UART: [state] Watchdog Timer is not started because the device is not locked for debugging
    215,842 UART: [fake-rom-cold-reset] ++
    221,236 <<< Executing mbox cmd 0x46574c44 (60276 bytes) from SoC
    221,273 UART: [afmc] Waiting for Commands...
    260,188 UART: 
    260,256 UART: [afmc] Received Image of size 60276 bytes
    366,720 UART: [afmc] Image verified using Vendor ECC Key Index 0
    511,581 UART: [afmc] Loading FMC at address 0x40000000 len 9628
    548,116 UART: [afmc] Loading Runtime at address 0x40004000 len 44764
    708,408 >>> mbox cmd response: success
    714,478 UART: [fake-rom-cold-reset] --
    715,549 <<< Executing mbox cmd 0x10000004 (0 bytes) from SoC
    721,755 UART: [fht] Storing FHT @ 0x50003000
    726,912 UART: [state] Watchdog Timer is not stopped because the device is not locked for debugging
    733,314 UART: [state] Locking Datavault
    737,016 UART: [state] Locking PCR0, PCR1 and PCR31
    738,634 UART: [state] Locking ICCM
    740,916 UART: [exit] Launching FMC @ 0x40000000
    749,235 UART: 
    749,265 UART: Running Caliptra FMC ...
    750,024 UART: 
    750,079 UART: [fmc] Received command: 0x10000004
    751,201 >>> mbox cmd response: success
    751,536 UART: 
    751,579 UART: Running Caliptra ROM ...
    752,679 UART: 
    753,531 UART: [state] CFI Enabled
    755,313 UART: [state] LifecycleState = Unprovisioned
    757,108 UART: [state] DebugLocked = No
    759,840 UART: [state] Watchdog Timer is not started because the device is not locked for debugging
    765,655 UART: [update-reset] ++
    766,430 <<< Executing mbox cmd 0x46574c44 (60276 bytes) from SoC
    766,498 UART: Failed To Get Mailbox Transaction
    771,205 UART: ROM Non-Fatal Error: 0x01040004
    774,723 UART: [state] Watchdog Timer is not stopped because the device is not locked for debugging
    780,761 UART: [state] Locking Datavault
    784,602 UART: [state] Locking PCR0, PCR1 and PCR31
    786,220 UART: [state] Locking ICCM
    788,740 UART: [exit] Launching FMC @ 0x40000000
    797,063 UART: 
    797,094 UART: Running Caliptra FMC ...
    797,854 UART: 
    797,907 UART: [fmc] Received command: 0x46574C44
* TESTCASE PASSED
    799,621 >>> mbox cmd response: failed
test test_fake_rom::test_fake_rom_update_reset ... FAILED

failures:

failures:
    test_fake_rom::test_fake_rom_update_reset

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 94 filtered out; finished in 778.87s

--- STDERR:              caliptra-rom::all test_fake_rom::test_fake_rom_update_reset ---
warning: unknown feature specified for `-Ctarget-feature`: `unaligned-scalar-mem`
  |
  = note: it is still passed through to the codegen backend
  = help: consider filing a feature request

warning: unknown feature specified for `-Ctarget-feature`: `unaligned-scalar-mem`
  |
  = note: it is still passed through to the codegen backend
  = help: consider filing a feature request

warning: unknown feature specified for `-Ctarget-feature`: `unaligned-scalar-mem`
  |
  = note: it is still passed through to the codegen backend
  = help: consider filing a feature request

thread 'test_fake_rom::test_fake_rom_update_reset' panicked at 'called `Result::unwrap()` on an `Err` value: MailboxCmdFailed(17039364)', rom/dev/tests/all/test_fake_rom.rs:152:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
korran commented 1 year ago

Passes in latest nightly test run. Likely fixed by #792

3104:2023-09-19T01:16:22.5506662Z         PASS [1363.953s] caliptra-rom::test_fake_rom test_fake_rom_update_reset