drm_sched_fault(9)
π drm_sched_fault(9) β like, the Kernel API Manual page, bestie β¨
okay so real talk, this one is from the Kernel API Manual (yes, the drm_sched_fault(9) girlies rise π) and she is SHORT but she is IMPORTANT. no filler, no fluff, just one function doing one extremely dramatic thing. let's get into it π
πΈ NAME πΈ
drm_sched_fault β immediately start timeout handler
likeβ¦ immediately. not "in a sec", not "after brunch". immediately π
β¨ SYNOPSIS β¨
void drm_sched_fault (struct drm_gpu_scheduler *sched );
that's it. that's the whole signature. returns nothing, takes one thing, does the most π«Ά
π¦ ARGUMENTS π¦
schedβ the scheduler where the timeout handling should be started. this is the main character of the whole call, the one who's gonna get told "hey, timeout handling? start it. now." π
π DESCRIPTION π
Start timeout handling immediately when the driver detects a hardware fault.
lowkey that's the whole thing β and honestly? iconic. your driver clocks a hardware fault, you call this, and the timeout handling kicks off right then, no waiting around, no "let me finish this queue first", nothing. it's giving emergency group chat "guys. now." energy ππ₯
no cap, this is the "drop everything" button. the driver detected a hardware fault β the scheduler needs to hear about it immediately, not eventually. π¨
π SEE ALSO π
the whole friend group showed up, fr fr β every single one of them:
- Kernel file
./drivers/gpu/drm/scheduler/sched_main.c Overview(9)Flow Control(9)sched_policy (int)(9)drm_sched_can_queue(9)drm_sched_run_job_queue(9)drm_sched_run_free_queue(9)drm_sched_job_done(9)drm_sched_job_done_cb(9)drm_sched_start_timeout(9)drm_sched_tdr_queue_imm(9)drm_sched_suspend_timeout(9)drm_sched_resume_timeout(9)drm_sched_job_reinsert_on_false_timeout(9)drm_sched_stop(9)drm_sched_start(9)drm_sched_resubmit_jobs(9)drm_sched_job_init(9)drm_sched_job_arm(9)drm_sched_job_add_dependency(9)drm_sched_job_add_syncobj_dependency(9)drm_sched_job_add_resv_dependencies(9)drm_sched_job_add_implicit_dependencies(9)drm_sched_job_has_dependency(9)drm_sched_job_cleanup(9)drm_sched_wakeup(9)drm_sched_select_entity(9)drm_sched_get_finished_job(9)drm_sched_pick_best(9)drm_sched_free_job_work(9)drm_sched_run_job_work(9)drm_sched_init(9)drm_sched_fini(9)drm_sched_increase_karma(9)drm_sched_wqueue_ready(9)drm_sched_wqueue_stop(9)drm_sched_wqueue_start(9)drm_sched_is_stopped(9)drm_sched_job_is_signaled(9)
mwah π that's the page! this little legend lives over in ./drivers/gpu/drm/scheduler, and she was stamped October 2026 β so yeah, go read the whole squad above, they all ate and left no crumbs ππΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms