drm/amdgpu: add amdgpu soft reset
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 15 Jul 2016 07:57:13 +0000 (15:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:32:05 +0000 (11:32 -0400)
commit35d782feae7f0b817016315d8718a82c61968894
tree0e96ddedc96c8be182678c9965f33e0b05d0af3c
parent1057f20c2252c5eba17e4a9bbf74ea990411f46c
drm/amdgpu: add amdgpu soft reset

Check gpu status first, if MC/VMC/DISPLAY hang, directly triger full reset.
If engine hangs, then triger engine soft reset, if soft reset fails, will
fallback to full reset.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/include/amd_shared.h