drm/amdgpu: save and restore gc hub regs
authorVictor Zhao <Victor.Zhao@amd.com>
Tue, 21 Jun 2022 08:59:44 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2022 22:14:31 +0000 (18:14 -0400)
commitbfaced6ee77484d8b9c6baf86a8e9406f80108c5
treeaa16a3b0b5dbc3425bfb4c270b488ee026edcf9e
parent5bd8d53f6fa53eab5433698d1362dae2aa53c1cc
drm/amdgpu: save and restore gc hub regs

Save and restore gfxhub regs as they will be reset during mode 2

Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c
drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c
drivers/gpu/drm/amd/include/asic_reg/gc/gc_10_3_0_offset.h