Skip to contentSkip to conversation

aacraid: Fix INTx/MSI-x issue with older controllers

PATCH Applied Dave Carroll 2 participants 2 messages Feb 9, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aacraid: Fix INTx/MSI-x issue with older controllers

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

---
 drivers/scsi/aacraid/comminit.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/scsi/aacraid/comminit.c +6 -2
index 4f56b10..d56df36 100644
@@ -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);
 }
 
Signature · 1 line
2.8.4
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Dave" == Dave Carroll <[email protected]> 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.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering