summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-08-19 16:48:17 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-08-26 16:40:18 -0400
commitb0a2db9b482f16a91b2d67bac6b4977dc471fcab (patch)
tree07340491cdfb496c3f6d10f973a8c52e13d6ea1c /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h
parentcff6c7f91a340788dde3b95f471885f7bf36c6c4 (diff)
drm/amdgpu: add pre_asic_init callback for SOC15
We need to restore some registers prior to running asic init to work around a firmware bug. Acked-by: Nirmoy Das <nirmoy.das@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h
index e0585e8c6c1b..c415c439f690 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h
@@ -26,4 +26,6 @@
extern const struct amd_ip_funcs gmc_v9_0_ip_funcs;
extern const struct amdgpu_ip_block_version gmc_v9_0_ip_block;
+
+void gmc_v9_0_restore_registers(struct amdgpu_device *adev);
#endif