Skip to content

Commit 1e286a6

Browse files
Avadhut Naiksmb49
authored andcommitted
EDAC/amd64: Correct number of UMCs for family 19h models 70h-7fh
BugLink: https://bugs.launchpad.net/bugs/2120812 commit b2e673ae53ef4b943f68585207a5f21cfc9a0714 upstream. AMD's Family 19h-based Models 70h-7fh support 4 unified memory controllers (UMC) per processor die. The amd64_edac driver, however, assumes only 2 UMCs are supported since max_mcs variable for the models has not been explicitly set to 4. The same results in incomplete or incorrect memory information being logged to dmesg by the module during initialization in some instances. Fixes: 6c79e42 ("EDAC/amd64: Add support for ECC on family 19h model 60h-7Fh") Closes: https://lore.kernel.org/all/[email protected]/ Reported-by: reox <[email protected]> Signed-off-by: Avadhut Naik <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Noah Wager <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent fc5e12a commit 1e286a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/edac/amd64_edac.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3883,6 +3883,7 @@ static int per_family_init(struct amd64_pvt *pvt)
38833883
break;
38843884
case 0x70 ... 0x7f:
38853885
pvt->ctl_name = "F19h_M70h";
3886+
pvt->max_mcs = 4;
38863887
pvt->flags.zn_regs_v2 = 1;
38873888
break;
38883889
case 0x90 ... 0x9f:

0 commit comments

Comments
 (0)