mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
accel/ivpu: Trigger recovery on TDR with OS scheduling
With OS scheduling mode the driver cannot determine which context
caused the timeout, so context abort cannot be used. Instead of
queuing context_abort_work, directly trigger full device recovery
when a job timeout (TDR) occurs in OS scheduling mode.
Fixes: ade00a6c90 ("accel/ivpu: Perform engine reset instead of device recovery on TDR")
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://patch.msgid.link/20260402125526.845210-1-karol.wachowski@linux.intel.com
This commit is contained in:
parent
6fdfd24017
commit
c636ae346d
|
|
@ -221,6 +221,12 @@ static void ivpu_job_timeout_work(struct work_struct *work)
|
|||
|
||||
abort:
|
||||
atomic_set(&vdev->job_timeout_counter, 0);
|
||||
|
||||
if (vdev->fw->sched_mode == VPU_SCHEDULING_MODE_OS) {
|
||||
ivpu_pm_trigger_recovery(vdev, "Job timeout");
|
||||
return;
|
||||
}
|
||||
|
||||
ivpu_jsm_state_dump(vdev);
|
||||
ivpu_dev_coredump(vdev);
|
||||
queue_work(system_percpu_wq, &vdev->context_abort_work);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user