]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: add the doorbell index input for suspending userq
authorPrike Liang <Prike.Liang@amd.com>
Wed, 17 Jun 2026 06:20:16 +0000 (14:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 17:01:35 +0000 (13:01 -0400)
It requires inputing the doorbell offset for MES firmware preempts the
userq, and adding the doorbell offset also keep aliging with the
union MESAPI__SUSPEND in MES firmware.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bc434335ab3c096a33a9e88c7951b4ac574db458)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h

index fdd06a17520a29513983fb5cbef3b1deae11fc58..1aae49f4df49b7d217d3f6fbfb3f525293fbe756 100644 (file)
@@ -302,12 +302,14 @@ struct mes_suspend_gang_input {
        uint64_t        gang_context_addr;
        uint64_t        suspend_fence_addr;
        uint32_t        suspend_fence_value;
+       uint32_t        doorbell_offset;
 };
 
 struct mes_resume_gang_input {
        uint32_t        xcc_id;
        bool            resume_all_gangs;
        uint64_t        gang_context_addr;
+       uint32_t        doorbell_offset;
 };
 
 struct mes_reset_queue_input {