Repository navigation
arm64: dts: apple: t8103: wire USB4 DP-IN AIC interrupts - #3220
Conversation
Wire the dpin0 and dpin1 AIC level-high interrupts (807/808 on usb4_0_acio and 887/888 on usb4_1_acio) matching the existing DP-IN interrupt assignments on T8103. Without these interrupts, the USB4 host interface falls back to a 20 ms polling timer while docked. Signed-off-by: Erik Bourget <[email protected]>
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 857b0abe13f3 once CI is green
Blockers: none.
Checked: this is t8103.dtsi, the shared SoC file, so every T8103 board gets it. There's no per-board copy. Both ACIO nodes gain interrupt-parent = <&aic>, two level-high AIC lines and interrupt-names = "dpin0", "dpin1" as the binding names them. The driver keeps its 20 ms poll as the fallback when they're absent, so a wrong line would only bring the poll back, with nothing breaking. The row at this head: J313, default cmdline, all 4 IRQs registered, 0 spurious, s2idle + deep pass.
Non-blocking: as your Not yet says, a docked DP-IN hot-plug that shows those counters move would complete the evidence. That can follow as a row on the PR after merge.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
@RyanTheTide Commit The failing J313 (M1 Air) at |
What: Wire the
dpin0anddpin1AIC interrupts (807/808onusb4_0_acio,887/888onusb4_1_acio) int8103.dtsiso USB4 DP-IN uses interrupts instead of the 20 ms polling timer fallback.Tested: J313 (M1 Air, T8103) in fleet candidate
5509a254a6bd(mainfcb124279183plus the unchanged heads038ab73f52a6(#3220),5c89fbdf4ddc(#3221),2b1bab104938(#3297),4b09f0691c2d(#3300),d3cf4ca61518(#3329),b8530d17c96b(#3332),262e263dae4c(#3333) and77114190bfb4(#3274), merged without conflicts), default command line, the J313 device tree built from the candidate on the default Stage 2 (1.0.0b17-gf5ddfff2) as a one-shotaura-try, kernel installed next to the default and removed afterwards, the Mac docked (Thunderbolt 5 dock with Ethernet and a3840x2160@120external display ondcpext): all 4dpin0/dpin1AIC IRQs are registered in/proc/interrupts(381ac0000.cio-dpin0/-dpin1on807/808,501ac0000.cio-dpin0/-dpin1on887/888) with0spurious (/proc/irq/N/spurious:count 0 unhandled 0) at boot and after every sleep;deepS2R x2 ands2idleresume (see Evidence for the one run that hung ins2idle); the dock's display is routed throughdpin0ofusb4_1(display routed to Thunderbolt DP tunnel dpin0, rebuilt after each deep sleep) and the counters of both controllers stayed0through 3 DPMS cycles, 2 deep sleeps and ans2idle; 0 failed units, 0 AppArmor denials. Earlier run at857b0abe13f3(before conflict-freemainmerge038ab73f52a6) also registered all 4 IRQs with 0 spurious interrupts and passeds2idle/deepS2R.Risk: two-way door · T8103 Macs (M1 Air/Pro/mini/iMac).
Not yet: a DP-IN hotplug (display or dock connect/disconnect) counted by
dpin0/dpin1: the dock stayed attached for the whole J313 pass, so none was exercised and the counters stayed0.Details
The interrupt numbers and
IRQ_TYPE_LEVEL_HIGHflags match the existing DP-IN interrupt assignments on T8103 (t8103-peripherals.dtsi:807/808foratc0_dpin0/atc0_dpin1,887/888foratc1_dpin0/atc1_dpin1) and the ACIO DT binding (Documentation/devicetree/bindings/thunderbolt/apple,t8103-usb4-acio.yaml:dpin0,dpin1). Without them,drivers/thunderbolt/apple.cfalls back to a 20 ms polling timer (APPLE_DPIN_POLL_MS) while docked.Evidence
5509a254a6bd(mainfcb124279183plus the unchanged heads038ab73f52a6(arm64: dts: apple: t8103: wire USB4 DP-IN AIC interrupts #3220),5c89fbdf4ddc(PCI: apple: disable L1SS around deep sleep and enable CLKREQ on T8103 #3221),2b1bab104938(pmdomain: apple-pmc: resolve display interfaces via consumer-switched power-domains #3297),4b09f0691c2d(drm/apple: toggle display pipe PMC interfaces across S2R domain transitions #3300),d3cf4ca61518(arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329),b8530d17c96b(soc: apple: pmgr-misc: tiered active fabric/DCS scaling and duty-cycle GPU tracking #3332),262e263dae4c(arm64: dts: apple: mark T8103 and T600x CPU OPP tables opp-shared #3333) and77114190bfb4(soc: apple: sep: report a refused identity unlock, and stop aurora-sep-load on it #3274), merged without conflicts); default command line, the J313 device tree built from the candidate on the default Stage 2 (1.0.0b17-gf5ddfff2) as a one-shotaura-try, kernel installed next to the default and removed afterwards, the Mac docked (Thunderbolt 5 dock with Ethernet and a3840x2160@120external display ondcpext).The same lines, still all
0, after 3 DPMS off/on cycles ofeDP-1and the external output, after each of 2 deep sleeps (the external display is routed throughdpin0again each time) and after ans2idle. Sleeps: 2 deep sleeps (rtcwake -d rtc1 -m mem -s 30, outputs DPMS-off first) and ans2idleresumed on a fresh boot in 3 separate runs and in a repeat on one of those boots. One full run of the sequence hung ins2idleinstead (PM: suspend entry (s2idle), no resume, the hardware watchdog reset the Mac about 80 s later and it came back on the default boot); later runs did not reproduce it, and kernels built from arm64: dts: apple: t6050: allow idle ps_isp_sys domain to power off #3329 alone, soc: apple: pmgr-misc: tiered active fabric/DCS scaling and duty-cycle GPU tracking #3332 alone, and the other six PRs alone each passed the same docked sequence, so it is not attributed to a PR. With the default Stage 2's device tree the kernel instead refuseds2idle(-EBUSY: a DP tunnel to the external display cannot be kept).System:
0failed units after every sequence,0AppArmor denials (SELinux N/A on Arch ARM),0Oops/BUG/WARNING/SError. The kernelerrlines are the 5 that a control boot prints with this dock (apple-dcp ... failed to extract init propsx2,DCPDP2XService admission failed, andof_irq_parse_pcifor the dock's bridge and Ethernet), the deep-sleep resume lines (brcmfmac/hci_bcm4377Unable to change power state from D3hot to D0,PS fpwm1: Failed to reach power state, moreDCPDP2XService admission failed), and at one bootbrcmfmac ... ring 4: r_ptr 0 outside depth 0, which kernels without PCI: apple: disable L1SS around deep sleep and enable CLKREQ on T8103 #3221 (the AVE and iommu/apple-dart, drm/apple: fix T8020 display DART save/wake #3334 trial kernels) also print after deep sleeps.857b0abe13f3(default command line;t8103.dtsianddrivers/thunderbolt/unchanged in merge commit038ab73f52a6): all fourdpin0/dpin1AIC IRQs registered cleanly in/proc/interruptson boot with 0 spurious interrupts;s2idleanddeepS2R passed.038ab73f52a6:make O=_build ARCH=arm64 LLVM=1 CHECK_DTBS=y apple/t8103-j313.dtb apple/t8103-j293.dtb apple/t8103-j274.dtb apple/t8103-j456.dtb apple/t8103-j457.dtb dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/thunderbolt/apple,t8103-usb4-acio.yamlpassed cleanly; CIdt-checksandpr-textpassed at038ab73f52a6.038ab73f52a6:./scripts/checkpatch.pl --strict --git 857b0abe13f3^..857b0abe13f3reported 0 errors, 0 warnings, 0 checks;tools/asahi/run-host-tests.py --only usb4(1/1) and--only hardware-defaults(1/1) passed.