summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
diff options
context:
space:
mode:
authorPrike Liang <Prike.Liang@amd.com>2025-03-28 13:33:09 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-11 23:54:39 +0300
commit0ec7535f5ba1cb4550e45ad7d585ca746fdcae6a (patch)
treee772e65ea37c000e0967c190b5f238d8e08165a4 /drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
parentf0ec5926da24157bada1ebe9789c8b2527b85182 (diff)
downloadlinux-0ec7535f5ba1cb4550e45ad7d585ca746fdcae6a.tar.xz
drm/amdgpu: remove the duplicated mes queue active state setting
The MES queue deactivation and active status are already set in mes_userq_unmap|map(), so the caller needn't set the queue_active bit again. Signed-off-by: Prike Liang <Prike.Liang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_userqueue.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mes_userqueue.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c b/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
index b469b800119f..b9705cbec74d 100644
--- a/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
+++ b/drivers/gpu/drm/amd/amdgpu/mes_userqueue.c
@@ -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;
}
@@ -379,8 +377,6 @@ static int mes_userq_resume(struct amdgpu_userq_mgr *uq_mgr,
DRM_ERROR("Failed to resume queue\n");
return ret;
}
-
- queue->queue_active = true;
return 0;
}