Reviewed-by: Kevin Wang <[email protected]>

Best Regards,
Kevin

On 7/16/19 11:01 AM, Quan, Evan wrote:
> Ping..
>
>> -----Original Message-----
>> From: Evan Quan <[email protected]>
>> Sent: Friday, July 12, 2019 1:51 PM
>> To: [email protected]
>> Cc: Wang, Kevin(Yang) <[email protected]>; Quan, Evan
>> <[email protected]>
>> Subject: [PATCH] drm/amd/powerplay: fix deadlock around
>> smu_handle_task V2
>>
>> As the lock was already held on the entrance to smu_handle_task.
>>
>> - V2: lock in small granularity
>>
>> Change-Id: I5388aa917ef0e330974e26c59db42d1354b6a865
>> Signed-off-by: Evan Quan <[email protected]>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 --
>>   1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
>> index 961f4e54ed18..eb255a6bd3a9 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
>> @@ -3049,11 +3049,9 @@ void amdgpu_pm_compute_clocks(struct
>> amdgpu_device *adev)
>>      if (is_support_sw_smu(adev)) {
>>              struct smu_context *smu = &adev->smu;
>>              struct smu_dpm_context *smu_dpm = &adev-
>>> smu.smu_dpm;
>> -            mutex_lock(&(smu->mutex));
>>              smu_handle_task(&adev->smu,
>>                              smu_dpm->dpm_level,
>>                              AMD_PP_TASK_DISPLAY_CONFIG_CHANGE);
>> -            mutex_unlock(&(smu->mutex));
>>      } else {
>>              if (adev->powerplay.pp_funcs->dispatch_tasks) {
>>                      if (!amdgpu_device_has_dc_support(adev)) {
>> --
>> 2.21.0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to