Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: ade00a6c903f ("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

+6
+6
drivers/accel/ivpu/ivpu_pm.c
··· 221 221 222 222 abort: 223 223 atomic_set(&vdev->job_timeout_counter, 0); 224 + 225 + if (vdev->fw->sched_mode == VPU_SCHEDULING_MODE_OS) { 226 + ivpu_pm_trigger_recovery(vdev, "Job timeout"); 227 + return; 228 + } 229 + 224 230 ivpu_jsm_state_dump(vdev); 225 231 ivpu_dev_coredump(vdev); 226 232 queue_work(system_percpu_wq, &vdev->context_abort_work);