Skip to contentSkip to conversation

PCI: dwc: Add PCI ID for LECARC PCIe pmu

PATCH Applied Braden Zhang 3 participants 3 messages Jul 21 – Aug 13

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

PATCH v5 1/1 PCI: dwc: Add PCI ID for LECARC PCIe pmu

From: Brett Zhou <[email protected]>

This patch adds support for the PCIe PMU found
on LECARC SoCs.

LECARC platforms use the standard DesignWare PCIe Controller, and the existing DWC driver already handles the enumeration and basic functionality through the generic PCIe core. This patch only adds the PCI vendor ID to the vendor-specific capability (VSEC) list, which enables the standard DWC RAS/DES feature detection.

---
Changes in v5:
- No change: Add PGP sign for b4 apply.
- Link to v4: https://patch.msgid.link/[email protected]

Changes in v4:
- Doc: Update description for the DWC RAS/DES feature detection.
- Link to v3: https://patch.msgid.link/[email protected]

Changes in v3:
- Update: move definition to pcie-dwc.h a
- Format: Update the subject line to follow the style of previous pcie-dwc.h changes.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Format: Use tab to align with lines.
- Link to v1: https://patch.msgid.link/[email protected]

To: Bjorn Helgaas <[email protected]>
To: Jingoo Han <[email protected]>
To: Manivannan Sadhasivam <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 include/linux/pcie-dwc.h | 4 ++++
 1 file changed, 4 insertions(+)
include/linux/pcie-dwc.h +4 -0
index 8ff778e7aec0..0df5fa81b561 100644
@@ -11,6 +11,8 @@
 
 #include <linux/pci_ids.h>
 
+#define PCI_VENDOR_ID_LECARC           0x0720
+
 struct dwc_pcie_vsec_id {
 	u16 vendor_id;
 	u16 vsec_id;
@@ -32,6 +34,8 @@ static const struct dwc_pcie_vsec_id dwc_pcie_rasdes_vsec_ids[] = {
 	  .vsec_id = 0x02, .vsec_rev = 0x4 },
 	{ .vendor_id = PCI_VENDOR_ID_SAMSUNG,
 	  .vsec_id = 0x02, .vsec_rev = 0x4 },
+	{ .vendor_id = PCI_VENDOR_ID_LECARC,
+	  .vsec_id = 0x02, .vsec_rev = 0x4 },
 	{}
 };
 

---
base-commit: a635d6748234582ea287c5ffeae28b9b23f91c7e
change-id: 20260710-pcie-pmu-5ef78c56c3b6

Best regards,

Signature · 1 line
Braden Zhang <[email protected]>
#1 lore raw
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 12 lines

From: Brett Zhou <[email protected]>

This patch adds support for the PCIe PMU found
on LECARC SoCs.

LECARC platforms use the standard DesignWare PCIe Controller, and the existing DWC driver already handles the enumeration and basic functionality through the generic PCIe core. This patch only adds the PCI vendor ID to the vendor-specific capability (VSEC) list, which enables the standard DWC RAS/DES feature detection.

Quoted 2 lines

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#2 lore raw
In reply to Braden Zhang
Quoted 11 lines · Braden Zhang

This patch adds support for the PCIe PMU found
on LECARC SoCs.

LECARC platforms use the standard DesignWare PCIe Controller, and the existing DWC driver already handles the enumeration and basic functionality through the generic PCIe core. This patch only adds the PCI vendor ID to the vendor-specific capability (VSEC) list, which enables the standard DWC RAS/DES feature detection.

[...]

Applied, thanks!

[1/1] PCI: dwc: Add PCI ID for LECARC PCIe pmu

      commit: 6d99b198629dde79aa098214e82f2a99ea44f330

Best regards,

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