RE: [PATCH 2/2] drm/amd/pm: fix the deadlock observed on performance_level setting

2022-01-25 Thread Quan, Evan
[AMD Official Use Only] > -Original Message- > From: Alex Deucher > Sent: Tuesday, January 25, 2022 11:35 PM > To: Quan, Evan > Cc: amd-gfx list ; Deucher, Alexander > > Subject: Re: [PATCH 2/2] drm/amd/pm: fix the deadlock observed on > performance_level set

Re: [PATCH 2/2] drm/amd/pm: fix the deadlock observed on performance_level setting

2022-01-25 Thread Alex Deucher
On Tue, Jan 25, 2022 at 3:57 AM Evan Quan wrote: > > The sub-routine(amdgpu_gfx_off_ctrl) tried to obtain the lock > adev->pm.mutex which was actually hold by amdgpu_dpm_force_performance_level. > A deadlock happened then. > > Signed-off-by: Evan Quan > Change-Id: Id692829381dedc6380f5464d74107d6

[PATCH 2/2] drm/amd/pm: fix the deadlock observed on performance_level setting

2022-01-25 Thread Evan Quan
The sub-routine(amdgpu_gfx_off_ctrl) tried to obtain the lock adev->pm.mutex which was actually hold by amdgpu_dpm_force_performance_level. A deadlock happened then. Signed-off-by: Evan Quan Change-Id: Id692829381dedc6380f5464d74107d696f7abca1 --- drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 50 +++