Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-11 Thread Lazar, Lijo
On 1/11/2022 6:51 PM, Quan, Evan wrote: [AMD Official Use Only] -Original Message- From: Lazar, Lijo Sent: Monday, January 10, 2022 3:03 PM To: Quan, Evan ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_l

RE: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-11 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Lazar, Lijo > Sent: Monday, January 10, 2022 3:03 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock > >

Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-09 Thread Lazar, Lijo
On 1/7/2022 7:49 AM, Quan, Evan wrote: [AMD Official Use Only] -Original Message- From: Lazar, Lijo Sent: Thursday, January 6, 2022 4:29 PM To: Quan, Evan ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_l

RE: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-06 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Lazar, Lijo > Sent: Thursday, January 6, 2022 4:29 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock > >

Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-06 Thread Lazar, Lijo
On 1/6/2022 12:32 PM, Quan, Evan wrote: [AMD Official Use Only] -Original Message- From: Lazar, Lijo Sent: Thursday, January 6, 2022 2:17 PM To: Quan, Evan ; amd-gfx@lists.freedesktop.org Cc: Deucher, Alexander Subject: Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_l

RE: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-05 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Lazar, Lijo > Sent: Thursday, January 6, 2022 2:17 PM > To: Quan, Evan ; amd-gfx@lists.freedesktop.org > Cc: Deucher, Alexander > Subject: Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock > >

Re: [PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-05 Thread Lazar, Lijo
On 1/6/2022 11:27 AM, Evan Quan wrote: As all those related APIs are already well protected by adev->pm.mutex and smu->message_lock. This one may be widely used. Instead of relying on pm.mutex it's better to keep metrics lock so that multiple clients can read data without waiting on other

[PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2022-01-05 Thread Evan Quan
As all those related APIs are already well protected by adev->pm.mutex and smu->message_lock. Signed-off-by: Evan Quan Change-Id: Ic75326ba7b4b67be8762d5407d02f6c514e1ad35 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 - .../gpu/dr

[PATCH 3/7] drm/amd/pm: drop unneeded smu->metrics_lock

2021-12-07 Thread Evan Quan
As all those related APIs are already well protected by adev->pm.mutex and smu->message_lock. Signed-off-by: Evan Quan Change-Id: Ic75326ba7b4b67be8762d5407d02f6c514e1ad35 --- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h | 1 - .../gpu/dr