Skip to content

Commit ffdadd6

Browse files
ojabmartinkpetersen
authored andcommitted
scsi: mpt3sas: disable ASPM for MPI2 controllers
MPI2 controllers sometimes got lost (i.e. disappear from /sys/bus/pci/devices) if ASMP is enabled. Signed-off-by: Slava Kardakov <[email protected]> Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=60644 Cc: <[email protected]> Acked-by: Sreekanth Reddy <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent f2e767b commit ffdadd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/mpt3sas/mpt3sas_scsih.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include <linux/workqueue.h>
5252
#include <linux/delay.h>
5353
#include <linux/pci.h>
54+
#include <linux/pci-aspm.h>
5455
#include <linux/interrupt.h>
5556
#include <linux/aer.h>
5657
#include <linux/raid_class.h>
@@ -8761,6 +8762,8 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
87618762

87628763
switch (hba_mpi_version) {
87638764
case MPI2_VERSION:
8765+
pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S |
8766+
PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
87648767
/* Use mpt2sas driver host template for SAS 2.0 HBA's */
87658768
shost = scsi_host_alloc(&mpt2sas_driver_template,
87668769
sizeof(struct MPT3SAS_ADAPTER));

0 commit comments

Comments
 (0)