Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1533588 > unrolled thread

Re: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to LSI

Started byBrian King <brking@linux.vnet.ibm.com>
First post2016-11-30 22:30 +0100
Last post2016-12-01 02:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to  LSI Brian King <brking@linux.vnet.ibm.com> - 2016-11-30 22:30 +0100
    Re: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to LSI "Martin K. Petersen" <martin.petersen@oracle.com> - 2016-12-01 02:00 +0100

#1533588 — Re: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to LSI

FromBrian King <brking@linux.vnet.ibm.com>
Date2016-11-30 22:30 +0100
SubjectRe: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to LSI
Message-ID<sJkBY-2U2-13@gated-at.bofh.it>
Looks good. Thanks! Here is an updated version that should apply
cleanly on top of scsi-next.

8<
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

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>
---

 drivers/scsi/ipr.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/scsi/ipr.c~ipr_misx_fail_intx_clear_isr drivers/scsi/ipr.c
--- scsi/drivers/scsi/ipr.c~ipr_misx_fail_intx_clear_isr	2016-11-29 20:56:27.902534325 -0600
+++ scsi-bjking1/drivers/scsi/ipr.c	2016-11-29 20:56:50.645538533 -0600
@@ -10157,6 +10157,7 @@ static int ipr_probe_ioa(struct pci_dev
 			pci_free_irq_vectors(pdev);
 
 			ioa_cfg->nvectors = 1;
+			ioa_cfg->clear_isr = 1;
 			break;
 		default:
 			goto out_msi_disable;
_

[toc] | [next] | [standalone]


#1533711 — Re: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to LSI

From"Martin K. Petersen" <martin.petersen@oracle.com>
Date2016-12-01 02:00 +0100
SubjectRe: [PATCH] scsi/ipr: Fix runaway IRQs when falling back from MSI to LSI
Message-ID<sJnTb-52M-15@gated-at.bofh.it>
In reply to#1533588
>>>>> "Brian" == Brian King <brking@linux.vnet.ibm.com> writes:

Brian> Looks good. Thanks! Here is an updated version that should apply
Brian> cleanly on top of scsi-next.

Applied to 4.10/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web