Skip to content

Conversation

AlexJones0
Copy link

Although the DIS disablement register was being reset on reset, the flash mmio.mem memory region's enablement was not being reset. This caused some difficult to debug issues due to QEMU's non-determinism where resets could occur before or after SW disables the flash on ROM_EXT boot failures, essentially permanently locking Earlgrey out of its flash in some executions. Fix this and add a trace to make future debugging easier.

This helps debugging races involving flash resets, so it is quite useful
to have as a trace.

Signed-off-by: Alex Jones <[email protected]>
Although the `DIS` disablement register was being reset on reset, the
flash mmio `mem` memory region's enablement was not being reset. This
caused some difficult to debug issues due to QEMU's non-determinism
where resets could occur before or after SW disables the flash,
essentially permanently locking Earlgrey out of its flash.

Signed-off-by: Alex Jones <[email protected]>
Copy link

@rivos-eblot rivos-eblot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AlexJones0 AlexJones0 merged commit cce2368 into lowRISC:ot-9.2.0 Oct 3, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants