mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 21:24:00 +08:00
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
This commit is contained in:
parent
e6bbde8b2b
commit
b4210eab91
@ -3385,6 +3385,12 @@ static struct amd64_family_type *per_family_init(struct amd64_pvt *pvt)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x19:
|
case 0x19:
|
||||||
|
if (pvt->model >= 0x20 && pvt->model <= 0x2f) {
|
||||||
|
fam_type = &family_types[F17_M70H_CPUS];
|
||||||
|
pvt->ops = &family_types[F17_M70H_CPUS].ops;
|
||||||
|
fam_type->ctl_name = "F19h_M20h";
|
||||||
|
break;
|
||||||
|
}
|
||||||
fam_type = &family_types[F19_CPUS];
|
fam_type = &family_types[F19_CPUS];
|
||||||
pvt->ops = &family_types[F19_CPUS].ops;
|
pvt->ops = &family_types[F19_CPUS].ops;
|
||||||
family_types[F19_CPUS].ctl_name = "F19h";
|
family_types[F19_CPUS].ctl_name = "F19h";
|
||||||
|
Loading…
Reference in New Issue
Block a user