Repository navigation
Conversation
The H17 cold backend previously always slept on a polling cadence in ane_fw_relax() even on platforms whose first interrupt line is the F2H channel IRQ. On T6050 (M5 Pro/Max), IRQ 0 (AIC2 954) signals channel replies and completion events, matching the one-shot wake pattern the H16 backend already uses on T6041. Mark ANE_T6050_PLATFORM with ANE_FW_IRQ_CHANNELS and wire one-shot channel-IRQ waits into ane_fw_cold.c: - Request interrupt 0 with IRQF_NO_AUTOEN when irq_role is ANE_FW_IRQ_CHANNELS, and free it on teardown. - Enable IRQ-assisted waits once the firmware is live (both eager bring-up, lazy first bring-up, warm resume, and cold sleep resume) and disable/synchronize them before power-down or quarantine. - Arm the IRQ only past the initial 30 us spin window and fall back to the bounded poll cadence on timeout, exposing wakeups/timeouts in the execute debugfs stats. Signed-off-by: Satya Benson <satya@benson.earth>
RyanTheTide
left a comment
There was a problem hiding this comment.
Reviewed d64d5a4. IRQ-backed waits are limited to the T6050 channel-IRQ role, retain bounded polling fallback, and are disabled and synchronized before power-down or quarantine. The reported J775c run covers first bring-up, execution, and wake from three s2idle cycles.
There was a problem hiding this comment.
Verdict: MERGE at d64d5a4
Checked: Only T6050 selects the new channel IRQ role. The IRQ stays masked until an eligible wait. The handler re-masks it and changes the sequence under the same lock, and power-down and quarantine disable and synchronize it. The AIC2 chip uses direct mask/unmask callbacks. I checked the unchanged polling fallback and verified the reported 334 boot/transport KUnit cases and J775c bring-up and three-resume receipts for this head.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
What: Mark
ANE_T6050_PLATFORMwithANE_FW_IRQ_CHANNELSand wire one-shot channel-IRQ wakes into the H17 cold backend (ane_fw_cold.c) so firmware waits end on the channel interrupt instead of sleeping out the full poll interval.Tested:
T6050 / J775c(Apple M5 Max, default command line) at exact headd64d5a4854a6inside batched candidate7f0aa88166ed(linux-aurora-ane4): boots cleanly,0failed units,0new kernel errors, 3/3 15 s RTCs2idlePASS (suspend_stats 3/0); AIC2 IRQ 66490 (ane-h17) wakes immediately after lazy first bring-up (435–526IRQ wakeups per 100 executes across copy andIN_PLACEruns,0IRQ storms) and after each sleep cycle (181–183wakeups per 41 executes). KUnitboot.kunitconfig+transport.kunitconfig334/334passed;checkpatch.pl --strict0/0/0.Risk: two-way door ·
T6050Macs (M5 Pro/M5 Max); other H17 platforms retainirq_role != ANE_FW_IRQ_CHANNELSand keep existing polled behavior.Not yet: Nothing.
Details
Matches the one-shot channel-IRQ wait pattern already used by
ane_h16_backend.conT6041:IRQF_NO_AUTOENwhensoc->irq_role == ANE_FW_IRQ_CHANNELS, and frees it inane_fw_observer_free().ane_fw_first_bringup(), warm resume, and cold sleep resume) and disables/synchronizes them before power-down or quarantine.irq_wakeupsandirq_timeoutsin debugfs.Evidence