diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-05-05 10:21:36 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-10 11:23:17 -0400 |
commit | de70c6357be23261c18fcccfd2ad148512fedd28 (patch) | |
tree | 61d0e145cc11b3170bdc218e21f5503b48aad712 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | |
parent | 634b6a8a064576797120b74facf95ba79283b5d5 (diff) |
drm/amdgpu/atomfirmware: add function to update engine hang status
Update the scratch reg for when the engine is hung.
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h index d0c4dcd7fa96..a2c3ebe22c71 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.h | |||
@@ -28,6 +28,8 @@ bool amdgpu_atomfirmware_gpu_supports_virtualization(struct amdgpu_device *adev) | |||
28 | void amdgpu_atomfirmware_scratch_regs_init(struct amdgpu_device *adev); | 28 | void amdgpu_atomfirmware_scratch_regs_init(struct amdgpu_device *adev); |
29 | void amdgpu_atomfirmware_scratch_regs_save(struct amdgpu_device *adev); | 29 | void amdgpu_atomfirmware_scratch_regs_save(struct amdgpu_device *adev); |
30 | void amdgpu_atomfirmware_scratch_regs_restore(struct amdgpu_device *adev); | 30 | void amdgpu_atomfirmware_scratch_regs_restore(struct amdgpu_device *adev); |
31 | void amdgpu_atomfirmware_scratch_regs_engine_hung(struct amdgpu_device *adev, | ||
32 | bool hung); | ||
31 | int amdgpu_atomfirmware_allocate_fb_scratch(struct amdgpu_device *adev); | 33 | int amdgpu_atomfirmware_allocate_fb_scratch(struct amdgpu_device *adev); |
32 | 34 | ||
33 | #endif | 35 | #endif |