Mask USB interrupt to avoid hardware bug in OpenTitan#2100
Merged
Conversation
Contributor
|
Can we link this with an OT issue? Otherwise I'm worried we'll loose track of it. |
Contributor
Author
|
Working on it. |
Contributor
Author
|
Done. lowRISC/opentitan#3388 I put it in the desc, thought that would be better than requiring people to read through comments? |
Contributor
|
Cool. Can you link to the issue in the comment? |
bradjc
previously approved these changes
Sep 10, 2020
bradjc
reviewed
Sep 10, 2020
Contributor
|
bors r+ |
alistair23
approved these changes
Sep 10, 2020
Contributor
sirchnik
pushed a commit
to sirchnik/tock
that referenced
this pull request
May 12, 2026
2100: Mask USB interrupt to avoid hardware bug in OpenTitan r=bradjc a=phil-levis ### Pull Request Overview USB hardware on current OT master branch seems to have interrupt bugs: running Alarms causes persistent USB CONNECTED interrupts that can't be masked from USBDEV and cause the system to hang. So this PR modifies the PLIC to enable all interrupts *except* for the USB ones. Some open PRs on OT fix this, we'll re-enable USB interrupts when they are merged. To observe this behavior, take a look at the `opentitan-alarm-causes-usb-failures` branch. This bug report came from the alarm redesign branch; separating USB interrupt handling into a separate PR seems advisable. I've entered this as an issue for OpenTitan: lowRISC/opentitan#3388 ### Testing Strategy Compiling and running the multi alarm test. ### TODO or Help Wanted None ### Documentation Updated - [X] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [X] Ran `make prepush`. Co-authored-by: Philip Levis <pal@cs.stanford.edu> Co-authored-by: Brad Campbell <bradjc5@gmail.com>
This file contains hidden or 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
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.
Pull Request Overview
USB hardware on current OT master branch seems to have interrupt bugs: running Alarms causes persistent USB CONNECTED interrupts that can't be masked from USBDEV and cause the system to hang. So this PR modifies the PLIC to enable all interrupts except for the USB ones. Some open PRs on OT fix this, we'll re-enable USB interrupts when they are merged.
To observe this behavior, take a look at the
opentitan-alarm-causes-usb-failuresbranch.This bug report came from the alarm redesign branch; separating USB interrupt handling into a separate PR seems advisable.
I've entered this as an issue for OpenTitan: lowRISC/opentitan#3388
Testing Strategy
Compiling and running the multi alarm test.
TODO or Help Wanted
None
Documentation Updated
/docs, or no updates are required.Formatting
make prepush.