]> www.infradead.org Git - users/jedix/linux-maple.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:56:52 +0000 (12:56 -0400)
commita55737dab6ba63eb4241e9c6547629058af31e12
treedb0a48e4fdfec2132dba659ebadb11394e3d4529
parente04c78d86a9699d136910cfc0bdcf01087e3267e
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>
(cherry picked from commit e17df7b086cf908cedd919f448da9e00028419bb)
drivers/gpu/drm/amd/amdkfd/kfd_topology.c