]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: move SDMA queue reset capability check to node_show
authorJesse.Zhang <Jesse.Zhang@amd.com>
Thu, 29 May 2025 03:27:37 +0000 (11:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 16:19:01 +0000 (12:19 -0400)
commite17df7b086cf908cedd919f448da9e00028419bb
tree83a7540853f319fc9453c2ca80496356dd2ffd9f
parent855a2a029a2eda88317cdccde9b3a3168ad193dc
drm/amdkfd: move SDMA queue reset capability check to node_show

Relocate the per-SDMA queue reset capability check from
kfd_topology_set_capabilities() to node_show() to ensure we read the
latest value of sdma.supported_reset after all IP blocks are initialized.

Fixes: ceb7114c961b ("drm/amdkfd: flag per-sdma queue reset supported to user space")
Reviewed-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c