linux-stable/arch
Tony Luck d9bb405446 x86/cpu: Fix PPIN initialization
On systems that enumerate PPIN (protected processor inventory
number) using CPUID, but where the BIOS locked the MSR to
prevent access /proc/cpuinfo reports "intel_ppin" feature as
present on all logical CPUs except for CPU 0.

This happens because ppin_init() uses x86_match_cpu() to
determine whether PPIN is supported. When called on CPU 0
the test for locked PPIN MSR results in:

	clear_cpu_cap(c, info->feature);

This clears the X86 FEATURE bit in boot_cpu_data. When other
CPUs are brought online the x86_match_cpu() fails, and the
PPIN FEATURE bit remains set for those other CPUs.

Fix by using setup_clear_cpu_cap() instead of clear_cpu_cap()
which force clears the FEATURE bit for all CPUS.

Reported-by: Adeel Ashad <adeel.arshad@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20241122234212.27451-1-tony.luck@intel.com
2024-11-25 10:11:33 +01:00
..
alpha \n 2024-11-21 09:50:18 -08:00
arc asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
arm \n 2024-11-21 09:50:18 -08:00
arm64 bpf-next-bpf-next-6.13 2024-11-21 08:11:04 -08:00
csky asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
hexagon asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
loongarch asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
m68k \n 2024-11-21 09:50:18 -08:00
microblaze asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
mips Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
nios2 asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
openrisc asm-generic updates for 6.13 2024-11-20 15:13:02 -08:00
parisc Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
powerpc dma-mapping updates for Linux 6.13 2024-11-21 11:28:39 -08:00
riscv soc: devicetree updates for 6.13 2024-11-20 15:26:46 -08:00
s390 Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
sh \n 2024-11-21 09:50:18 -08:00
sparc Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
um \n 2024-11-21 09:50:18 -08:00
x86 x86/cpu: Fix PPIN initialization 2024-11-25 10:11:33 +01:00
xtensa Networking changes for 6.13. 2024-11-21 08:28:08 -08:00
.gitignore
Kconfig First step of consolidating the VDSO data page handling: 2024-11-19 16:09:13 -08:00