OSDN Git Service

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)
commitb61e54cb1881c7cb74787da6a5d39d8d48dcc075
treeed8730cabfd6a5cabb3ca55e555c39b023c91235
parentba8ab90e6ac9322f39ab8368941b38b5bb12477c
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