]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: Lock pm_funcs when set pp table
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 22 Mar 2018 07:12:59 +0000 (15:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:07:48 +0000 (13:07 -0500)
commit2bc1579c120ad447be76e8b097d64011e21acac9
treeed8730cabfd6a5cabb3ca55e555c39b023c91235
parent67ee939ef7ee039098f7589cef824a60cf83e5bc
drm/amd/pp: Lock pm_funcs when set pp table

unlock mutex until set pp table completely to avoid
conflict if other pp functions were called simultaneously.

use hwmgr_handle_task instand of pp_dpm_dispatch_tasks.
It is not make sense that call pp_functions in ip_functions.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amd_powerplay.c