瀏覽代碼

scsi: ipr: Fix runaway IRQs when falling back from MSI to LSI

LSIs must be ack'ed with an MMIO otherwise they remain asserted
forever. This is controlled by the "clear_isr" flag.

While we set that flag properly when deciding initially whether to use
LSIs or MSIs, we fail to set it if we first chose MSIs, the test fails,
then fallback to LSIs.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Benjamin Herrenschmidt 9 年之前
父節點
當前提交
9dadfb973f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/scsi/ipr.c

+ 1 - 0
drivers/scsi/ipr.c

@@ -10157,6 +10157,7 @@ static int ipr_probe_ioa(struct pci_dev *pdev,
 			pci_free_irq_vectors(pdev);
 
 			ioa_cfg->nvectors = 1;
+			ioa_cfg->clear_isr = 1;
 			break;
 		default:
 			goto out_msi_disable;