Skip to content

Commit 0b8bf9c

Browse files
Marc Bevandsuryasaimadhu
authored andcommitted
EDAC/amd64: Add support for family 19h, models 50h-5fh
Add the new family 19h models 50h-5fh PCI IDs (device 18h functions 0 and 6) to support Ryzen 5000 APUs ("Cezanne"). Signed-off-by: Marc Bevand <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Yazen Ghannam <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e2be595 commit 0b8bf9c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

drivers/edac/amd64_edac.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,16 @@ static struct amd64_family_type family_types[] = {
26602660
.dbam_to_cs = f17_addr_mask_to_cs_size,
26612661
}
26622662
},
2663+
[F19_M50H_CPUS] = {
2664+
.ctl_name = "F19h_M50h",
2665+
.f0_id = PCI_DEVICE_ID_AMD_19H_M50H_DF_F0,
2666+
.f6_id = PCI_DEVICE_ID_AMD_19H_M50H_DF_F6,
2667+
.max_mcs = 2,
2668+
.ops = {
2669+
.early_channel_count = f17_early_channel_count,
2670+
.dbam_to_cs = f17_addr_mask_to_cs_size,
2671+
}
2672+
},
26632673
};
26642674

26652675
/*
@@ -3706,6 +3716,11 @@ static struct amd64_family_type *per_family_init(struct amd64_pvt *pvt)
37063716
pvt->ops = &family_types[F17_M70H_CPUS].ops;
37073717
fam_type->ctl_name = "F19h_M20h";
37083718
break;
3719+
} else if (pvt->model >= 0x50 && pvt->model <= 0x5f) {
3720+
fam_type = &family_types[F19_M50H_CPUS];
3721+
pvt->ops = &family_types[F19_M50H_CPUS].ops;
3722+
fam_type->ctl_name = "F19h_M50h";
3723+
break;
37093724
} else if (pvt->model >= 0xa0 && pvt->model <= 0xaf) {
37103725
fam_type = &family_types[F19_M10H_CPUS];
37113726
pvt->ops = &family_types[F19_M10H_CPUS].ops;

drivers/edac/amd64_edac.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
#define PCI_DEVICE_ID_AMD_19H_DF_F6 0x1656
129129
#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F0 0x14ad
130130
#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F6 0x14b3
131+
#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F0 0x166a
132+
#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F6 0x1670
131133

132134
/*
133135
* Function 1 - Address Map
@@ -301,6 +303,7 @@ enum amd_families {
301303
F17_M70H_CPUS,
302304
F19_CPUS,
303305
F19_M10H_CPUS,
306+
F19_M50H_CPUS,
304307
NUM_FAMILIES,
305308
};
306309

0 commit comments

Comments
 (0)