aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorJonathan Kim <Jonathan.Kim@amd.com>2024-08-07 15:33:41 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-08-13 10:35:00 -0400
commit70f83e7706e57200edb8ffa36883b2f43d214142 (patch)
tree5187d0b70d6320cad19a59de202efa7124d2ab1f /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parent9b7e697839c2745c10f63fe5fd54c9e328fa2e3b (diff)
drm/amdkfd: fix partition query when setting up recommended sdma engines
When users dynamically set the partition mode through sysfs writes, this can lead to a double lock situation where the KFD is trying to take the partition lock when updating the recommended SDMA engines. Have the KFD reference its saved socket device number count instead. Also ensure we have enough SDMA xGMI engines to report the recommended engines in the first place. Fixes: e06b71b2313a ("drm/amdkfd: allow users to target recommended SDMA engines") Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions