Skip to content

phy: apple: hard-recover a wedged T6040 ATC PHY - #1350

Merged
RyanTheTide merged 3 commits into
integration/aurorafrom
ctl/t-6085-phy-apple-t6040-hard-recovery-of-a-wedged-atc-ph
Nov 10, 2026
Merged

RyanTheTide merged 3 commits into
integration/aurorafrom
ctl/t-6085-phy-apple-t6040-hard-recovery-of-a-wedged-atc-ph

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • stop the T6040 PHY RTKit transport on detach and treat Power Down replies as asynchronous
  • hard-cycle common_dp and phymxwrap after a missed reply or failed tune, then retry one full bring-up
  • add one-shot debugfs fault injection and KUnit coverage for the bounded recovery state machine
  • implement the exact T6041 PMGR CIO reconfiguration reset contract

Tests

  • buildbox arm64 Image, dtbs, and modules build (h-51440)
  • buildbox arm64 QEMU KUnit: 3/3 recovery tests passed (h-51449)
  • git diff --check
  • strict checkpatch on the final patch and new files

RyanTheTide and others added 3 commits November 10, 2026 02:04
Treat the Power Down reply as asynchronous and leave RTKit's mailbox transport stopped after detach. If shutdown was not acknowledged or a tune fails, force common_dp and phymxwrap off for a configurable dwell, restart the transport, and retry one complete PHY bring-up.

Add a one-shot debugfs acknowledgement drop and KUnit coverage for missed replies, failed tunes, and retry exhaustion.

Assisted-by: LLM
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Implement the T6041 PMGR CIO reset contract as a dedicated reset provider: serialize the shared register, wait up to 192 ms before and after the request, and force a read-modify-write of the per-port request bit.

Describe the exact compatible and use it for the DT-provided 0x2024 resource instead of the shorter generic fallback.

Assisted-by: LLM
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
…d-recovery-of-a-wedged-atc-ph

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 10, 2026 07:25
@RyanTheTide
RyanTheTide merged commit 3eda89f into integration/aurora Nov 10, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the ctl/t-6085-phy-apple-t6040-hard-recovery-of-a-wedged-atc-ph branch November 16, 2026 05:02
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.

1 participant