diff options
| author | Jesse.Zhang <[email protected]> | 2025-04-28 02:35:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-04-30 22:10:06 +0000 |
| commit | ad7c088e31f026d71fe87fd09473fafb7d6ed006 (patch) | |
| tree | f23959d21324786a4c5e3797e54583165805db05 /drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | |
| parent | drm/amd/pm: Add voltage caps for smu_v13_0_6 (diff) | |
| download | kernel-ad7c088e31f026d71fe87fd09473fafb7d6ed006.tar.gz kernel-ad7c088e31f026d71fe87fd09473fafb7d6ed006.zip | |
drm/amdgpu: Fix API status offset for MES queue reset
The mes_v11_0_reset_hw_queue and mes_v12_0_reset_hw_queue functions were
using the wrong union type (MESAPI__REMOVE_QUEUE) when getting the offset
for api_status. Since these functions handle queue reset operations, they
should use MESAPI__RESET union instead.
This fixes the polling of API status during hardware queue reset operations
in the MES for both v11 and v12 versions.
Signed-off-by: Jesse Zhang <[email protected]>
Reviewed-By: Shaoyun.liu <[email protected]>
Reviewed-by: Prike Liang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_v12_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c index 1f7614dccb00..ee8b531b713d 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c @@ -517,7 +517,7 @@ static int mes_v12_0_reset_hw_queue(struct amdgpu_mes *mes, return mes_v12_0_submit_pkt_and_poll_completion(mes, pipe, &mes_reset_queue_pkt, sizeof(mes_reset_queue_pkt), - offsetof(union MESAPI__REMOVE_QUEUE, api_status)); + offsetof(union MESAPI__RESET, api_status)); } static int mes_v12_0_map_legacy_queue(struct amdgpu_mes *mes, |
