History

EDAC/amd64: Add PCI device IDs for family 17h, model 70h

Add the new Family 17h Model 70h PCI IDs (device 18h functions 0 and 6) to the AMD64 EDAC module. [ bp: s/f17_base_addr_to_cs_size/f17_addr_mask_to_cs_size/g ]

Isaac Vaughn committed 7 years ago

Commit 3e443eb1 parent 116085e2 files · +16 −0Browse files

Unified · Split

2 files
  1. drivers/edac/amd64_edac.c +13 −0
  2. drivers/edac/amd64_edac.h +3 −0
drivers/edac/amd64_edac.c+13−0
@@ -2317,6 +2317,15 @@ static struct amd64_family_type family_types[] = { · 2316 unmodified lines
23172317 .dbam_to_cs = f17_addr_mask_to_cs_size,
23182318 }
23192319 },
2320+ [F17_M70H_CPUS] = {
2321+ .ctl_name = "F17h_M70h",
2322+ .f0_id = PCI_DEVICE_ID_AMD_17H_M70H_DF_F0,
2323+ .f6_id = PCI_DEVICE_ID_AMD_17H_M70H_DF_F6,
2324+ .ops = {
2325+ .early_channel_count = f17_early_channel_count,
2326+ .dbam_to_cs = f17_addr_mask_to_cs_size,
2327+ }
2328+ },
23202329 };
23212330
23222331 /*
@@ -3355,6 +3364,10 @@ static struct amd64_family_type *per_family_init(struct amd64_pvt *pvt) · 1032 unmodified lines
33553364 fam_type = &family_types[F17_M30H_CPUS];
33563365 pvt->ops = &family_types[F17_M30H_CPUS].ops;
33573366 break;
3367+ } else if (pvt->model >= 0x70 && pvt->model <= 0x7f) {
3368+ fam_type = &family_types[F17_M70H_CPUS];
3369+ pvt->ops = &family_types[F17_M70H_CPUS].ops;
3370+ break;
33583371 }
33593372 /* fall through */
33603373 case 0x18:
drivers/edac/amd64_edac.h+3−0
@@ -120,6 +120,8 @@ · 119 unmodified lines
120120 #define PCI_DEVICE_ID_AMD_17H_M10H_DF_F6 0x15ee
121121 #define PCI_DEVICE_ID_AMD_17H_M30H_DF_F0 0x1490
122122 #define PCI_DEVICE_ID_AMD_17H_M30H_DF_F6 0x1496
123+#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F0 0x1440
124+#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F6 0x1446
123125
124126 /*
125127 * Function 1 - Address Map
@@ -289,6 +291,7 @@ enum amd_families { · 163 unmodified lines
289291 F17_CPUS,
290292 F17_M10H_CPUS,
291293 F17_M30H_CPUS,
294+ F17_M70H_CPUS,
292295 NUM_FAMILIES,
293296 };
294297

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t