aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
diff options
context:
space:
mode:
authorTony Luck <[email protected]>2024-11-22 23:42:12 +0000
committerIngo Molnar <[email protected]>2024-11-25 09:11:33 +0000
commitd9bb40544653cf039fe79225ec1d742183e2339a (patch)
treeb8d28541512d62cddbb354b7544fc01ff2ed5cc8 /drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c
parentMerge tag 'x86_tdx_for_6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel... (diff)
downloadkernel-d9bb40544653cf039fe79225ec1d742183e2339a.tar.gz
kernel-d9bb40544653cf039fe79225ec1d742183e2339a.zip
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 <[email protected]> Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.c')
0 files changed, 0 insertions, 0 deletions