Repository navigation
thunderbolt: apple: downgrade repeated Phase 3 AT read timeout syslogs - #3605
Conversation
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]>
There was a problem hiding this comment.
Verdict: MERGE at 222e0e6b
Blockers: none (await queued CI completion before merge).
Checked:
- Audited
drivers/thunderbolt/apple.c(+18/-2) anddrivers/soc/apple/rtkit.c(apple_rtkit_syslog_rx_msg()). - Returning
truefromapple_cio_rtkit_syslog()causesapple_rtkitto log atdev_dbg()while still unconditionally sending theAPPLE_RTKIT_EP_SYSLOGacknowledgement message. atomic_xchg(&acio->fw_at_read_timeout_logged, 1) != 0logs the first"Timeout reading AT register"atdev_info()and downgrades subsequent repeats todev_dbg(); the latch resets inapple_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, withboot-healthandomarchy-m-testpassing. - DCO
Signed-off-by:present; no Apple material or policy issues.
Evidence
- Diff:
drivers/thunderbolt/apple.c(+18/-2). - Verified
drivers/soc/apple/rtkit.cL1344-1354 confirmsops->syslog_is_debugonly selectsdev_dbgvsdev_infoand always acknowledges the syslog message afterwards. - CI at review time: 20 queued, 1 pending, 3 skipped (
0failures).
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]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J716c (16-inch M5 Max, T6050) at EvidenceBatched kernel Thunderbolt devices |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
What: Downgrade repeated Phase 3
"Timeout reading AT register"RTKit syslog entries fromapple_cio_rtkit_syslog()todev_dbg()after logging the first timeout atdev_info()per start/lane-init/connect cycle. On an unanswered Type-C/Thunderbolt port (e.g., a passive debug/power cable),AppleCIOFirmwareretries the AT register read every 100 ms indefinitely, floodingdmesgat ~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 build7.3.0-lab3ceda392-11ed(lab jobsj1129-174818-e436andj1129-175551-7b35,b1129-174341-04de, clang 19.1.7 + lld):7.3.0-1-1-ARCH):"lane_init.c:936: Timeout reading AT register"logged at ~10 lines/s indefinitely, wrapping thedmesgring buffer within ~3 minutes.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);dmesgring buffer remains intact from[0.000000] Booting Linux on physical CPU.boot-healthpass (0 failed units, 0 kernel errors on clean bootj1129-174818-e436),omarchy-m-test 0.2.0pass (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.