drm/amdgpu: add ring soft recovery v4
authorChristian König <christian.koenig@amd.com>
Tue, 21 Aug 2018 09:11:36 +0000 (11:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:10:07 +0000 (15:10 -0500)
commit7876fa4f55fda4a57348832f4a668279ed2b2fc4
tree3a2c8d39c5a86fff4f5f71906b26c4aa69be7a6c
parent07e6d3f03b5ff7b93af37932ee0f4b775812274f
drm/amdgpu: add ring soft recovery v4

Instead of hammering hard on the GPU try a soft recovery first.

v2: reorder code a bit
v3: increase timeout to 10ms, increment GPU reset counter
v4: squash in compile fix (Christian)

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h