]> 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)
commit33ae08cab14356ac2f05ad73c9874339ceeb76b0
tree313c77ce58427f2ed78dcc6442bbdece734c0281
parentd372280955f575c936209743055bc90e64f2df78
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