From: sashiko-bot@kernel.org
To: "Tvrtko Ursulin" <tvrtko.ursulin@igalia.com>,
dri-devel@lists.freedesktop.org
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 09/10] drm/sched: Remove the single scheduler special case
Date: Thu, 03 Dec 2026 14:31:56 +0000 [thread overview]
Message-ID: <sashiko-outbox-247975@kernel.org> (raw)
In-Reply-To: <20261203140128.6813-10-tvrtko.ursulin@igalia.com>
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 <tvrtko.ursulin@igalia.com>
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/20261203140128.6813-1-tvrtko.ursulin@igalia.com?part=9
next prev parent reply other threads:[~2026-12-03 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:01 [PATCH v2 00/10] drm/sched: Entity handling cleanups Tvrtko Ursulin
2026-12-03 14:01 ` [PATCH v2 09/10] drm/sched: Remove the single scheduler special case Tvrtko Ursulin
2026-12-03 14:31 ` sashiko-bot [this message]
2026-12-03 19:29 ` [PATCH v2 00/10] drm/sched: Entity handling cleanups Maíra Canal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247975@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=tvrtko.ursulin@igalia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox