diff options
| author | Victor Zhao <[email protected]> | 2022-06-24 03:59:21 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-08-16 22:14:31 +0000 |
| commit | 72fadb13674f807f10a168fb7d020dde58ce6b0b (patch) | |
| tree | eaf6b36d8c433479fa5b4d7461cfd9f56ed3a5e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h | |
| parent | drm/amdgpu: save and restore gc hub regs (diff) | |
| download | kernel-72fadb13674f807f10a168fb7d020dde58ce6b0b.tar.gz kernel-72fadb13674f807f10a168fb7d020dde58ce6b0b.zip | |
drm/amdgpu: revert context to stop engine before mode2 reset
For some hang caused by slow tests, engine cannot be stopped which
may cause resume failure after reset. In this case, force halt
engine by reverting context addresses
Signed-off-by: Victor Zhao <[email protected]>
Acked-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h index f8036f2b100e..c7b44aeb671b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h @@ -37,6 +37,7 @@ struct amdgpu_gfxhub_funcs { void (*utcl2_harvest)(struct amdgpu_device *adev); void (*mode2_save_regs)(struct amdgpu_device *adev); void (*mode2_restore_regs)(struct amdgpu_device *adev); + void (*halt)(struct amdgpu_device *adev); }; struct amdgpu_gfxhub { |
