linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86/hyperv: MSI parent domain conversion
@ 2025-06-30 10:26 Nam Cao
  2025-06-30 10:26 ` [PATCH v2 1/2] irqchip/irq-msi-lib: Select CONFIG_GENERIC_MSI_IRQ Nam Cao
  2025-06-30 10:26 ` [PATCH v2 2/2] x86/hyperv: Switch to msi_create_parent_irq_domain() Nam Cao
  0 siblings, 2 replies; 6+ messages in thread
From: Nam Cao @ 2025-06-30 10:26 UTC (permalink / raw)
  To: K . Y . Srinivasan, Marc Zyngier, Haiyang Zhang, Wei Liu,
	Dexuan Cui, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, x86, H . Peter Anvin, linux-hyperv, linux-kernel
  Cc: Nam Cao

The initial implementation of PCI/MSI interrupt domains in the hierarchical
interrupt domain model used a shortcut by providing a global PCI/MSI
domain.

This works because the PCI/MSI[X] hardware is standardized and uniform, but
it violates the basic design principle of hierarchical interrupt domains:
Each hardware block involved in the interrupt delivery chain should have a
separate interrupt domain.

For PCI/MSI[X], the interrupt controller is per PCI device and not a global
made-up entity.

Unsurprisingly, the shortcut turned out to have downsides as it does not
allow dynamic allocation of interrupt vectors after initialization and it
prevents supporting IMS on PCI. For further details, see:

https://lore.kernel.org/lkml/20221111120501.026511281@linutronix.de/

The solution is implementing per device MSI domains, this means the
entities which provide global PCI/MSI domain so far have to implement MSI
parent domain functionality instead.

This series:

  - Fixup a dependency problem with CONFIG_GENERIC_MSI_IRQ

  - converts the x86 hyperv driver to implement MSI parent domain.

Changes in v2:

  - Add the first fixup patch to resolve a build failure

  - Add clarification to the TODO note.

 arch/x86/hyperv/irqdomain.c | 111 ++++++++++++++++++++++++------------
 drivers/hv/Kconfig          |   1 +
 drivers/irqchip/Kconfig     |   1 +
 3 files changed, 78 insertions(+), 35 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-18 19:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 10:26 [PATCH v2 0/2] x86/hyperv: MSI parent domain conversion Nam Cao
2025-06-30 10:26 ` [PATCH v2 1/2] irqchip/irq-msi-lib: Select CONFIG_GENERIC_MSI_IRQ Nam Cao
2025-06-30 10:26 ` [PATCH v2 2/2] x86/hyperv: Switch to msi_create_parent_irq_domain() Nam Cao
2025-07-09 23:40   ` Wei Liu
2025-07-15 19:09     ` Nuno Das Neves
2025-07-18 19:08       ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).