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

[rom] Make the banner message non-blocking #23820

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

cfrantz
Copy link
Contributor

@cfrantz cfrantz commented Jun 26, 2024

  1. The ROM banner takes about 2 ms to be sent from the UART at 115200 bps. Rather than wait for it to complete transmission, emit the characters into the UART FIFO and proceed with boot. Hashing the FLASH contents and performing signature verification typically will take an additional 2.4 + 4.2 ms. There is no need to delay boot waiting for the UART.
  2. Fix the ROM's terminal states to wait for UART output to complete.

@cfrantz cfrantz requested a review from a team as a code owner June 26, 2024 20:24
@cfrantz cfrantz removed the request for review from a team June 26, 2024 20:24
@cfrantz
Copy link
Contributor Author

cfrantz commented Jun 26, 2024

As discussed offline: an boot-speed optimization for UART output.

1. The ROM banner takes about 2 ms to be sent from the UART at 115200
   bps.  Rather than wait for it to complete transmission, emit the
   characters into the UART FIFO and proceed with boot.  Hashing the
   FLASH contents and performing signature verification typically will
   take an additional 2.4 + 4.2 ms.  There is no need to delay boot
   waiting for the UART.
2. Fix the ROM's terminal states to wait for UART output to complete.

Signed-off-by: Chris Frantz <[email protected]>
@cfrantz
Copy link
Contributor Author

cfrantz commented Jun 27, 2024

The CI test failure is unrelated to this change.

@cfrantz cfrantz merged commit 8db2a18 into lowRISC:master Jun 27, 2024
30 of 32 checks passed
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.

3 participants