aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-05-05 19:13:49 +0000
committerAlex Deucher <[email protected]>2015-06-04 01:03:39 +0000
commitd94aed5a6c947b1fda346aff1fa316dacf4a1a5a (patch)
treed07cb393e980fd9aaca6a759647a1ed8e2eec077 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentdrm/amdgpu: add some new tonga pci ids (diff)
downloadkernel-d94aed5a6c947b1fda346aff1fa316dacf4a1a5a.tar.gz
kernel-d94aed5a6c947b1fda346aff1fa316dacf4a1a5a.zip
drm/amdgpu: add and implement the GPU reset status query
Signed-off-by: Marek Olšák <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 61cf5ad78857..3448d9fe88cd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1781,6 +1781,7 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)
}
adev->needs_reset = false;
+ atomic_inc(&adev->gpu_reset_counter);
/* block TTM */
resched = ttm_bo_lock_delayed_workqueue(&adev->mman.bdev);