]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: Fix bug that dpm level was not really locked
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 9 Feb 2018 08:47:53 +0000 (16:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Feb 2018 04:09:35 +0000 (23:09 -0500)
commita7aeadfa96b5c07450978866be8831011912744f
tree313c77ce58427f2ed78dcc6442bbdece734c0281
parent8f15ed382c6cd6122bf4db5016c7941b14c6b361
drm/amd/pp: Fix bug that dpm level was not really locked

Lock the dpm levels when we use SW method to modify
the dpm tables directly to avoid a possible race
with the smu.

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/hwmgr/smu7_hwmgr.c