linux-stable/drivers/pci
Jeffrey Hugo 3ce4ea00e2 PCI: hv: Fix interrupt mapping for multi-MSI
[ upstream change a2bad844a6 ]

According to Dexuan, the hypervisor folks beleive that multi-msi
allocations are not correct.  compose_msi_msg() will allocate multi-msi
one by one.  However, multi-msi is a block of related MSIs, with alignment
requirements.  In order for the hypervisor to allocate properly aligned
and consecutive entries in the IOMMU Interrupt Remapping Table, there
should be a single mapping request that requests all of the multi-msi
vectors in one shot.

Dexuan suggests detecting the multi-msi case and composing a single
request related to the first MSI.  Then for the other MSIs in the same
block, use the cached information.  This appears to be viable, so do it.

Suggested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1652282599-21643-1-git-send-email-quic_jhugo@quicinc.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Signed-off-by: Carl Vanderlip <quic_carlv@quicinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-29 17:27:57 +02:00
..
controller PCI: hv: Fix interrupt mapping for multi-MSI 2022-07-29 17:27:57 +02:00
endpoint PCI: endpoint: Fix misused goto label 2022-03-07 11:42:12 +00:00
hotplug pci-v5.18-changes 2022-03-25 13:02:05 -07:00
msi PCI/MSI: Remove bogus warning in pci_irq_get_affinity() 2022-02-04 09:54:20 +01:00
pcie PCI/AER: Clear MULTI_ERR_COR/UNCOR_RCV bits 2022-06-09 10:30:31 +02:00
switch
access.c PCI: Reduce warnings on possible RW1C corruption 2022-03-04 15:59:52 -06:00
ats.c
bus.c
ecam.c
host-bridge.c
iov.c PCI/IOV: Fix wrong kernel-doc identifier 2022-03-07 12:06:10 -07:00
irq.c
Kconfig PCI/VGA: Move vgaarb to drivers/pci 2022-03-09 18:30:46 -06:00
Makefile PCI/VGA: Move vgaarb to drivers/pci 2022-03-09 18:30:46 -06:00
mmap.c
of.c
p2pdma.c PCI/P2PDMA: Add Intel 3rd Gen Intel Xeon Scalable Processors to whitelist 2022-02-25 11:03:30 -06:00
pci-acpi.c PCI/ACPI: Allow D3 only if Root Port can signal and wake from D3 2022-06-09 10:30:21 +02:00
pci-bridge-emul.c Merge branch 'remotes/lorenzo/pci/mvebu' 2022-03-22 17:16:25 -05:00
pci-bridge-emul.h PCI: pci-bridge-emul: Add support for PCI Bridge Subsystem Vendor ID capability 2022-02-22 16:04:19 +00:00
pci-driver.c Changes in this cycle were: 2022-03-22 14:39:12 -07:00
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c PCI: Remove unused assignments 2022-03-22 11:23:53 -05:00
pci.c PCI/PM: Fix bridge_d3_blacklist[] Elo i2 overwrite of Gigabyte X299 2022-06-09 10:30:44 +02:00
pci.h
probe.c pci-v5.17-changes 2022-01-16 08:08:11 +02:00
proc.c PCI: Remove unused assignments 2022-03-22 11:23:53 -05:00
quirks.c PCI/ASPM: Make Intel DG2 L1 acceptable latency unlimited 2022-06-09 10:29:48 +02:00
remove.c
rom.c
search.c
setup-bus.c Merge branch 'pci/misc' 2022-03-22 17:16:21 -05:00
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vgaarb.c PCI/VGA: Replace full MIT license text with SPDX identifier 2022-03-09 18:31:34 -06:00
vpd.c
xen-pcifront.c xen/grant-table: remove readonly parameter from functions 2022-03-15 20:34:40 -05:00