aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJames Morse <[email protected]>2025-05-15 16:58:53 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-05-16 12:35:22 +0000
commitf6b25be204b8661e4c32fa770a4c9e3a113ee325 (patch)
treebb82998a92be93e3decfa12049a01470b2a747dd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentx86/resctrl: Relax some asm #includes (diff)
downloadkernel-f6b25be204b8661e4c32fa770a4c9e3a113ee325.tar.gz
kernel-f6b25be204b8661e4c32fa770a4c9e3a113ee325.zip
x86/resctrl: Always initialise rid field in rdt_resources_all[]
x86 has an array, rdt_resources_all[], of all possible resources. The for-each-resource walkers depend on the rid field of all resources being initialised. If the array ever grows due to another architecture adding a resource type that is not defined on x86, the for-each-resources walkers will loop forever. Initialise all the rid values in resctrl_arch_late_init() before any for-each-resource walker can be called. Signed-off-by: James Morse <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Tested-by: Fenghua Yu <[email protected]> Tested-by: Babu Moger <[email protected]> Tested-by: Shaopeng Tan <[email protected]> Tested-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions