docs: kernel-parameters: document scope of irqaffinity= parameter
PATCH v3 1/1 docs: kernel-parameters: document scope of irqaffinity= parameter
There is a common misconception that the "irqaffinity=" boot parameter acts as a global override for all hardware interrupts. In reality, it only sets the irq_default_affinity mask, which is explicitly ignored by managed interrupts (e.g., modern multiqueue storage controllers).
This patch updates kernel-parameters.txt to document this limitation, directs users to "isolcpus=managed_irq" and Documentation/core-api/irq/managed_irq.rst for further details. Additionally, it updates managed_irq.rst to provide a debugfs example demonstrating the IRQD_AFFINITY_MANAGED state flag.
---
Changes since v2 [1]:
- Reworded the debugfs explanation to explicitly distinguish between active and offline managed IRQ states
- Clarified that the shutdown flags (IRQD_IRQ_DISABLED, IRQD_IRQ_MASKED, etc.) only appear when the CPU is offlined to resolve the previous contradiction with the example output
- Explicitly labeled the debugfs snippet as an "active" managed interrupt
- Used double-colon for literal code block (Bagas Sanjaya)
Changes since v1 [2]:
- Provided an example of a managed IRQ using CONFIG_GENERIC_IRQ_DEBUGFS
- Referenced Documentation/core-api/irq/managed_irq.rst
[1]: https://lore.kernel.org/lkml/[email protected]/
[2]: https://lore.kernel.org/lkml/[email protected]/
--- .../admin-guide/kernel-parameters.txt | 11 ++++ Documentation/core-api/irq/managed_irq.rst | 60 ++++++++++++++++++- 2 files changed, 68 insertions(+), 3 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +11 -0
@@ -2726,6 +2726,17 @@ Kernel parameters irqaffinity= [SMP] Set the default irq affinity mask The argument is a cpu list, as described above. + Note: This parameter only sets the default affinity + for unmanaged interrupts (e.g., legacy single-queue + devices or unmanaged pre/post vectors). It is + explicitly ignored by managed interrupts, such as + those utilised by modern multiqueue storage + controllers. To isolate CPUs from managed + interrupts, see "isolcpus=managed_irq". + + For further details see: + Documentation/core-api/irq/managed_irq.rst + irqchip.gicv2_force_probe= [ARM,ARM64,EARLY] Format: <bool>
Documentation/core-api/irq/managed_irq.rst +57 -3
66 lines not on this page · raw message
Signature · 1 line
2.51.0