diff options
author | Tiecheng Zhou | 2018-12-07 02:11:35 +0100 |
---|---|---|
committer | Alex Deucher | 2018-12-10 21:21:13 +0100 |
commit | 31edd7c0a813d9dc778fcb5da1eb8202c140dc4d (patch) | |
tree | 40e42be5a8e89466b1bf0ab751de2a4ef170856e /drivers/gpu/drm/amd/amdgpu | |
parent | drm/amdgpu: move IV prescreening into the GMC code (diff) | |
download | kernel-qcow2-linux-31edd7c0a813d9dc778fcb5da1eb8202c140dc4d.tar.gz kernel-qcow2-linux-31edd7c0a813d9dc778fcb5da1eb8202c140dc4d.tar.xz kernel-qcow2-linux-31edd7c0a813d9dc778fcb5da1eb8202c140dc4d.zip |
drm/amdgpu: bypass RLC init under sriov for Tonga (v2)
RLC will go wrong in soft_reset under sriov
Workaroound: only need to init RLC csb, and skip RLC stop, reset, start
this is because host-driver has already done full initialization on RLC
v2: squash in build fix
Signed-off-by: Tiecehng Zhou <Tiecheng.Zhou@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index 1454fc306783..08f443fa7772 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -4068,6 +4068,11 @@ static void gfx_v8_0_rlc_start(struct amdgpu_device *adev) static int gfx_v8_0_rlc_resume(struct amdgpu_device *adev) { + if (amdgpu_sriov_vf(adev)) { + gfx_v8_0_init_csb(adev); + return 0; + } + adev->gfx.rlc.funcs->stop(adev); adev->gfx.rlc.funcs->reset(adev); gfx_v8_0_init_pg(adev); |