Skip to content

Commit 1c0da0a

Browse files
ojabgregkh
authored andcommitted
scsi: mpt3sas: disable ASPM for MPI2 controllers
commit ffdadd68af5a397b8a52289ab39d62e1acb39e63 upstream. MPI2 controllers sometimes got lost (i.e. disappear from /sys/bus/pci/devices) if ASMP is enabled. Signed-off-by: Slava Kardakov <ojab@ojab.ru> Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=60644 Acked-by: Sreekanth Reddy <Sreekanth.Reddy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4d6bdf7 commit 1c0da0a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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>
@@ -8483,6 +8484,8 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
84838484

84848485
switch (hba_mpi_version) {
84858486
case MPI2_VERSION:
8487+
pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S |
8488+
PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
84868489
/* Use mpt2sas driver host template for SAS 2.0 HBA's */
84878490
shost = scsi_host_alloc(&mpt2sas_driver_template,
84888491
sizeof(struct MPT3SAS_ADAPTER));

0 commit comments

Comments
 (0)