kernel_samsung_a53x/drivers/pci/controller
qizhong cheng 559e1b1867 PCI: mediatek: Clear interrupt status before dispatching handler
[ Upstream commit 4e11c29873a8a296a20f99b3e03095e65ebf897d ]

We found a failure when using the iperf tool during WiFi performance
testing, where some MSIs were received while clearing the interrupt
status, and these MSIs cannot be serviced.

The interrupt status can be cleared even if the MSI status remains pending.
As such, given the edge-triggered interrupt type, its status should be
cleared before being dispatched to the handler of the underling device.

[kwilczynski: commit log, code comment wording]
Link: https://lore.kernel.org/linux-pci/20231211094923.31967-1-jianjun.wang@mediatek.com
Fixes: 43e6409db64d ("PCI: mediatek: Add MSI support for MT2712 and MT7622")
Signed-off-by: qizhong cheng <qizhong.cheng@mediatek.com>
Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
[bhelgaas: rewrap comment]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc:  <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:54 +01:00
..
cadence Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc PCI: keystone: Fix race condition when initializing PHYs 2024-11-18 12:12:50 +01:00
mobiveil Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-aardvark.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-ftpci100.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-host-common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-host-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-hyperv-intf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-hyperv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-loongson.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-mvebu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-rcar-gen2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-tegra.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-thunder-ecam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-thunder-pem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-v3-semi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-versatile.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-xgene-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci-xgene.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-altera-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-altera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-brcmstb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-hisi-error.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-bcma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-msi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc-platform.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-iproc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-mediatek.c PCI: mediatek: Clear interrupt status before dispatching handler 2024-11-18 12:12:54 +01:00
pcie-rcar-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rcar.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip-ep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip-host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-rockchip.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-tango.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx-cpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx-nwl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcie-xilinx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00