Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/sched: contradictory sched_list count in
  drm_sched_entity_init() doc
--

commit 2a2c1e952ba97527448ca31cea515eb052a0d67c
Author: Tvrtko Ursulin <[email protected]>

drm/sched: Remove the single scheduler special case

This commit replaces the single-scheduler special case in struct
drm_sched_entity with a union holding either a single scheduler pointer or
a scheduler list, allowing dynamic priority changes on single-scheduler
entities.

> diff --git a/drivers/gpu/drm/scheduler/sched_entity.c 
> b/drivers/gpu/drm/scheduler/sched_entity.c
> index cdc55906c4131..599dd4ff589b4 100644
> --- a/drivers/gpu/drm/scheduler/sched_entity.c
> +++ b/drivers/gpu/drm/scheduler/sched_entity.c
> @@ -115,7 +115,9 @@ static bool drm_sched_list_is_initialized(struct 
> drm_gpu_scheduler **sched_list,
>   * @guilty: atomic_t set to 1 when a job on this queue
>   *          is found to be guilty causing a timeout
>   *
> - * Note that the &sched_list must have at least one element to schedule the 
> entity.
> + * Note that the &sched_list must have exactly one element to schedule the
> + * entity. Callers which pass more than one scheduler on the @sched_list must
> + * ensure the list remains valid for the lifetime of the entity.
>   *
>   * For changing @priority later on at runtime see
>   * drm_sched_entity_set_priority(). For changing the set of schedulers

[Severity: Low]
Should this still say "at least one element" rather than "exactly one
element"?  drm_sched_entity_init() accepts any non-zero num_sched_list,
and the very next sentence describes callers passing more than one
scheduler.

-- 
Sashiko AI review · 
https://sashiko.dev/#/patchset/[email protected]?part=9

Reply via email to