drm/amdgpu: Reenable manual GPU reset from sysfs
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 19 Jan 2018 22:23:08 +0000 (17:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jan 2018 06:42:48 +0000 (01:42 -0500)
Otherwise it keeps rejecting the reset.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 9baf182..03f2e56 100644 (file)
@@ -2619,7 +2619,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
        uint64_t reset_flags = 0;
        int i, r, resched;
 
-       if (!amdgpu_device_ip_check_soft_reset(adev)) {
+       if (!force && !amdgpu_device_ip_check_soft_reset(adev)) {
                DRM_INFO("No hardware hang detected. Did some blocks stall?\n");
                return 0;
        }