drm/amdgpu: Skip the coredump collection on reset during driver reload
authorAhmad Rehman <Ahmad.Rehman@amd.com>
Tue, 16 Apr 2024 18:29:15 +0000 (13:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Apr 2024 03:46:45 +0000 (23:46 -0400)
commitea137071ada1591a05ce0366de350158bf8dd6c7
tree175fc3d80ecf4ddf1e9746e9088d6ca652f3a6a3
parentca0afa2f4161dbf82e345144fd0042d00b11eb5b
drm/amdgpu: Skip the coredump collection on reset during driver reload

In passthrough environment, the driver triggers the mode-1 reset on
reload. The reset causes the core dump collection which is delayed task
and prevents driver from unloading until it is completed. Since we do
not need to collect data on "reset on reload" case, we can skip core
dump collection.

v2: Use the same flag to avoid calling amdgpu_reset_reg_dumps as well.

Signed-off-by: Ahmad Rehman <Ahmad.Rehman@amd.com>
Reviewed-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_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.h