]> asedeno.scripts.mit.edu Git - linux.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)
commita02497b73218f10f237d98fb10d34d0baed607a0
tree313c77ce58427f2ed78dcc6442bbdece734c0281
parent952e5daa2565fc842d90192d2254f3bc1a88920c
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