]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: suspend ras module before gpu reset
authorYiPeng Chai <YiPeng.Chai@amd.com>
Tue, 28 Oct 2025 08:18:31 +0000 (16:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:53:59 +0000 (11:53 -0500)
commitd95ca7f515cfd2e721de07e86aa79adb17575a52
tree726550907388bb73193175e1da23f00e7e8a80ea
parentd4432f16d3393180e8f0b344b21839e553f7938b
drm/amdgpu: suspend ras module before gpu reset

During gpu reset, all GPU-related resources are
inaccessible. To avoid affecting ras functionality,
suspend ras module before gpu reset and resume
it after gpu reset is complete.

V2:
  Rename functions to avoid misunderstanding.

V3:
  Move flush_delayed_work to amdgpu_ras_process_pause,
  Move schedule_delayed_work to amdgpu_ras_process_unpause.

V4:
  Rename functions.

V5:
  Move the function to amdgpu_ras.c.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@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_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.h
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_process.c
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_process.h
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_sys.c
drivers/gpu/drm/amd/ras/rascore/ras.h
drivers/gpu/drm/amd/ras/rascore/ras_process.c