Skip to content

tools: asahi: model the T8132 members in the ATCPHY USB3 harness - #609

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
conv/atc-usb3-harness
Oct 30, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
conv/atc-usb3-harness

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

tools/asahi/atc-usb3-tests.py stopped compiling on integration/aurora. The harness extracts driver bodies from drivers/phy/apple/atc.c, and the T8132 support added atcphy_pipehandler_lock_timeout(), the T8132 lane and PIPE back ends, a USB2-only power restore and new state members.

  • Extract atcphy_pipehandler_lock_timeout() with the other driver functions (the ACK polling moved there) and point the missing-ack-check mutation at it.
  • Add the new members to the modeled structs. Stub the T8132 back ends and atcphy_usb2_power_on() with assertions, since the modeled machines never select that generation.

Test-only. No driver change.

Testing on buildbox, integration/aurora 010b976 + this commit:

  • python3 tools/asahi/atc-usb3-tests.py: 36 cases pass (it failed to compile before).
  • --mutations: all 49 mutations killed.

🤖 Generated with Claude Code

The T8132 support in atc.c added the PIPE lock timeout helper, T8132
lane and PIPE back ends, a USB2-only power restore and new state
members. The harness extracts the driver bodies, so it stopped
compiling on integration/aurora.

Extract atcphy_pipehandler_lock_timeout() with the other driver
functions, since the ACK polling moved into it, and point the
missing-ack-check mutation there. Add the new members to the modeled
structs, and stub the T8132 back ends and the USB2-only power restore
with assertions: the modeled machines never select that generation.

All 36 cases pass and all 49 mutations are killed.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RyanTheTide
RyanTheTide merged commit 1173b79 into integration/aurora Oct 30, 2026
@RyanTheTide
RyanTheTide deleted the conv/atc-usb3-harness branch October 30, 2026 03:20
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