Repository navigation
Commit 5dc581a
committed
irqchip/apple-aic, PCI: apple: Let PCIe MSIs wake the system from s2idle
enable_irq_wake() fails for every PCIe device interrupt on Apple silicon:
AIC has neither an irq_set_wake callback nor IRQCHIP_SKIP_SET_WAKE, and
the pcie-apple MSI chips do not forward the request to it. Wakeup
interrupts are therefore disabled with all the others in suspend-to-idle,
and only the SMC (lid, power button), whose mailbox interrupt is
IRQF_NO_SUSPEND, can wake the machine. A keyboard on a Thunderbolt dock,
whose xHCI and root port PME interrupts are MSIs, cannot.
AIC needs no programming to wake a CPU from s2idle: any interrupt left
unmasked does. Mark both AIC chips IRQCHIP_SKIP_SET_WAKE, and forward
irq_set_wake from the pcie-apple MSI bottom chip and the per-device
PCI/MSI chips to the parent. Which devices may wake is still governed by
their power/wakeup setting.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: RJ Skerry-Ryan <[email protected]>1 parent 37e9742 commit 5dc581a
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
| |||
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
| 490 | + | |
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| 434 | + | |
434 | 435 | | |
435 | 436 | | |
436 | 437 | | |
| |||
1641 | 1642 | | |
1642 | 1643 | | |
1643 | 1644 | | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1644 | 1662 | | |
1645 | 1663 | | |
1646 | 1664 | | |
| |||
1650 | 1668 | | |
1651 | 1669 | | |
1652 | 1670 | | |
1653 | | - | |
| 1671 | + | |
1654 | 1672 | | |
1655 | 1673 | | |
1656 | 1674 | | |
| |||
0 commit comments