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

drm/sched: Remove mention of indirect buffers

Indirect buffers are an AMD term describing essentialy a job submitted to
the scheduler, just a lower level one. Since scheduler was promoted to be
generic long ago, lets replace those references with jobs.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Philipp Stanner <phasta@kernel.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://lore.kernel.org/r/20250814133627.2550-1-tvrtko.ursulin@igalia.com

authored by

Tvrtko Ursulin and committed by
Philipp Stanner
ec035aba 5c76c794

+7 -7
+7 -7
drivers/gpu/drm/scheduler/sched_entity.c
··· 285 285 return 0; 286 286 287 287 sched = entity->rq->sched; 288 - /** 289 - * The client will not queue more IBs during this fini, consume existing 290 - * queued IBs or discard them on SIGKILL 288 + /* 289 + * The client will not queue more jobs during this fini - consume 290 + * existing queued ones, or discard them on SIGKILL. 291 291 */ 292 292 if (current->flags & PF_EXITING) { 293 293 if (timeout) ··· 300 300 drm_sched_entity_is_idle(entity)); 301 301 } 302 302 303 - /* For killed process disable any more IBs enqueue right now */ 303 + /* For a killed process disallow further enqueueing of jobs. */ 304 304 last_user = cmpxchg(&entity->last_user, current->group_leader, NULL); 305 305 if ((!last_user || last_user == current->group_leader) && 306 306 (current->flags & PF_EXITING) && (current->exit_code == SIGKILL)) ··· 324 324 void drm_sched_entity_fini(struct drm_sched_entity *entity) 325 325 { 326 326 /* 327 - * If consumption of existing IBs wasn't completed. Forcefully remove 328 - * them here. Also makes sure that the scheduler won't touch this entity 329 - * any more. 327 + * If consumption of existing jobs wasn't completed forcefully remove 328 + * them. Also makes sure that the scheduler won't touch this entity any 329 + * more. 330 330 */ 331 331 drm_sched_entity_kill(entity); 332 332