Skip to content

Commit e1d27f7

Browse files
ZhenGuo Yinalexdeucher
authored andcommitted
drm/amdgpu: skip coredump after job timeout in SRIOV
VF FLR will be triggered by host driver before job timeout, hence the error status of GPU get cleared. Performing a coredump here is unnecessary. Signed-off-by: ZhenGuo Yin <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 126be9b commit e1d27f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job)
107107
/*
108108
* Do the coredump immediately after a job timeout to get a very
109109
* close dump/snapshot/representation of GPU's current error status
110+
* Skip it for SRIOV, since VF FLR will be triggered by host driver
111+
* before job timeout
110112
*/
111-
amdgpu_job_core_dump(adev, job);
113+
if (!amdgpu_sriov_vf(adev))
114+
amdgpu_job_core_dump(adev, job);
112115

113116
if (amdgpu_gpu_recovery &&
114117
amdgpu_ring_soft_recovery(ring, job->vmid, s_job->s_fence->parent)) {

0 commit comments

Comments
 (0)