Skip to content

thunderbolt: apple: downgrade repeated Phase 3 AT read timeout syslogs - #3605

Merged
DjDeveloperr merged 1 commit into
mainfrom
fix/acio-syslog-at-timeout
Dec 1, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
fix/acio-syslog-at-timeout

Conversation

@maralcbr

@maralcbr maralcbr commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What: Downgrade repeated Phase 3 "Timeout reading AT register" RTKit syslog entries from apple_cio_rtkit_syslog() to dev_dbg() after logging the first timeout at dev_info() per start/lane-init/connect cycle. On an unanswered Type-C/Thunderbolt port (e.g., a passive debug/power cable), AppleCIOFirmware retries the AT register read every 100 ms indefinitely, flooding dmesg at ~10 lines/s and wrapping the kernel log ring buffer within minutes.

Tested: J416 (MacBook Pro 16" M2 Max, 701ac0000.cio) on 7.3 carry build 7.3.0-lab3ceda392-11ed (lab jobs j1129-174818-e436 and j1129-175551-7b35, b1129-174341-04de, clang 19.1.7 + lld):

  • Before (7.3.0-1-1-ARCH): "lane_init.c:936: Timeout reading AT register" logged at ~10 lines/s indefinitely, wrapping the dmesg ring buffer within ~3 minutes.
  • After (7.3.0-lab3ceda392-11ed): exactly 1 "lane_init.c:936: Timeout reading AT register" line across the entire boot and test run (t=0: 1, t=+6s: 1); dmesg ring buffer remains intact from [0.000000] Booting Linux on physical CPU.
  • boot-health pass (0 failed units, 0 kernel errors on clean boot j1129-174818-e436), omarchy-m-test 0.2.0 pass (0 regressions); checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.

Risk: two-way door · logging-level change only in apple_cio_rtkit_syslog(); RTKit syslog acknowledgement, T6050 lane-init counters, and Thunderbolt bringup behavior are unchanged.

While waiting in Phase 3 for an answering peer, AppleCIOFirmware retries
reading the AT register every 100 ms indefinitely and emits an RTKit
syslog entry on each attempt ("lane_init.c:936: Timeout reading AT
register"). On an unanswered Type-C/Thunderbolt port (such as a passive
debug or power cable), logging every attempt at dev_info() floods the
kernel log at ~10 lines/s and wraps the dmesg ring buffer within a few
minutes.

Log the first AT register read timeout per start/lane-init/connect cycle
at info level and return true from apple_cio_rtkit_syslog() for
subsequent repeats so apple_rtkit downgrades them to dev_dbg(). Reset
the per-controller latch in apple_cio_start() and whenever firmware
reports "Entering Phase 1", "Got AT register 12", or "Entering
Connected".

Signed-off-by: Marcelo Alcantara <[email protected]>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at 222e0e6b

Blockers: none (await queued CI completion before merge).

Checked:

  • Audited drivers/thunderbolt/apple.c (+18/-2) and drivers/soc/apple/rtkit.c (apple_rtkit_syslog_rx_msg()).
  • Returning true from apple_cio_rtkit_syslog() causes apple_rtkit to log at dev_dbg() while still unconditionally sending the APPLE_RTKIT_EP_SYSLOG acknowledgement message.
  • atomic_xchg(&acio->fw_at_read_timeout_logged, 1) != 0 logs the first "Timeout reading AT register" at dev_info() and downgrades subsequent repeats to dev_dbg(); the latch resets in apple_cio_start() and on "Entering Phase 1", "Got AT register 12", and "Entering Connected" without disturbing T6050 lane-init counters.
  • J416 (M2 Max, 701ac0000.cio) hardware verification shows "Timeout reading AT register" dropping from ~10 lines/s (ring wrap in ~3 min) to 1 line across the boot and run, with boot-health and omarchy-m-test passing.
  • DCO Signed-off-by: present; no Apple material or policy issues.
Evidence
  • Diff: drivers/thunderbolt/apple.c (+18/-2).
  • Verified drivers/soc/apple/rtkit.c L1344-1354 confirms ops->syslog_is_debug only selects dev_dbg vs dev_info and always acknowledges the syslog message afterwards.
  • CI at review time: 20 queued, 1 pending, 3 skipped (0 failures).

maralcbr added a commit to omacom/linux-aurora that referenced this pull request Nov 29, 2026
Carry four Omarchy 4.6 RC kernel fixes for J416 / Apple Silicon 7.3 until
upstream merges and retires them:
- aurora-silicon/linux#3605 (222e0e6): downgrade repeated ACIO Phase 3
  AT register read timeout RTKit syslogs to dev_dbg()
- aurora-silicon/linux#3606 (4551c62): bind ane_t6021 quietly when
  firmware is absent so the 7 PMGR domains reach sync_state()
- aurora-silicon/linux#3607 (40936f1, runtime commits 21bf1ba and
  aa3002f): fix BCM4388 codecs_v2 SoA layout and -EINVAL SCO caps
