stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] aacraid: Fix INTx/MSI-x issue with older controllers
@ 2017-02-09 18:04 Dave Carroll
  2017-02-09 23:59 ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Carroll @ 2017-02-09 18:04 UTC (permalink / raw)
  To: Martin K . Petersen, Arkadiusz Miskiewicz, James Bottomley
  Cc: Dave Carroll, linux-scsi, aacraid, Scott Benesh, stable

commit 78cbccd3bd683 ("[PATCH] aacraid: Fix for KDUMP driver hang")
 
caused a problem on older controllers which do not support MSI-x (namely
ASR3405,ASR3805). This patch conditionalizes the previous patch to 
controllers which support MSI-x

cc: stable@vger.kernel.org
Fixes: 78cbccd3bd683c295a44af8050797dc4a41376ff
Reported-by: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
Signed-off-by: Dave Carroll <david.carroll@microsemi.com>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
---
 drivers/scsi/aacraid/comminit.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/aacraid/comminit.c b/drivers/scsi/aacraid/comminit.c
index 4f56b10..d56df36 100644
--- a/drivers/scsi/aacraid/comminit.c
+++ b/drivers/scsi/aacraid/comminit.c
@@ -50,9 +50,13 @@ struct aac_common aac_config = {
 
 static inline int aac_is_msix_mode(struct aac_dev *dev)
 {
-	u32 status;
+	u32 status = 0;
 
-	status = src_readl(dev, MUnit.OMR);
+	if (dev->pdev->device == PMC_DEVICE_S6 ||
+		dev->pdev->device == PMC_DEVICE_S7 ||
+		dev->pdev->device == PMC_DEVICE_S8) {
+		status = src_readl(dev, MUnit.OMR);
+	}
 	return (status & AAC_INT_MODE_MSIX);
 }
 
-- 
2.8.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] aacraid: Fix INTx/MSI-x issue with older controllers
  2017-02-09 18:04 [PATCH] aacraid: Fix INTx/MSI-x issue with older controllers Dave Carroll
@ 2017-02-09 23:59 ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2017-02-09 23:59 UTC (permalink / raw)
  To: Dave Carroll
  Cc: Martin K . Petersen, Arkadiusz Miskiewicz, James Bottomley,
	linux-scsi, aacraid, Scott Benesh, stable

>>>>> "Dave" == Dave Carroll <david.carroll@microsemi.com> writes:

Dave> commit 78cbccd3bd683 ("[PATCH] aacraid: Fix for KDUMP driver
Dave> hang") caused a problem on older controllers which do not support
Dave> MSI-x (namely ASR3405,ASR3805). This patch conditionalizes the
Dave> previous patch to controllers which support MSI-x

Applied to 4.10/scsi-fixes.

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-09 23:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09 18:04 [PATCH] aacraid: Fix INTx/MSI-x issue with older controllers Dave Carroll
2017-02-09 23:59 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).