drm/amdgpu: add interface amdgpu_gfx_init_spm_golden for Navi1x
authorTianci.Yin <tianci.yin@amd.com>
Fri, 19 Jun 2020 08:01:11 +0000 (16:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Aug 2020 20:22:29 +0000 (16:22 -0400)
commitd58fe3cf11a86e59183c8b91c50ae2cde24a2128
tree1e24ddc8f096a2c25e1b713c0a853910e6822709
parent66459e1db2f8b6f7cdfe0d091345b56d12348d0d
drm/amdgpu: add interface amdgpu_gfx_init_spm_golden for Navi1x

On Navi1x, the SPM golden settings are lost after GFXOFF
enter/exit, so reconfiguration is needed. Make the
configuration code as an interface for future use.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Tianci.Yin <tianci.yin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c