drm/amdgpu: remove the duplicated mes queue deactivation setting
Subsystems (2)
PATCH 1/1 drm/amdgpu: remove the duplicated mes queue deactivation setting
The MES queue deactivation status is already set in mes_userq_unmap(), so the caller needn't set the queue_active bit again.
Signed-off-by Prike Liang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +1 -3
@@ -358,10 +358,8 @@ mes_userq_mqd_destroy(struct amdgpu_userq_mgr *uq_mgr,static int mes_userq_suspend (struct amdgpu_userq_mgr *uq_mgr,struct amdgpu_usermode_queue *queue) { -if (queue->queue_active) { +if (queue->queue_active)mes_userq_unmap (uq_mgr, queue); - queue->queue_active = false; - }return 0 ; }
Signature · 1 line
2.34.1
[Public]
There requires a similar change on the userq resume, and a new patch will include the change.
Regards,
Prike
Quoted 35 lines
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Friday, March 28, 2025 6:46 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amdgpu: remove the duplicated mes queue deactivation settingThe MES queue deactivation status is already set in
mes_userq_unmap(), so the caller needn't set thequeue_activebit again.Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +1
-4@@ -358,10 +358,8 @@ mes_userq_mqd_destroy(struct amdgpu_userq_mgr *uq_mgr, static int mes_userq_suspend(struct amdgpu_userq_mgr *uq_mgr,struct amdgpu_usermode_queue *queue) { -if (queue->queue_active) { +if (queue->queue_active)mes_userq_unmap (uq_mgr, queue); - queue->queue_active = false; - }return 0 ; } --2.34.1