summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
diff options
context:
space:
mode:
authorMonk Liu2017-02-08 09:51:06 +0100
committerAlex Deucher2017-03-30 05:53:14 +0200
commitf6bd79424cd02f5726c294916d9afb3cf031080c (patch)
treef4ed9e0b213d631532ec7b49d66b16f34fcc6970 /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
parentdrm/amdgpu:imple ring clear (diff)
downloadkernel-qcow2-linux-f6bd79424cd02f5726c294916d9afb3cf031080c.tar.gz
kernel-qcow2-linux-f6bd79424cd02f5726c294916d9afb3cf031080c.tar.xz
kernel-qcow2-linux-f6bd79424cd02f5726c294916d9afb3cf031080c.zip
drm/amdgpu:use clear_ring to clr RB
In resume routine, we need clr RB prior to the ring test of engine, otherwise some engine hang duplicated during GPU reset. Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c1
1 files changed, 1 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 b2bfee3e5b67..e09dd5e5b58a 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -4515,6 +4515,7 @@ static int gfx_v8_0_cp_gfx_resume(struct amdgpu_device *adev)
}
/* start the ring */
+ amdgpu_ring_clear_ring(ring);
gfx_v8_0_cp_gfx_start(adev);
ring->ready = true;
r = amdgpu_ring_test_ring(ring);