summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>2026-08-19 10:52:59 +0800
committerTony Luck <tony.luck@intel.com>2026-09-08 13:40:49 -0700
commitba71d9b4e9dd83c1614b3b5cec6c82a39d290f7e (patch)
tree9791d486acd59c874ee7786f96bf91a58e472e9c
parentdf2908090cda368b01ff43709f51890076c56157 (diff)
downloadlinux-next-ba71d9b4e9dd83c1614b3b5cec6c82a39d290f7e.tar.gz
linux-next-ba71d9b4e9dd83c1614b3b5cec6c82a39d290f7e.zip
EDAC/i10nm: Fix Granite Rapids ADXL MC mapping
ADXL reports memory errors using memory-controller physical indices, while the EDAC driver identifies memory controllers using logical indices. On Granite Rapids systems, BIOS may disable some memory controllers, causing the physical and logical indices to differ. As a result, ADXL memory errors may be associated with the wrong memory controller, preventing EDAC from reporting errors for some DIMMs. Maintain a physical-to-logical MC mapping so that ADXL memory errors are decoded correctly regardless of the BIOS memory-controller configuration. Fixes: ba987eaaabf9 ("EDAC/i10nm: Add Intel Granite Rapids server support") Reported-by: Yanhua Wu <yanhua1.wu@intel.com> Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://patch.msgid.link/20260819025259.266201-1-qiuxu.zhuo@intel.com
-rw-r--r--drivers/edac/i10nm_base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/edac/i10nm_base.c b/drivers/edac/i10nm_base.c
index fa1853f252b0..f3f8e4e00148 100644
--- a/drivers/edac/i10nm_base.c
+++ b/drivers/edac/i10nm_base.c
@@ -479,6 +479,7 @@ static struct pci_dev *get_gnr_mdev(struct skx_dev *d, int logical_idx, int *phy
if (mdev) {
if (logical == logical_idx) {
*physical_idx = i;
+ skx_set_mc_mapping(d, i, logical_idx);
return mdev;
}