]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amdgpu: move atom scratch register save/restore to common code
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Oct 2016 18:40:58 +0000 (14:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Oct 2016 15:18:11 +0000 (11:18 -0400)
commite695e77c6b49c49e5eafdc6239d6b22bfa30c7cc
tree1a8c2629b4ae220889dd96a2bdda49d6d5453fc4
parent08e23a02e3e2dd6dde0f2f5bb90d03f5bc2a5804
drm/amdgpu: move atom scratch register save/restore to common code

We need this for more than just DCE.  Move it out of the DCE modules
and into the device code.  This way we can be sure the scratch registers
are initialized properly before we run asic_init which happens before
DCE IPs are restored.

Fixes atombios hangs in asic_init.

Reviewed-by: JimQu <Jim.Qu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c