aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2016-12-12 17:18:37 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:55:02 -0400
commitcfee05bc90571966797ce4850f299c14a9bd02ff (patch)
tree5b481e722cb94b3ec19aa2f15bde5b2786ab70b4
parentcca02cd3d40d11468f53c502c0579963b42d4f34 (diff)
downloadkernel_replicant_linux-cfee05bc90571966797ce4850f299c14a9bd02ff.tar.gz
kernel_replicant_linux-cfee05bc90571966797ce4850f299c14a9bd02ff.tar.bz2
kernel_replicant_linux-cfee05bc90571966797ce4850f299c14a9bd02ff.zip
drm/amdgpu:bypass RLC init for SRIOV
one issue unresolved for RLC: rlc will go wrong completely if there is a soft_reset before RLC ucode loading. to workaround above issue, we can totally ignore RLC in guest driver side due to there was already full initialization on RLC side by GIM Signed-off-by: Monk Liu <Monk.Liu@amd.com> Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
index 9df3e834e7af..64bf70521af9 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
@@ -1465,6 +1465,9 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
{
int r;
+ if (amdgpu_sriov_vf(adev))
+ return 0;
+
gfx_v9_0_rlc_stop(adev);
/* disable CG */