Skip to contentSkip to conversation

PCI: Add quirk to disable ASPM L1 for Sandisk SN740 NVMe SSDs

PATCH Superseded Manivannan Sadhasivam 4 participants 5 messages Nov 20, 2025 PCI

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: Add quirk to disable ASPM L1 for Sandisk SN740 NVMe SSDs

The Sandisk SN740 NVMe SSDs cause below AER errors on the upstream Root Port of PCIe controller in Lenovo Thinkpad T14s laptop when ASPM L1 is enabled:

pcieport 0006:00:00.0: AER: Correctable error message received from 0006:01:00.0 nvme 0006:01:00.0: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
nvme 0006:01:00.0: device [15b7:5015] error status/mask=00000001/0000e000
nvme 0006:01:00.0: [ 0] RxErr

Hence, add a quirk to disable L1 state for this SSD.

---
 drivers/pci/quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/pci/quirks.c +12 -0
index 214ed060ca1b..a6f88c5ba2f4 100644
@@ -2525,6 +2525,18 @@ static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev)
  */
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1);
 
+static void quirk_disable_aspm_l1(struct pci_dev *dev)
+{
+       pci_info(dev, "Disabling ASPM L1\n");
+       pci_disable_link_state(dev, PCIE_LINK_STATE_L1);
+}
+
+/*
+ * Sandisk SN740 NVMe SSDs cause AER timeout errors on the upstream PCIe Root
+ * Port when ASPM L1 is enabled.
+ */
+DECLARE_PCI_FIXUP_FINAL(0x15b7, 0x5015, quirk_disable_aspm_l1);
+
 /*
  * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
  * Link bit cleared after starting the link retrain process to allow this
Signature · 1 line
2.48.1
#1 lore raw
Quoted 2 lines · Manivannan Sadhasivam

The Sandisk SN740 NVMe SSDs cause below AER errors on the upstream Root Port of PCIe controller in Lenovo Thinkpad T14s laptop when ASPM L1 is

^ Microsoft Surface Laptop 7

Konrad

Quoted 38 lines

enabled:

pcieport 0006:00:00.0: AER: Correctable error message received from 0006:01:00.0 nvme 0006:01:00.0: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
nvme 0006:01:00.0: device [15b7:5015] error status/mask=00000001/0000e000
nvme 0006:01:00.0: [ 0] RxErr

Hence, add a quirk to disable L1 state for this SSD.

---
 drivers/pci/quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/pci/quirks.c +12 -0
index 214ed060ca1b..a6f88c5ba2f4 100644
@@ -2525,6 +2525,18 @@ static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev)
  */
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1);
 
+static void quirk_disable_aspm_l1(struct pci_dev *dev)
+{
+       pci_info(dev, "Disabling ASPM L1\n");
+       pci_disable_link_state(dev, PCIE_LINK_STATE_L1);
+}
+
+/*
+ * Sandisk SN740 NVMe SSDs cause AER timeout errors on the upstream PCIe Root
+ * Port when ASPM L1 is enabled.
+ */
+DECLARE_PCI_FIXUP_FINAL(0x15b7, 0x5015, quirk_disable_aspm_l1);
+
 /*
  * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
  * Link bit cleared after starting the link retrain process to allow this
#3 lore raw
In reply to Manivannan Sadhasivam

drivers/pci/quirks.c static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev) · line 2532

Quoted 10 lines · Manivannan Sadhasivam

+++ b/drivers/pci/quirks.c

drivers/pci/quirks.c +5 -0
@@ -2525,6 +2525,18 @@ static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev)
  */
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1);
 
+static void quirk_disable_aspm_l1(struct pci_dev *dev)
+{
+       pci_info(dev, "Disabling ASPM L1\n");
+       pci_disable_link_state(dev, PCIE_LINK_STATE_L1);
+}

Shouldn't this be using pcie_aspm_remove_cap()? Existing quirks were converted to this new helper with 30579eebba6a.

Thanks,

Lukas

#2 lore raw
In reply to Konrad Dybcio
Quoted 6 lines · Konrad Dybcio
Quoted 2 lines · Manivannan Sadhasivam

The Sandisk SN740 NVMe SSDs cause below AER errors on the upstream Root Port of PCIe controller in Lenovo Thinkpad T14s laptop when ASPM L1 is

^ Microsoft Surface Laptop 7

Err... Somehow I assumed that it was T14s ;)

@Bjorn: Let me know if I have to resend or you can fix it up while applying.

- Mani

Quoted 40 lines

Konrad

Quoted 38 lines

enabled:

pcieport 0006:00:00.0: AER: Correctable error message received from 0006:01:00.0 nvme 0006:01:00.0: PCIe Bus Error: severity=Correctable, type=Physical Layer, (Receiver ID)
nvme 0006:01:00.0: device [15b7:5015] error status/mask=00000001/0000e000
nvme 0006:01:00.0: [ 0] RxErr

Hence, add a quirk to disable L1 state for this SSD.

---
 drivers/pci/quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/pci/quirks.c +12 -0
index 214ed060ca1b..a6f88c5ba2f4 100644
@@ -2525,6 +2525,18 @@ static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev)
  */
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1);
 
+static void quirk_disable_aspm_l1(struct pci_dev *dev)
+{
+       pci_info(dev, "Disabling ASPM L1\n");
+       pci_disable_link_state(dev, PCIE_LINK_STATE_L1);
+}
+
+/*
+ * Sandisk SN740 NVMe SSDs cause AER timeout errors on the upstream PCIe Root
+ * Port when ASPM L1 is enabled.
+ */
+DECLARE_PCI_FIXUP_FINAL(0x15b7, 0x5015, quirk_disable_aspm_l1);
+
 /*
  * Some Pericom PCIe-to-PCI bridges in reverse mode need the PCIe Retrain
  * Link bit cleared after starting the link retrain process to allow this
Signature · 1 line
மணிவண்ணன் சதாசிவம்
#4 lore raw
In reply to Lukas Wunner
Quoted 6 lines · Lukas Wunner
Quoted 5 lines · Manivannan Sadhasivam

+++ b/drivers/pci/quirks.c

drivers/pci/quirks.c +0 -0
@@ -2525,6 +2525,18 @@ static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev)
  */
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_disable_aspm_l0s_l1);
 
Quoted 9 lines

drivers/pci/quirks.c static void quirk_disable_aspm_l0s_l1(struct pci_dev *dev) · line 2532

Quoted 5 lines
drivers/pci/quirks.c +5 -0
+static void quirk_disable_aspm_l1(struct pci_dev *dev)
+{
+       pci_info(dev, "Disabling ASPM L1\n");
+       pci_disable_link_state(dev, PCIE_LINK_STATE_L1);
+}

Shouldn't this be using pcie_aspm_remove_cap()? Existing quirks were converted to this new helper with 30579eebba6a.

Ah, I didn't notice that Bjorn's series got merged into mainline. Will rebase and send v2.

- Mani

Signature · 1 line
மணிவண்ணன் சதாசிவம்