-
Notifications
You must be signed in to change notification settings - Fork 929
[rescue] Do not automatically reboot #26728
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
Conversation
eb76230 to
f52a739
Compare
| self.uart.set_break(true)?; | ||
| } | ||
| EntryMode::None => { | ||
| self.uart.set_break(true)?; |
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.
Does the ROM_EXT print its banner again, (and reset to initial mode), if it detects break condition? That makes sense.
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.
Break, on its own, does not affect the rescue state. EntryMode::None is for test cases that may have some out-of-band mechanism of resetting the chip or triggering rescue mode.
We set break condition so that if the chip goes through reset, rescue will be triggered again.
|
I've also added a test to make sure opentitantool interacts correctly with rescue protocol version 0. The test case includes pre-compiled FPGA ROM_EXT binaries. We can remove the test case when we no longer care about supporting version 0. I expect that will be in about 3 to 6 months. |
db8fdca to
3637d99
Compare
Rescue mode should not automatically reboot the chip after processing a data transfer. Instead, the chip should wait for a subsequent command or a reboot request via the `REBO` command. This mode of operation is more aligned with how alternate rescue protocols (like USB-DFU) work. Making this behavior consistent among the supported protocols allows for easier test automation and configuration flows. Addresses: lowRISC#26481 Signed-off-by: Chris Frantz <cfrantz@google.com>
3637d99 to
760db7b
Compare
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin master
git worktree add -d .worktree/backport-26728-to-master origin/master
cd .worktree/backport-26728-to-master
git switch --create backport-26728-to-master
git cherry-pick -x 760db7b73efb7eed9a922147d187ecf72352b0d3 |
Rescue mode should not automatically reboot the chip after processing a data transfer. Instead, the chip should wait for a subsequent command or a reboot request via the
REBOcommand.This mode of operation is more aligned with how alternate rescue protocols (like USB-DFU) work. Making this behavior consistent among the supported protocols allows for easier test automation and configuration flows.
Addresses: #26481