]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: hv: Switch to msi_create_parent_irq_domain()
authorNam Cao <namcao@linutronix.de>
Mon, 7 Jul 2025 08:20:16 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jul 2025 11:57:00 +0000 (12:57 +0100)
commit5f83d6337c9c436d7b1a6580ca060122cb937551
tree8b8ede8810d509f174218eb65568170b9d6a6d38
parenta6b0465bd2833f3ca9e92d8c9a422b7be6e40fc9
PCI: hv: Switch to msi_create_parent_irq_domain()

Move away from the legacy MSI domain setup, switch to use
msi_create_parent_irq_domain().

While doing the conversion, I noticed that hv_compose_msi_msg() is doing
more than it is supposed to (composing message). This function also
allocates and populates struct tran_int_desc, which should be done in
hv_pcie_domain_alloc() instead. It works, but it is not the correct design.
However, I have no hardware to test such change, therefore I leave a TODO
note.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Tested-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/pci/Kconfig
drivers/pci/controller/pci-hyperv.c