aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-08-21 04:45:29 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 12:11:16 -0400
commit12938fad234a3924cc9b82080db4f62fe1cf52bb (patch)
tree3b784794d8d219b95dd22cd5544a05177ea9ec10 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent1849e73748be3c80bf752e4c4877fe90a8da4822 (diff)
drm/amdgpu: cleanup GPU recovery check a bit (v2)
Check if we should call the function instead of providing the forced flag. v2: rebase on KFD changes (Alex) Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 19ef7711d944..340e40d03d54 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1158,8 +1158,9 @@ int emu_soc_asic_init(struct amdgpu_device *adev);
1158#define amdgpu_asic_need_full_reset(adev) (adev)->asic_funcs->need_full_reset((adev)) 1158#define amdgpu_asic_need_full_reset(adev) (adev)->asic_funcs->need_full_reset((adev))
1159 1159
1160/* Common functions */ 1160/* Common functions */
1161bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev);
1161int amdgpu_device_gpu_recover(struct amdgpu_device *adev, 1162int amdgpu_device_gpu_recover(struct amdgpu_device *adev,
1162 struct amdgpu_job* job, bool force); 1163 struct amdgpu_job* job);
1163void amdgpu_device_pci_config_reset(struct amdgpu_device *adev); 1164void amdgpu_device_pci_config_reset(struct amdgpu_device *adev);
1164bool amdgpu_device_need_post(struct amdgpu_device *adev); 1165bool amdgpu_device_need_post(struct amdgpu_device *adev);
1165 1166