Skip to contentSkip to conversation

Comet Lake EDAC support

PATCH Pekka Honkanen 1 participant 1 message May 16, 2021

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

It looks like Intel Comet Lake (the Xeon W-1200 family) has no EDAC support yet. This was a little surprising - Comet Lake has been around for about a year. But maybe everyone went for Ryzen instead and I am the only Intel user left ;-).

According to Intel docs the ECC registers are same as Coffee Lake.

Coffee Lake:
https://www.intel.com/content/www/us/en/products/docs/processors/core/8th-gen-core-family-datasheet-vol-2.html

Comet Lake:
https://cdrdv2.intel.com/v1/dl/getContent/621887

In fact it looks like the Host bridge and MCHBAR sections were just copy pasted over, with some information omitted. The host bridge PCI Device ID 0x3eXX mentioned in the document is not correct. I have a W-1290P, and the Device ID is 0x9b33. I suppose it is possible that the document is not accurate for ECC registers either.

The PCI IDs list mentions several other values as Comet Lake-S or 10th Gen Core DRAM Controller Device ID, but I don't know if these are Xeon or not (i.e. relevant for EDAC).

Anyway, I hope support can be added with just the new PCI Device ID(s). I tried this and EDAC probes fine, and edac-util also shows expected output:

titan% edac-util -v
mc0: 0 Uncorrected Errors with no DIMM info
mc0: 0 Corrected Errors with no DIMM info
edac-util: No errors to report.

However I am not sure how to verify this actually works. I have a Gigabyte W480M motherboard, and the BIOS does not expose ACPI EINJ table. Looking at the Intel docs, the DRAM controller registers mention error injection capabilities, but it is not clear how to do this, or if it is at all possible as the BIOS might disable the ECC injection.

Is there some other way?

The patch:

drivers/edac/ie31200_edac.c +6 -1
index 9a9ff5ad611a..32512b7328ec 100644
@@ -76,12 +76,16 @@
 #define PCI_DEVICE_ID_INTEL_IE31200_HB_CFL_9    0x3ec6
 #define PCI_DEVICE_ID_INTEL_IE31200_HB_CFL_10   0x3eca
 
+/* Comet Lake-S */
+#define PCI_DEVICE_ID_INTEL_IE31200_HB_CML_1	0x9b33
+
 /* Test if HB is for Skylake or later. */
 #define DEVICE_ID_SKYLAKE_OR_LATER(did)                                        \
 	(((did) == PCI_DEVICE_ID_INTEL_IE31200_HB_8) ||                        \
 	 ((did) == PCI_DEVICE_ID_INTEL_IE31200_HB_9) ||                        \
 	 (((did) & PCI_DEVICE_ID_INTEL_IE31200_HB_CFL_MASK) ==                 \
-	  PCI_DEVICE_ID_INTEL_IE31200_HB_CFL_MASK))
+	  PCI_DEVICE_ID_INTEL_IE31200_HB_CFL_MASK) ||                          \
+	 ((did) == PCI_DEVICE_ID_INTEL_IE31200_HB_CML_1))
 
 #define IE31200_DIMMS			4
 #define IE31200_RANKS			8
@@ -587,6 +591,7 @@ static const struct pci_device_id ie31200_pci_tbl[] = {
 	{ PCI_VEND_DEV(INTEL, IE31200_HB_CFL_8),  PCI_ANY_ID, PCI_ANY_ID, 0, 0, IE31200 },
 	{ PCI_VEND_DEV(INTEL, IE31200_HB_CFL_9),  PCI_ANY_ID, PCI_ANY_ID, 0, 0, IE31200 },
 	{ PCI_VEND_DEV(INTEL, IE31200_HB_CFL_10), PCI_ANY_ID, PCI_ANY_ID, 0, 0, IE31200 },
+	{ PCI_VEND_DEV(INTEL, IE31200_HB_CML_1),  PCI_ANY_ID, PCI_ANY_ID, 0, 0, IE31200 },
 	{ 0, } /* 0 terminated list. */
 };
 MODULE_DEVICE_TABLE(pci, ie31200_pci_tbl);