Fast, Safe, and Asleep: Bringing Runtime PM To Modern IOMMUs
summary
Integrates Linux runtime power management into arm-smmu-v3 by using device links for supplier/consumer relationships, marking command queues with a stop flag in the producer index to reject new submissions, and eliding TLB invalidations while asleep so wake always does a full flush. Replaces RPM lock-heavy fast paths with a lockless producer-slot reservation, drains hardware queues before poweroff, and re-enables command queues before translations. On an Ampere 116-core server the patched driver shows near-zero throughput regression; resume latency is higher (roughly 2× due to full TLB flush).
AI-written summary · about
chapters (17)
- 0:00Introduction and speaker
- 0:20What is an IOMMU
- 3:29DMA API and IOMMU mapping
- 4:52IOMMUs in cloud and mobile
- 6:16Problem with no power management
- 7:59Why traditional IOMMUs worked
- 8:20Modern IOMMU architecture
- 9:24Paradox with runtime PM
- 12:35Design pillars for solution
- 13:19Using device links for dependency
- 14:24Sleep contract and TLB maintenance
- 16:50Quiescence and producer queues
- 17:53First attempt with atomics
- 20:04Restaurant analogy and solution
- 21:48Suspend and resume flow
- 23:14Performance results
- 24:37Q&A and acknowledgments
