Trying to consolidate how entity creation and/or submission is rejected when
underlying hw ip block is missing.

Amdgpu appears to be the only user which can pass zero schedulers, or a single
NULL scheduler to drm_sched_entity_init(), so if I did not miss something subtle
and the first two patches are okay, then the last one removes handling for that
special case from the DRM scheduler.

Tvrtko Ursulin (3):
  drm/amdgpu: Reject impossible entities early
  drm/amdgpu: Remove redundant missing hw ip handling
  drm/sched: Disallow initializing entities with no schedulers

 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c   |  7 -------
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c  |  5 +++++
 drivers/gpu/drm/scheduler/sched_entity.c | 13 ++++---------
 3 files changed, 9 insertions(+), 16 deletions(-)

-- 
2.52.0

Reply via email to