drm/amdgpu: revert context to stop engine before mode2 reset
authorVictor Zhao <Victor.Zhao@amd.com>
Fri, 24 Jun 2022 03:59:21 +0000 (11:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2022 22:14:31 +0000 (18:14 -0400)
commit72fadb13674f807f10a168fb7d020dde58ce6b0b
treeeaf6b36d8c433479fa5b4d7461cfd9f56ed3a5e9
parentbfaced6ee77484d8b9c6baf86a8e9406f80108c5
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfxhub.h
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c
drivers/gpu/drm/amd/amdgpu/sienna_cichlid.c