linux-stable/include
Jonathan Currier b088ae4e41 PCI/MSI: Add an option to write MSIX ENTRY_DATA before any reads
[ Upstream commit cf761e3dac ]

Commit 7d5ec3d361 ("PCI/MSI: Mask all unused MSI-X entries") introduced a
readl() from ENTRY_VECTOR_CTRL before the writel() to ENTRY_DATA.

This is correct, however some hardware, like the Sun Neptune chips, the NIU
module, will cause an error and/or fatal trap if any MSIX table entry is
read before the corresponding ENTRY_DATA field is written to.

Add an optional early writel() in msix_prepare_msi_desc().

Fixes: 7d5ec3d361 ("PCI/MSI: Mask all unused MSI-X entries")
Signed-off-by: Jonathan Currier <dullfire@yahoo.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20241117234843.19236-2-dullfire@yahoo.com
[ Adjust context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-09-09 18:56:29 +02:00
..
acpi
asm-generic
clocksource
crypto
drm drm/framebuffer: Acquire internal references on GEM handles 2025-07-17 18:35:14 +02:00
dt-bindings
keys
kunit
kvm
linux PCI/MSI: Add an option to write MSIX ENTRY_DATA before any reads 2025-09-09 18:56:29 +02:00
math-emu
media
memory
misc
net netlink: add variable-length / auto integers 2025-09-09 18:56:22 +02:00
pcmcia
ras
rdma
rv
scsi
soc
sound
target
trace btrfs: constify more pointer parameters 2025-08-28 16:28:41 +02:00
uapi netlink: add variable-length / auto integers 2025-09-09 18:56:22 +02:00
ufs scsi: ufs: core: Add OPP support for scaling clocks and regulators 2025-07-10 16:03:14 +02:00
vdso
video
xen