From: Monk Liu Date: Mon, 12 Dec 2016 09:18:37 +0000 (+0800) Subject: drm/amdgpu:bypass RLC init for SRIOV X-Git-Tag: v4.12~21^2~26^2~87 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfee05bc90571966797ce4850f299c14a9bd02ff;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Xiangliang Yu Reviewed-by: Alex Deucher Acked-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 9df3e83..64bf705 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 */