Skip to content

[aspeed][Nexthop] Enable UDMA on the AST2700 BMC uart12 console - #614

Open
jack-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:enable-dma-on-uart12
Open

[aspeed][Nexthop] Enable UDMA on the AST2700 BMC uart12 console#614
jack-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:enable-dma-on-uart12

Conversation

@jack-nexthop

Copy link
Copy Markdown

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.5ms on AST2700) to 0x40 (~12 ms)
so single keystrokes on a UDMA console are less visibly delayed

Verified on NextHop B27 R0 (AST2700) hardware

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>
@jack-nexthop
jack-nexthop requested a review from a team as a code owner August 21, 2026 18:50
@mssonicbld

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@paulmenzel paulmenzel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

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