Commit 6b37fba
committed
drm/v3d: Use DRM_GPU_SCHED_STAT_NO_HANG to skip the reset
When a CL/CSD job times out, we check if the GPU has made any progress
since the last timeout. If so, instead of resetting the hardware, we skip
the reset and allow the timer to be rearmed. This gives long-running jobs
a chance to complete.
Instead of manipulating scheduler's internals, inform the scheduler that
the job did not actually timeout and no reset was performed through
the new status code DRM_GPU_SCHED_STAT_NO_HANG.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://lore.kernel.org/r/20250714-sched-skip-reset-v6-5-5c5ba4f55039@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>1 parent 1472e75 commit 6b37fba
1 file changed
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | 747 | | |
758 | 748 | | |
759 | 749 | | |
| |||
772 | 762 | | |
773 | 763 | | |
774 | 764 | | |
775 | | - | |
776 | | - | |
| 765 | + | |
777 | 766 | | |
778 | 767 | | |
779 | 768 | | |
| |||
818 | 807 | | |
819 | 808 | | |
820 | 809 | | |
821 | | - | |
822 | | - | |
| 810 | + | |
823 | 811 | | |
824 | 812 | | |
825 | 813 | | |
| |||
0 commit comments