aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-09-15 04:58:08 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 15:14:12 -0400
commitf840cc5f8447db7efff447a25bcddbf084bd3e2e (patch)
tree5378f439fc6224ed8ece8a11b480ba47bc806900
parent6e132ca0bb62b30c0eb053d99f75bb827f7876f5 (diff)
drm/amdgpu/sriov:init csb for gfxv9
RLC need CSB registers initiated under SRIOV during world switch otherwise the clear state buffer behav will not be recovered to current VF scheme after switch back Signed-off-by: Monk Liu <Monk.Liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index f1d7c5d0f385..e2ae00df1d52 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -2045,8 +2045,10 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
2045{ 2045{
2046 int r; 2046 int r;
2047 2047
2048 if (amdgpu_sriov_vf(adev)) 2048 if (amdgpu_sriov_vf(adev)) {
2049 gfx_v9_0_init_csb(adev);
2049 return 0; 2050 return 0;
2051 }
2050 2052
2051 gfx_v9_0_rlc_stop(adev); 2053 gfx_v9_0_rlc_stop(adev);
2052 2054