Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[entropy_src/rtl] Fix observe fifo overflow reg #21640

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

h-filali
Copy link

This PR latches the observe FIFO overflow register signal instead of only pulsing it.
For a more detailed explanation have a look at the individual commit messages.

This PR also contains a commit that changes a mubi4 test true signal from strict to loose.
This is done as a follow up for #21369.

Closes #21279

@h-filali h-filali requested a review from a team as a code owner February 23, 2024 10:22
@h-filali h-filali requested review from jadephilipoom, pamaury, vogelpi and jwnrt and removed request for a team and jadephilipoom February 23, 2024 10:22
@h-filali
Copy link
Author

Added @jwnrt and @pamaury as reviewers since this might interest you.

@h-filali h-filali force-pushed the es-fix-observe-fifo-overflow-reg branch 2 times, most recently from f97d1bf to 5eb275b Compare February 23, 2024 10:46
Copy link
Contributor

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

swaccess: "rw0c",
swaccess: "ro",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not a documentation change :-)
Maybe it doesn't make sense to split up this small PR. It's only +16 lines...

Copy link
Author

Choose a reason for hiding this comment

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

I squashed the first two commits.

@h-filali h-filali force-pushed the es-fix-observe-fifo-overflow-reg branch from 5eb275b to 2e34813 Compare February 23, 2024 14:04
Copy link
Contributor

@pamaury pamaury left a comment

Choose a reason for hiding this comment

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

Cannot comment on the RTL but the register/doc and software change look good to me. Thanks @h-filali

@h-filali
Copy link
Author

@pamaury and @vogelpi thanks both for reviewing. Let's see what the CI tells us and then merge!

Hakim Filali added 3 commits February 26, 2024 13:07
…sing

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Hakim Filali <[email protected]>
…nism

This commit aligns SW with the new way of how the observe fifo overflow works.
The overflow is now latched and not only pulsed. Furthermore, the clear doesn't
need to be done by software anymore.

Signed-off-by: Hakim Filali <[email protected]>
This commit changes the mubi4 true test from strict to loose for
the rng_fips register field. This is done to ensure that the entropy_src
still requests high quality entropy even if one of the mubi bits is
flipped.

Signed-off-by: Hakim Filali <[email protected]>
@h-filali h-filali force-pushed the es-fix-observe-fifo-overflow-reg branch from 2e34813 to f3692d2 Compare February 26, 2024 13:07
@vogelpi vogelpi merged commit 3eadcfd into lowRISC:master Feb 26, 2024
32 checks passed
This was referenced Mar 29, 2024
moidx added a commit to moidx/caliptra-rtl that referenced this pull request Apr 23, 2024
Keep applying fw_ov_rd_fifo_overflow instead of pulsing. This commit is
a manual port of the following Opentitan commit:

b454878f2528b49318ff2b604cb8d59a6e59b0ea

Which is associated with
lowRISC/opentitan#21640.

Original commit description:

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Miguel Osorio <[email protected]>
moidx added a commit to moidx/caliptra-rtl that referenced this pull request Apr 24, 2024
Keep applying fw_ov_rd_fifo_overflow instead of pulsing. This commit is
a manual port of the following Opentitan commit:

b454878f2528b49318ff2b604cb8d59a6e59b0ea

Which is associated with
lowRISC/opentitan#21640.

Original commit description:

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Miguel Osorio <[email protected]>
moidx added a commit to moidx/caliptra-rtl that referenced this pull request Apr 24, 2024
Keep applying fw_ov_rd_fifo_overflow instead of pulsing. This commit is
a manual port of the following Opentitan commit:

b454878f2528b49318ff2b604cb8d59a6e59b0ea

Which is associated with
lowRISC/opentitan#21640.

Original commit description:

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Miguel Osorio <[email protected]>
moidx added a commit to moidx/caliptra-rtl that referenced this pull request Apr 25, 2024
Keep applying fw_ov_rd_fifo_overflow instead of pulsing. This commit is
a manual port of the following Opentitan commit:

b454878f2528b49318ff2b604cb8d59a6e59b0ea

Which is associated with
lowRISC/opentitan#21640.

Original commit description:

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Miguel Osorio <[email protected]>
howardtr pushed a commit to chipsalliance/caliptra-rtl that referenced this pull request Apr 25, 2024
Keep applying fw_ov_rd_fifo_overflow instead of pulsing. This commit is
a manual port of the following Opentitan commit:

b454878f2528b49318ff2b604cb8d59a6e59b0ea

Which is associated with
lowRISC/opentitan#21640.

Original commit description:

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Miguel Osorio <[email protected]>
calebofearth pushed a commit to chipsalliance/caliptra-rtl that referenced this pull request May 17, 2024
Keep applying fw_ov_rd_fifo_overflow instead of pulsing. This commit is
a manual port of the following Opentitan commit:

b454878f2528b49318ff2b604cb8d59a6e59b0ea

Which is associated with
lowRISC/opentitan#21640.

Original commit description:

This commit applies the fw_ov_rd_fifo_overflow signal in case of an
overflow. It used to only send a pulse through the register but now
the signal is applied until the FIFO has been emptied once and is
receiving contiguous data again.
This commit also aligns the documentation for the FW_OV_RD_FIFO_OVERFLOW
register. The register is now not clearable by software. It instead
is cleared by hardware.

Signed-off-by: Miguel Osorio <[email protected]>
@h-filali h-filali deleted the es-fix-observe-fifo-overflow-reg branch October 7, 2024 14:11
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.

[entropy_src] Fix Observe FIFO overflow bit
3 participants