]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: adjust MES API used for suspend and resume
authorJesse.Zhang <Jesse.Zhang@amd.com>
Thu, 4 Sep 2025 08:30:08 +0000 (16:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Sep 2025 21:02:28 +0000 (17:02 -0400)
commit5cefcbb306d6b4fa3ac5fba86db94cac81f0b457
tree92bcfb0a7a818513ecd926f0872ee3126bed53a6
parent28af436a8fa69d4408eadc1beb84528cc216b30b
drm/amdgpu: adjust MES API used for suspend and resume

Use the suspend and resume API rather than remove queue
and add queue API.  The former just preempts the queue
while the latter remove it from the scheduler completely.
There is no need to do that, we only need preemption
in this case.

V2: replace queue_active with queue state
v3: set the suspend_fence_addr
v4: allocate another per queue buffer for the suspend fence, and  set the sequence number.
    also wait for the suspend fence. (Alex)
v5: use a wb slot (Alex)
v6: Change the timeout period. For MES, the default timeout  is  2100000; /* 2100 ms */ (Alex)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c