OSDN Git Service

cxl/pci: Fix irq oneshot expectations
authorDan Williams <dan.j.williams@intel.com>
Mon, 30 Jan 2023 23:39:26 +0000 (15:39 -0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 30 Jan 2023 23:39:26 +0000 (15:39 -0800)
commit5a84711fd734c09b7d991b00657ba61a96612254
tree615153647abbab81fc5222ba8c2b09b819a4c6e8
parentfa8843451bec55f900b8673d9ddc0be02a61528a
cxl/pci: Fix irq oneshot expectations

The IRQ core expects that users of the default hardirq handler specify
IRQF_ONESHOT to keep interrupts disabled until the threaded handler
runs. That meets the CXL driver's expectations since it is an edge
triggered MSI and this flag would have been passed by default using
pci_request_irq() instead of devm_request_threaded_irq().

Fixes: a49aa8141b65 ("cxl/mem: Wire up event interrupts")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/pci.c