aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2022-08-19 17:47:44 +0000
committerBorislav Petkov <[email protected]>2022-09-28 16:35:37 +0000
commitdf5b035b5683d6a25f077af889fb88e09827f8bc (patch)
tree15b64f4c405a91cf8952b34f47851a10ac3baff8 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentx86/alternative: Fix race in try_get_desc() (diff)
downloadkernel-df5b035b5683d6a25f077af889fb88e09827f8bc.tar.gz
kernel-df5b035b5683d6a25f077af889fb88e09827f8bc.zip
x86/cacheinfo: Add a cpu_llc_shared_mask() UP variant
On a CONFIG_SMP=n kernel, the LLC shared mask is 0, which prevents __cache_amd_cpumap_setup() from doing the L3 masks setup, and more specifically from setting up the shared_cpu_map and shared_cpu_list files in sysfs, leading to lscpu from util-linux getting confused and segfaulting. Add a cpu_llc_shared_mask() UP variant which returns a mask with a single bit set, i.e., for CPU0. Fixes: 2b83809a5e6d ("x86/cpu/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask") Reported-by: Saurabh Sengar <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions