aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorRicardo Neri <[email protected]>2024-11-28 00:22:47 +0000
committerBorislav Petkov (AMD) <[email protected]>2024-12-06 12:13:36 +0000
commit9677be09e5e4fbe48aeccb06ae3063c5eba331c3 (patch)
tree9e9735ccba27a1b52093c49cb7d3e308157670b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parentcacheinfo: Allocate memory during CPU hotplug if not done from the primary CPU (diff)
downloadkernel-9677be09e5e4fbe48aeccb06ae3063c5eba331c3.tar.gz
kernel-9677be09e5e4fbe48aeccb06ae3063c5eba331c3.zip
x86/cacheinfo: Delete global num_cache_leaves
Linux remembers cpu_cachinfo::num_leaves per CPU, but x86 initializes all CPUs from the same global "num_cache_leaves". This is erroneous on systems such as Meteor Lake, where each CPU has a distinct num_leaves value. Delete the global "num_cache_leaves" and initialize num_leaves on each CPU. init_cache_level() no longer needs to set num_leaves. Also, it never had to set num_levels as it is unnecessary in x86. Keep checking for zero cache leaves. Such condition indicates a bug. [ bp: Cleanup. ] Signed-off-by: Ricardo Neri <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Cc: [email protected] # 6.3+ Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions