Skip to content

RFC Simpler and more consistent handling of entities on missing hw blocks

Tvrtko Ursulin amd-gfx dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/amdgpu: Reject impossible entities earlydrivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c+5 -01 reply
2/3drm/amdgpu: Remove redundant missing hw ip handlingdrivers/gpu/drm/amd/amdgpu/amdgpu_cs.c+0 -71 reply
3/3drm/sched: Disallow initializing entities with no schedulersdrivers/gpu/drm/scheduler/sched_entity.c+4 -96 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchPhilipp Stanner
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/3] Simpler and more consistent handling of entities on missing hw blocks

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(-)
Signature · 1 line
2.52.0