diff options
author | Victor Zhao <Victor.Zhao@amd.com> | 2022-06-24 11:59:21 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-16 18:14:31 -0400 |
commit | 72fadb13674f807f10a168fb7d020dde58ce6b0b (patch) | |
tree | eaf6b36d8c433479fa5b4d7461cfd9f56ed3a5e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h | |
parent | bfaced6ee77484d8b9c6baf86a8e9406f80108c5 (diff) | |
download | linux-72fadb13674f807f10a168fb7d020dde58ce6b0b.tar.bz2 |
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 <Victor.Zhao@amd.com>
Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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 { |