Skip to content

Commit 7e5e832

Browse files
committed
Merge tag 'x86_misc_for_v6.6_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull misc x86 updates from Borislav Petkov: - Add PCI device IDs for a new AMD family 0x1a CPUs and use them in the respective drivers - Update HPE Superdome Flex maintainers list * tag 'x86_misc_for_v6.6_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/uv: Update HPE Superdome Flex Maintainers EDAC/amd64: Add support for AMD family 1Ah models 00h-1Fh and 40h-4Fh hwmon: (k10temp) Add thermal support for AMD Family 1Ah-based models x86/amd_nb: Add PCI IDs for AMD Family 1Ah-based models
2 parents bd9e99f + 1393bc8 commit 7e5e832

File tree

5 files changed

+34
-3
lines changed

5 files changed

+34
-3
lines changed

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19285,7 +19285,6 @@ F: drivers/misc/sgi-gru/
1928519285
SGI XP/XPC/XPNET DRIVER
1928619286
M: Robin Holt <robinmholt@gmail.com>
1928719287
M: Steve Wahl <steve.wahl@hpe.com>
19288-
R: Mike Travis <mike.travis@hpe.com>
1928919288
S: Maintained
1929019289
F: drivers/misc/sgi-xp/
1929119290

@@ -23182,7 +23181,8 @@ F: arch/x86/platform
2318223181

2318323182
X86 PLATFORM UV HPE SUPERDOME FLEX
2318423183
M: Steve Wahl <steve.wahl@hpe.com>
23185-
R: Mike Travis <mike.travis@hpe.com>
23184+
R: Justin Ernst <justin.ernst@hpe.com>
23185+
R: Kyle Meyer <kyle.meyer@hpe.com>
2318623186
R: Dimitri Sivanich <dimitri.sivanich@hpe.com>
2318723187
R: Russ Anderson <russ.anderson@hpe.com>
2318823188
S: Supported

arch/x86/kernel/amd_nb.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#define PCI_DEVICE_ID_AMD_19H_M40H_ROOT 0x14b5
2525
#define PCI_DEVICE_ID_AMD_19H_M60H_ROOT 0x14d8
2626
#define PCI_DEVICE_ID_AMD_19H_M70H_ROOT 0x14e8
27+
#define PCI_DEVICE_ID_AMD_1AH_M00H_ROOT 0x153a
28+
#define PCI_DEVICE_ID_AMD_1AH_M20H_ROOT 0x1507
2729
#define PCI_DEVICE_ID_AMD_MI200_ROOT 0x14bb
2830

2931
#define PCI_DEVICE_ID_AMD_17H_DF_F4 0x1464
@@ -39,6 +41,7 @@
3941
#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F4 0x14e4
4042
#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F4 0x14f4
4143
#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F4 0x12fc
44+
#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F4 0x12c4
4245
#define PCI_DEVICE_ID_AMD_MI200_DF_F4 0x14d4
4346

4447
/* Protect the PCI config register pairs used for SMN. */
@@ -56,6 +59,8 @@ static const struct pci_device_id amd_root_ids[] = {
5659
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M40H_ROOT) },
5760
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M60H_ROOT) },
5861
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M70H_ROOT) },
62+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_ROOT) },
63+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_ROOT) },
5964
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_ROOT) },
6065
{}
6166
};
@@ -85,6 +90,8 @@ static const struct pci_device_id amd_nb_misc_ids[] = {
8590
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M60H_DF_F3) },
8691
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M70H_DF_F3) },
8792
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M78H_DF_F3) },
93+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3) },
94+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3) },
8895
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_DF_F3) },
8996
{}
9097
};
@@ -106,6 +113,7 @@ static const struct pci_device_id amd_nb_link_ids[] = {
106113
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M40H_DF_F4) },
107114
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_19H_M50H_DF_F4) },
108115
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CNB17H_F4) },
116+
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F4) },
109117
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_MI200_DF_F4) },
110118
{}
111119
};

drivers/edac/amd64_edac.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4150,6 +4150,20 @@ static int per_family_init(struct amd64_pvt *pvt)
41504150
}
41514151
break;
41524152

4153+
case 0x1A:
4154+
switch (pvt->model) {
4155+
case 0x00 ... 0x1f:
4156+
pvt->ctl_name = "F1Ah";
4157+
pvt->max_mcs = 12;
4158+
pvt->flags.zn_regs_v2 = 1;
4159+
break;
4160+
case 0x40 ... 0x4f:
4161+
pvt->ctl_name = "F1Ah_M40h";
4162+
pvt->flags.zn_regs_v2 = 1;
4163+
break;
4164+
}
4165+
break;
4166+
41534167
default:
41544168
amd64_err("Unsupported family!\n");
41554169
return -ENODEV;
@@ -4344,6 +4358,7 @@ static const struct x86_cpu_id amd64_cpuids[] = {
43444358
X86_MATCH_VENDOR_FAM(AMD, 0x17, NULL),
43454359
X86_MATCH_VENDOR_FAM(HYGON, 0x18, NULL),
43464360
X86_MATCH_VENDOR_FAM(AMD, 0x19, NULL),
4361+
X86_MATCH_VENDOR_FAM(AMD, 0x1A, NULL),
43474362
{ }
43484363
};
43494364
MODULE_DEVICE_TABLE(x86cpu, amd64_cpuids);

drivers/hwmon/k10temp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);
6565
#define F15H_M60H_HARDWARE_TEMP_CTRL_OFFSET 0xd8200c64
6666
#define F15H_M60H_REPORTED_TEMP_CTRL_OFFSET 0xd8200ca4
6767

68-
/* Common for Zen CPU families (Family 17h and 18h and 19h) */
68+
/* Common for Zen CPU families (Family 17h and 18h and 19h and 1Ah) */
6969
#define ZEN_REPORTED_TEMP_CTRL_BASE 0x00059800
7070

7171
#define ZEN_CCD_TEMP(offset, x) (ZEN_REPORTED_TEMP_CTRL_BASE + \
@@ -475,6 +475,10 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
475475
k10temp_get_ccd_support(pdev, data, 12);
476476
break;
477477
}
478+
} else if (boot_cpu_data.x86 == 0x1a) {
479+
data->temp_adjust_mask = ZEN_CUR_TEMP_RANGE_SEL_MASK;
480+
data->read_tempreg = read_tempreg_nb_zen;
481+
data->is_zen = true;
478482
} else {
479483
data->read_htcreg = read_htcreg_pci;
480484
data->read_tempreg = read_tempreg_pci;
@@ -521,6 +525,8 @@ static const struct pci_device_id k10temp_id_table[] = {
521525
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M60H_DF_F3) },
522526
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M70H_DF_F3) },
523527
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_19H_M78H_DF_F3) },
528+
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3) },
529+
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3) },
524530
{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
525531
{}
526532
};

include/linux/pci_ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@
576576
#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F3 0x14e3
577577
#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F3 0x14f3
578578
#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F3 0x12fb
579+
#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3 0x12c3
580+
#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
579581
#define PCI_DEVICE_ID_AMD_MI200_DF_F3 0x14d3
580582
#define PCI_DEVICE_ID_AMD_CNB17H_F3 0x1703
581583
#define PCI_DEVICE_ID_AMD_LANCE 0x2000

0 commit comments

Comments
 (0)