-
Notifications
You must be signed in to change notification settings - Fork 781
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
[flash_ctrl] Change FIFO interrupts to status type #21226
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
6 times, most recently
from
February 6, 2024 21:40
4811b62
to
2ae1820
Compare
a-will
approved these changes
Feb 6, 2024
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
5 times, most recently
from
February 6, 2024 23:27
b6abd1b
to
7facc39
Compare
msfschaffner
commented
Feb 6, 2024
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
13 times, most recently
from
February 7, 2024 20:06
c113de9
to
170d878
Compare
rswarbrick
reviewed
Feb 28, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not carefully reviewed the last commit, but the rest looked sensible to me. I think there are a couple of tweaks that might be worth doing to make it easier to understand.
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
6 times, most recently
from
February 28, 2024 23:18
7acf5f0
to
21790b4
Compare
@msfschaffner flash_ctrl block dv cleanup is updated here |
rswarbrick
approved these changes
Feb 29, 2024
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
5 times, most recently
from
February 29, 2024 19:38
380d7ff
to
adbbc22
Compare
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
3 times, most recently
from
March 1, 2024 01:27
49b2191
to
96d2a21
Compare
Only event type interrupts can be cleared by writing 1 to them since they are W1C. Status type interrupts cannot be cleared that way since they are RO for SW. Instead, the underlying cause has to be addressed, such as reading out a FIFO if it is above a certain watermark level. Signed-off-by: Michael Schaffner <[email protected]>
This allows to specify whether a status type interrupt is expected to assert by default. The field is intended to be used in generated DV collateral, primarily. Signed-off-by: Michael Schaffner <[email protected]>
This adds the option to mute status type IRQs in the testutils ISR, given that an IP contains status type interrupts. Signed-off-by: Michael Schaffner <[email protected]>
Need to increase the version to 2.0.0 due to a SW visible CSR change. The D/V stages should be straightforward to recertify. Signed-off-by: Michael Schaffner <[email protected]>
This fixes lowRISC#21211 Signed-off-by: Michael Schaffner <[email protected]>
Signed-off-by: Jaedon Kim <[email protected]> Signed-off-by: Michael Schaffner <[email protected]>
msfschaffner
force-pushed
the
flash-ctrl-irqs
branch
from
March 1, 2024 01:29
96d2a21
to
5491e54
Compare
4 tasks
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The first two commits patch up common infrastructure:
cip_base_vseq
needs to be adjusted so that it does not fail when status interrupts remain asserted (since they cannot be cleared via a write to theINTR_STATE
register.default
is added to the interrupt declaration in the IP Hjson file. This allows us to define what the default expectation of the interrupt should be during automatically generated tests such as thechip_plic_all_irqs
top-level test. That test is aligned to treat status interrupts differently now. In particular, the ones that are asserted by default will not be enabled until that specific interrupt is being tested.The last two commits are the changes in
flash_ctrl
, aligning the interrupt type behavior according to #21211.This fixes #21211