linux_dsm_epyc7002/drivers/pci/pcie
Oza Pawandeep 56abbf8ad7 PCI/DPC: Clear interrupt status in interrupt handler top half
The generic IRQ handling code ensures that an interrupt handler runs with
its interrupt masked or disabled.  If the interrupt is level-triggered, the
interrupt handler must tell its device to stop asserting the interrupt
before returning.  If it doesn't, we will immediately take the interrupt
again when the handler returns and the generic code unmasks the interrupt.

The driver doesn't know whether its interrupt is edge- or level-triggered,
so it must clear its interrupt source directly in its interrupt handler.

Previously we cleared the DPC interrupt status in the bottom half, i.e., in
deferred work, which can cause an interrupt storm if the DPC interrupt
happens to be level-triggered, e.g., if we're using INTx instead of MSI.

Clear the DPC interrupt status bit in the interrupt handler, not in the
deferred work.

Signed-off-by: Oza Pawandeep <poza@codeaurora.org>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
2018-05-16 15:59:35 -05:00
..
aer Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
aspm.c Merge branch 'pci/misc' 2018-04-04 13:27:45 -05:00
dpc.c PCI/DPC: Clear interrupt status in interrupt handler top half 2018-05-16 15:59:35 -05:00
Kconfig Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00
Makefile Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
pme.c PCI/portdrv: Merge pcieport_if.h into portdrv.h 2018-03-09 11:42:01 -06:00
portdrv_acpi.c PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS 2018-03-30 17:33:34 -05:00
portdrv_core.c Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
portdrv_pci.c Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
portdrv.h Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
ptm.c Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00