Skip to content

Commit 5d5d622

Browse files
committed
Merge tag 'x86_urgent_for_v6.16_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Borislav Petkov: - Update Kirill's email address - Allow hugetlb PMD sharing only on 64-bit as it doesn't make a whole lotta sense on 32-bit - Add fixes for a misconfigured AMD Zen2 client which wasn't even supposed to run Linux * tag 'x86_urgent_for_v6.16_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: MAINTAINERS: Update Kirill Shutemov's email address for TDX x86/mm: Disable hugetlb page table sharing on 32-bit x86/CPU/AMD: Disable INVLPGB on Zen2 x86/rdrand: Disable RDSEED on AMD Cyan Skillfish
2 parents 41998ee + cb73e53 commit 5d5d622

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ Kenneth W Chen <[email protected]>
416416
417417
418418
419+
Kirill A. Shutemov <[email protected]> <[email protected]>
419420
Kishon Vijay Abraham I <[email protected]> <[email protected]>
420421
421422

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26939,7 +26939,7 @@ F: arch/x86/kernel/stacktrace.c
2693926939
F: arch/x86/kernel/unwind_*.c
2694026940

2694126941
X86 TRUST DOMAIN EXTENSIONS (TDX)
26942-
M: Kirill A. Shutemov <[email protected]>
26942+
M: Kirill A. Shutemov <[email protected]>
2694326943
R: Dave Hansen <[email protected]>
2694426944
2694526945

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ config X86
147147
select ARCH_WANTS_DYNAMIC_TASK_STRUCT
148148
select ARCH_WANTS_NO_INSTR
149149
select ARCH_WANT_GENERAL_HUGETLB
150-
select ARCH_WANT_HUGE_PMD_SHARE
150+
select ARCH_WANT_HUGE_PMD_SHARE if X86_64
151151
select ARCH_WANT_LD_ORPHAN_WARN
152152
select ARCH_WANT_OPTIMIZE_DAX_VMEMMAP if X86_64
153153
select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP if X86_64

arch/x86/include/asm/msr-index.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@
628628
#define MSR_AMD64_OSVW_STATUS 0xc0010141
629629
#define MSR_AMD_PPIN_CTL 0xc00102f0
630630
#define MSR_AMD_PPIN 0xc00102f1
631+
#define MSR_AMD64_CPUID_FN_7 0xc0011002
631632
#define MSR_AMD64_CPUID_FN_1 0xc0011004
632633
#define MSR_AMD64_LS_CFG 0xc0011020
633634
#define MSR_AMD64_DC_CFG 0xc0011022

arch/x86/kernel/cpu/amd.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,16 @@ static void init_amd_zen2(struct cpuinfo_x86 *c)
974974
init_spectral_chicken(c);
975975
fix_erratum_1386(c);
976976
zen2_zenbleed_check(c);
977+
978+
/* Disable RDSEED on AMD Cyan Skillfish because of an error. */
979+
if (c->x86_model == 0x47 && c->x86_stepping == 0x0) {
980+
clear_cpu_cap(c, X86_FEATURE_RDSEED);
981+
msr_clear_bit(MSR_AMD64_CPUID_FN_7, 18);
982+
pr_emerg("RDSEED is not reliable on this platform; disabling.\n");
983+
}
984+
985+
/* Correct misconfigured CPUID on some clients. */
986+
clear_cpu_cap(c, X86_FEATURE_INVLPGB);
977987
}
978988

979989
static void init_amd_zen3(struct cpuinfo_x86 *c)

tools/arch/x86/include/asm/msr-index.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@
628628
#define MSR_AMD64_OSVW_STATUS 0xc0010141
629629
#define MSR_AMD_PPIN_CTL 0xc00102f0
630630
#define MSR_AMD_PPIN 0xc00102f1
631+
#define MSR_AMD64_CPUID_FN_7 0xc0011002
631632
#define MSR_AMD64_CPUID_FN_1 0xc0011004
632633
#define MSR_AMD64_LS_CFG 0xc0011020
633634
#define MSR_AMD64_DC_CFG 0xc0011022

0 commit comments

Comments
 (0)