Skip to content

Commit b4210ea

Browse files
yghannamsuryasaimadhu
authored andcommitted
EDAC/amd64: Set proper family type for Family 19h Models 20h-2Fh
AMD Family 19h Models 20h-2Fh use the same PCI IDs as Family 17h Models 70h-7Fh. The same family ops and number of channels also apply. Use the Family17h Model 70h family_type and ops for Family 19h Models 20h-2Fh. Update the controller name to match the system. Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20201009171803.3214354-1-Yazen.Ghannam@amd.com
1 parent e6bbde8 commit b4210ea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/edac/amd64_edac.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,6 +3385,12 @@ static struct amd64_family_type *per_family_init(struct amd64_pvt *pvt)
33853385
break;
33863386

33873387
case 0x19:
3388+
if (pvt->model >= 0x20 && pvt->model <= 0x2f) {
3389+
fam_type = &family_types[F17_M70H_CPUS];
3390+
pvt->ops = &family_types[F17_M70H_CPUS].ops;
3391+
fam_type->ctl_name = "F19h_M20h";
3392+
break;
3393+
}
33883394
fam_type = &family_types[F19_CPUS];
33893395
pvt->ops = &family_types[F19_CPUS].ops;
33903396
family_types[F19_CPUS].ctl_name = "F19h";

0 commit comments

Comments
 (0)