Hi Tvrtko,
On 03/12/26 11:01, Tvrtko Ursulin wrote:
Stricter rules around entity initialization, removing the single scheduler
special case which fixes the priority override for amdgpu single IP instance
entities and addressing of fence_seq FIXME by pulling the entity->lock up from
drm_sched_entity_select_rq().
In the last round sashiko complained about the first patch breaking legacy v3d
but Maíra has confirmed that is an unused path so no problem to make it
stricter. Lets see what sashiko finds in this round.
Just to let you know, I already submitted a series to remove V3D < 4.2
[1]. I'm just waiting for DT maintainers feedback.
Thank you for the series!
[1]
https://lore.kernel.org/dri-devel/[email protected]/T/
Best regards,
- Maíra
v2:
* New patches in the series:
* Fix amdgpu VCN potential usage of un-initialized schedulers.
* Make entaviv and msm check drm_sched_entity_init return value.
* Mark drm_sched_entity_init as __must_check.
* Clamp priority levels against all schedulers in drm_sched_entity_init().
Cc: Christian König <[email protected]>
Cc: Danilo Krummrich <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Philipp Stanner <[email protected]>
Cc: Maíra Canal <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Russell King <[email protected]>
Cc: Christian Gmeiner <[email protected]>
Cc: Rob Clark <[email protected]>
Cc: Dmitry Baryshkov <[email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Tvrtko Ursulin (10):
drm/amdgpu/vcn3: Fail job submission if VCN0 decode is disabled under
SR-IOV
drm/etnaviv: Release context id on failure
drm/etnaviv: Check drm_sched_entity_init() return value
drm/msm: Check drm_sched_entity_init() return value
drm/sched: Mark drm_sched_entity_init() as __must_check
drm/sched: Disallow initializing entities with un-initialized
schedulers
drm/sched: Clamp priority againsts all provided schedulers
drm/sched: Ignore stopped entity attempt to change its run-queue
drm/sched: Remove the single scheduler special case
drm/sched: Address the fence_seq fixme
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 4 ++
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 26 ++++---
drivers/gpu/drm/msm/msm_submitqueue.c | 9 ++-
drivers/gpu/drm/scheduler/sched_entity.c | 89 +++++++++++++++---------
drivers/gpu/drm/scheduler/sched_fence.c | 6 +-
drivers/gpu/drm/scheduler/sched_main.c | 7 +-
include/drm/gpu_scheduler.h | 59 +++++++++-------
7 files changed, 129 insertions(+), 71 deletions(-)