]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Update power state at the end of smu hw_init.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 24 Aug 2018 08:17:54 +0000 (16:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 19:49:33 +0000 (14:49 -0500)
commit1b9964e3097f6f9a748caddd904258e7698051f2
treec626334ee35dafffbcae420c758d6f2cf1f21fa1
parentc0603ca8c647a39392f16ffb0e1e5b9b4b270ba2
drm/amdgpu: Update power state at the end of smu hw_init.

For SI/Kv, the power state is managed by function
amdgpu_pm_compute_clocks.

when dpm enabled, we should call amdgpu_pm_compute_clocks
to update current power state instand of set boot state.

this change can fix the oops when kfd driver was enabled on Kv.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
drivers/gpu/drm/amd/amdgpu/si_dpm.c