[aspeed][Nexthop] Enable UDMA on the AST2700 BMC uart12 console - #614
Open
jack-nexthop wants to merge 1 commit into
Open
[aspeed][Nexthop] Enable UDMA on the AST2700 BMC uart12 console#614jack-nexthop wants to merge 1 commit into
jack-nexthop wants to merge 1 commit into
Conversation
Enable dma-mode on uart12 in the NextHop B27 R0 device tree and add
fixes to make the UDMA console usable:
-`serial-8250_aspeed-fix-UDMA-ring-pointer-desync.patch`:
Keep driver's xmit kfifo and RX ring indices aligned with the
UDMA engine's ring pointers (software readonly, preserved
across channel reset) across `flush_buffer`, `set_termios`
and `open`. Without this the console hangs in `tcsetattr()`
on the second and later logins and wedges `RX` on the
first `termios` change (bricking console until
`serial-getty@ttyS12.service` is restarted)
-`soc-aspeed-udma-lower-idle-timeout.patch`
Lower `UDMA_TMOUT` from `0x200` (`~98.5`ms on AST2700) to `0x40`
(`~12` ms) so single keystrokes on a UDMA console are less visibly
delayed
Verified on NextHop B27 R0 (AST2700) hardware
Signed-off-by: Jack Cai <jack@nexthop.ai>
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
paulmenzel
suggested changes
Aug 22, 2026
paulmenzel
left a comment
Contributor
There was a problem hiding this comment.
In the commit message, please don’t indent Verified on NextHop B27 R0 (AST2700) hardware.
Also, for people not knowing ASPEED code, on what repository are your patches based, and what is the plan to upstream them?
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.
Enable dma-mode on uart12 in the NextHop B27 R0 device tree and add fixes to make the UDMA console usable:
-
serial-8250_aspeed-fix-UDMA-ring-pointer-desync.patch:Keep driver's xmit kfifo and RX ring indices aligned with the
UDMA engine's ring pointers (software readonly, preserved
across channel reset) across
flush_buffer,set_termiosand
open. Without this the console hangs intcsetattr()on the second and later logins and wedges
RXon thefirst
termioschange (bricking console untilserial-getty@ttyS12.serviceis restarted)-
soc-aspeed-udma-lower-idle-timeout.patchLower
UDMA_TMOUTfrom0x200(~98.5ms on AST2700) to0x40(~12ms)so single keystrokes on a UDMA console are less visibly delayed
Verified on NextHop B27 R0 (AST2700) hardware