drm/amdgpu: when resume failed, return error to avoid system hang.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 30 Mar 2017 05:21:01 +0000 (13:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Apr 2017 17:40:32 +0000 (13:40 -0400)
commite6707218f77bc850f41720dc70d3d4a0dce9ef4a
tree42e8acd5d77c703569f807ab21b59be7b670450d
parenta9f87f6452543505108d7d9b36d948534ea28b0b
drm/amdgpu: when resume failed, return error to avoid system hang.

Continuing if the GPU fails to resume will end in pain.

Signed-off-by: Rex Zhu <Rex.Zhu@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