Skip to content

Conversation

@engdoreis
Copy link

@engdoreis engdoreis commented Oct 30, 2025

The bug was caused by the TPM using the flash register bank for tpm. It would only manifest when the flash mode is used with tpm enabled.

fix #266

@rivos-eblot
Copy link

rivos-eblot commented Oct 30, 2025

It would only manifest when the flash mode is used with tpm enabled.

Not only: it triggers immediately without accessing a single TPM register.

As the code that checks of if TPM is enabled reads the wrong register, the TPM code interprets data from another register as TPM being activated...

The bug was caused by the TPM using the flash register bank for tpm.

Signed-off-by: Douglas Reis <doreis@lowrisc.org>
@engdoreis
Copy link
Author

Thanks for explaining. I changed the commit message.

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

@rivos-eblot
Copy link

nit pick: You need to reformat the PR title

@AlexJones0 AlexJones0 changed the title [ot] hw/opentitan: ot_spi_device: Fix regression on the spi_flash ot_spi_device: Fix regression on the spi_flash Oct 30, 2025
@AlexJones0 AlexJones0 merged commit 20e2a5a into lowRISC:ot-9.2.0 Oct 30, 2025
10 checks passed
@engdoreis engdoreis deleted the ot_spi_tpm branch October 31, 2025 15:47
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.

SPI device: major regression with non-flash mode

3 participants