From 65098373ce33b87af62da1938585a35e4ac2dcca Mon Sep 17 00:00:00 2001 From: Liao Xuan Date: Wed, 25 Mar 2026 16:52:02 +0800 Subject: [PATCH] anolis: EDAC/amd64: Adjust the maximum number of memory controllers per node to 1 for Hygon family 18h model 18h ANBZ: #31970 Adjust max_mcs for Hygon family 18h model 18h processors to reflect the correct number of memory controllers per node, and set to 1 as this CPU model has a single memory controller per node. Hygon-SIG: commit none hygon anolis: EDAC/amd64: Adjust the maximum number of memory controllers per node to 1 for Hygon family 18h model 18h Signed-off-by: Liao Xuan Cc: hygon-arch@list.openanolis.cn --- drivers/edac/amd64_edac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index c2b5de15098e..93cdbac7e685 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -3738,6 +3738,10 @@ static int per_family_init(struct amd64_pvt *pvt) case 0x10: pvt->ctl_name = "F18h_M10h"; break; + case 0x18: + pvt->ctl_name = "F18h_M18h"; + pvt->max_mcs = 1; + break; default: pvt->ctl_name = "F18h"; break; -- Gitee