Skip to contentSkip to conversation

aacraid: controller hangs if kernel uses non-default ASPM policy

PATCH In review Vasily Averin 3 participants 3 messages Nov 11, 2011

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

PATCH 1/1 aacraid: controller hangs if kernel uses non-default ASPM policy

Patch from RHEL6 kernel
- [scsi] aacraid: Disable ASPM by default (Matthew Garrett) [599735] aacraid controller hangs if kernel uses non-default ASPM policy

CC Matthew Garrett <[email protected]>
drivers/scsi/aacraid/linit.c +4 -0
index 3382475..c7b6fed 100644
@@ -38,6 +38,7 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/pci.h>
+#include <linux/pci-aspm.h>
 #include <linux/slab.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
@@ -1108,6 +1109,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
 		unique_id++;
 	}
 
+	pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S | PCIE_LINK_STATE_L1 |
+			       PCIE_LINK_STATE_CLKPM);
+
 	error = pci_enable_device(pdev);
 	if (error)
 		goto out;
Acked-by on v1 1/1
#1 lore raw

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Vasily Averin
Sent: Freitag, 11. November 2011 10:42
To: [email protected]; Adaptec OEM Raid Solutions
Cc: Matthew Garrett; James Bottomley; Mark Salyzyn
Subject: [patch] aacraid: controller hangs if kernel uses non-default ASPM policy

Patch from RHEL6 kernel
- [scsi] aacraid: Disable ASPM by default (Matthew Garrett) [599735] aacraid controller hangs if kernel uses non-default ASPM policy

CC Matthew Garrett <[email protected]>
Acked-by on v1 1/1
#2 lore raw
In reply to Vasily Averin
Quoted 6 lines · Vasily Averin

Patch from RHEL6 kernel
- [scsi] aacraid: Disable ASPM by default (Matthew Garrett) [599735] aacraid controller hangs if kernel uses non-default ASPM policy

CC Matthew Garrett <[email protected]>

Checking the Windows drivers indicates that they disable ASPM under all circumstances, so: