EDAC/amd64: Correct number of UMCs for Family 19h Models 70h-7fh
Subsystems (2)
PATCH 1/1 EDAC/amd64: Correct number of UMCs for Family 19h Models 70h-7fh
AMD's Family 19h-based Models 70h-7fh support 4 UMCs per processor die.
The amd64_edac module, 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.
--- drivers/edac/amd64_edac.c | 1 + 1 file changed, 1 insertion(+)
drivers/edac/amd64_edac.c +1 -0
@@ -3879,6 +3879,7 @@ static int per_family_init(struct amd64_pvt *pvt)break ; case 0x70 ... 0x7f: pvt->ctl_name ="F19h_M70h" ; + pvt->max_mcs =4 ; pvt->flags.zn_regs_v2 =1 ;break ; case 0x90 ... 0x9f:
base-commit: 855b5de2e562c07d6cda4deb08d09dc2e0e2b18d
Signature · 1 line
2.43.0
Quoted 29 lines · Avadhut Naik
AMD's Family 19h-based Models 70h-7fh support 4 UMCs per processor die.
The
amd64_edacmodule, however, assumes only 2 UMCs are supported sincemax_mcsvariable 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 6c79e42169fe ("EDAC/amd64: Add support for ECC on family 19h model 60h-7Fh")Reported-by reox <[email protected]>Signed-off-by Avadhut Naik <[email protected]>--- drivers/edac/amd64_edac.c | 1 + 1 file changed, 1 insertion(+)drivers/edac/amd64_edac.c +1
-0@@ -3879,6 +3879,7 @@ static int per_family_init(struct amd64_pvt *pvt)break ; case 0x70 ... 0x7f: pvt->ctl_name ="F19h_M70h" ; + pvt->max_mcs =4 ; pvt->flags.zn_regs_v2 =1 ;break ; case 0x90 ... 0x9f:
Quoted 2 lines
base-commit:
855b5de2e562c07d6cda4deb08d09dc2e0e2b18d
Applied, thanks.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette