[PATCH] drm/amdgpu: bypass RLC init under sriov for Tonga
Deucher, Alexander
Alexander.Deucher at amd.com
Fri Dec 7 15:33:38 UTC 2018
Acked-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Tiecheng Zhou <Tiecheng.Zhou at amd.com>
Sent: Thursday, December 6, 2018 9:11:49 PM
To: amd-gfx at lists.freedesktop.org
Cc: Zhou, Tiecheng
Subject: [PATCH] drm/amdgpu: bypass RLC init under sriov for Tonga
SWDEV-173384: vm-mix reboot (4 VMs) fail on Tonga under sriov
Phenomena: there is compute_1.3.1 ring test fail on one VM
when it starts to do hw_init after it is rebooted
Root cause: RLC will go wrong in soft_reset under sriov
Workaround: init RLC csb, and skip RLC stop, reset, start
this is because GIM has already done
full initialization on RLC
refer to 'commit cfee05bc9057 ("drm/amdgpu:bypass RLC init for SRIOV")'
and 'commit f840cc5f8447 ("drm/amdgpu/sriov:init csb for gfxv9")'
Signed-off-by: Tiecehng Zhou <Tiecheng.Zhou at amd.com>
---
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 1454fc3..a9c853a 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(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);
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20181207/24817f58/attachment-0001.html>
More information about the amd-gfx
mailing list