- aurora-silicon/linux#3608 (8783076): honor fault_log_ratelimit() in
  asahi mark_pending_events()

All five carried commits cherry-pick cleanly onto carry/aurora-7.3
(3058cc5) with zero conflicts and passed hardware verification on
m2-max (lab build b1129-174341-04de, jobs j1129-174818-e436 and
j1129-175551-7b35).

Signed-off-by: Marcelo Alcantara <[email protected]>
@github-actions github-actions Bot added area:usb Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at 222e0e6b: not ready yet

Check Detail
CI at head no failing: KUnit asahi, KUnit spi-hid-apple, KUnit avd, KUnit ave, KUnit isp, KUnit jpeg
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at 222e0e6b
Conflicts ok not computed yet
PR text ok Risk: two-way · logging-level change only in appleciortkitsyslog(); RTKit syslog acknowledgement, T6050 lane-init counters, and Thunderbolt bringup behavior are unchanged.

Areas: area:usb

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@erikwb

erikwb commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

J716c (16-inch M5 Max, T6050) at 222e0e6b: boots with a CalDigit TS5 on Thunderbolt; dock, USB and two DisplayPort tunnels come up as on the default kernel, and no Timeout reading AT register line was logged (none on the default kernel either, so this Mac doesn't hit the flood).

Evidence

Batched kernel 7.3.0-ewb368+ = main 219311530ef0 + #3605 222e0e6b + #3311 cc26f9ee + #3310 5fb10c0a + #3458 625fd0f1 + #3459 af388dc6 + #3460 f8442a49, each head merged unchanged. The J716c DTB is built without #include "t6050-media.dtsi" (main hangs the J716c at boot otherwise, #3618). One-shot trial boot on the default command line plus watchdog.open_timeout=120 (recovery watchdog for test boots only); compared with the default 7.3.0-ewb342+ on the same Mac, dock and network.

Thunderbolt devices iOS, TS5; USB2 and USB3 TS5 hubs enumerated at 480M / 10G; DP-1 and DP-4 3840x2160 through the dock. grep -c "Timeout reading AT register": 0 on ewb368, 0 on ewb342. Vulkan CTS with Borealis aurora-wip 437b0b52151, 4 jobs: synchronization list (5354 cases) 4496 pass, 93 flaky, 0 fail; compute sample 490 pass, 760 skip; 0 kernel log lines during the runs, 0 WARN/BUG/Oops. At 16 jobs the machine hangs, and plain main without these PRs hangs the same way (#3621), so that is not from this change. Kernel errors are the same set as the default boot; failed units: aurora-peripherals.service only, same as the default boot.

@DjDeveloperr DjDeveloperr 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.

Logging only. The first AT read timeout of each connect cycle still logs, and repeats go to debug until Phase 1, a connect or a fresh start resets it. Thanks.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@DjDeveloperr
DjDeveloperr merged commit 8bda5e7 into main Dec 1, 2026
31 of 47 checks passed
@DjDeveloperr
DjDeveloperr deleted the fix/acio-syslog-at-timeout branch December 1, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:usb Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants