drm/amdgpu: no need to set queue_active in mes_userq_resume
Subsystems (2)
PATCH 1/1 drm/amdgpu: no need to set queue_active in mes_userq_resume
In mes_userq_resume calls mes_userq_map which set the queue_active state to true if it succeed and from the resume we dont need to explicitly set the queue state.
--- drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +0 -1
@@ -382,7 +382,6 @@ static int mes_userq_resume(struct amdgpu_userq_mgr *uq_mgr,return ret; } - queue->queue_active = true;return 0 ; }
Signature · 1 line
2.34.1
Ping
Quoted 21 lines · Sunil Khatri
In
mes_userq_resumecallsmes_userq_mapwhich set thequeue_activestate to true if it succeed and from the resume we dont need to explicitly set the queue state.Signed-off-by Sunil Khatri <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +0
-1@@ -382,7 +382,6 @@ static int mes_userq_resume(struct amdgpu_userq_mgr *uq_mgr,return ret; } - queue->queue_active = true;return 0 ; }
[AMD Official Use Only - AMD Internal Distribution Only]
I had a similar patch before, the mes_userq_mqd_destroy() also need to clean up the duplicated queue active bit setting.
Regards,
Prike
Quoted 36 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Khatri, Sunil
Sent: Monday, April 7, 2025 1:59 PM
To: Khatri, Sunil <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>
Subject: Re: [PATCH v1] drm/amdgpu: no need to setqueue_activeinmes_userq_resumePing
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c static int mes_userq_resume(struct
Quoted 15 lines · Sunil Khatri
In
mes_userq_resumecallsmes_userq_mapwhich set thequeue_activestate to true if it succeed and from the resume we dont need to explicitly set the queue state.Signed-off-by Sunil Khatri <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +0
-0@@ -382,7 +382,6 @@ static int mes_userq_resume(struct
amdgpu_userq_mgr*uq_mgr,Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +0
-1return ret; } - queue->queue_active = true;return 0 ; }
[AMD Official Use Only - AMD Internal Distribution Only]
I see that you have pushed that before me so please goahead and get it reviewed and merged. I have another change pending which i am waiting for Alex to have a look.
Regards
Sunil
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Tuesday, April 8, 2025 7:24 AM
To: Khatri, Sunil <[email protected]>; Khatri, Sunil <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>
Subject: RE: [PATCH v1] drm/amdgpu: no need to set queue_active in mes_userq_resume
[AMD Official Use Only - AMD Internal Distribution Only]
I had a similar patch before, the mes_userq_mqd_destroy() also need to clean up the duplicated queue active bit setting.
Regards,
Prike
Quoted 37 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Khatri, Sunil
Sent: Monday, April 7, 2025 1:59 PM
To: Khatri, Sunil <[email protected]>; [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>
Subject: Re: [PATCH v1] drm/amdgpu: no need to setqueue_activeinmes_userq_resumePing
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c static int mes_userq_resume(struct
Quoted 15 lines · Sunil Khatri
In
mes_userq_resumecallsmes_userq_mapwhich set thequeue_activestate to true if it succeed and from the resume we dont need to explicitly set the queue state.Signed-off-by Sunil Khatri <[email protected]>--- drivers/gpu/drm/amd/amdgpu/mes_userqueue.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +0
-0@@ -382,7 +382,6 @@ static int mes_userq_resume(struct
amdgpu_userq_mgr*uq_mgr,Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c +0
-1return ret; } - queue->queue_active = true;return 0 ; }