]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: fix redundant MQD iterations in GFX v12.1
authorAlex Sierra <alex.sierra@amd.com>
Tue, 7 Apr 2026 22:22:44 +0000 (17:22 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:14 +0000 (15:41 -0400)
commit9315a1e2bdf1ba4aace856cabcb5f9f3a5c09202
treee950bcf7fa8b783e28f954f8cc150406e7198954
parente773ce17b037c1bd9285758c78e18d0574b3e655
drm/amdkfd: fix redundant MQD iterations in GFX v12.1

The init_mqd_v12_1 function and its sub-call update_mqd_v12_1 both independently
iterate over XCC-specific MQDs. This nested iteration is redundant and can cause
MQDs in different queues to be overwritten. This patch removes the duplicate
loop logic to prevent queue corruption.

Fixes: 01bbc4a4b947 ("drm/amdkfd: Add MQD manager for GFX 12.1.0")
Signed-off-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c