]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: fix hung reset queue array memory allocation
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 9 Oct 2025 15:28:19 +0000 (11:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:28 +0000 (14:14 -0400)
commit0ef930e1faca6418316e5b9a3b4d1f6ae9e5b240
treefa9c55b483ecb3fac49b58e1377c89f6d3b0b7c8
parent8745ca5efb2aad0b6591d9b8cd48573ea49c929d
drm/amdgpu: fix hung reset queue array memory allocation

By design the MES will return an array result that is twice the number
of hung doorbells it can report.

i.e. if up k reported doorbells are supported, then the
second half of the array, also of length k, holds the HQD information
(type/queue/pipe) where queue 1 corresponds to index 0 and k,
queue 2 corresponds to index 1 and k + 1 etc ...

The driver will use the HDQ info to target queue/pipe reset for
hardware scheduled user compute queues.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c