Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FF0B606A322 for ; Thu, 3 Dec 2026 14:32:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XkVM51Y3 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A49611202F; Thu, 3 Dec 2026 14:32:04 +0000 (UTC) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F2DB10E4A4; Thu, 3 Dec 2026 14:31:58 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id DD3C241FAB; Thu, 3 Dec 2026 14:31:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C1F71F000C1; Thu, 3 Dec 2026 14:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796308317; bh=e1Q+aIUV3DmF2SwFqREJwg73O/eQJIUaIZADziJAcYg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=XkVM51Y3n96hi4Hla63GOib+cre+xq9rh5pWYAp1k3ju88+ZGhbKuX3FQCrNgexqO J8nagdXWVSutBrVSdKTiYsZqLF9PTMt86wA7L7974vLiLIz8yzmdgYzhSGRZ9hlR4h lHYFi98YMOg2/iyTst4/nDpUcODj7jUuYdAIGi7tbyPhFdxZg2BuDHf5dGZfjRxDwj 48Nq7teJDOL3vF1gP4RoIiE7sDJMHarQ5Opr2mNQIKdY0/KlmVFLqSe12Fwd+2V4TL p5pufke571VqftQbUN/gZTALcJLbeYbKzCuSw9O+8e8Jm5FPmGrtL4W/tKQNTVBFkx MkoiY4QWWAYHA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 09/10] drm/sched: Remove the single scheduler special case To: "Tvrtko Ursulin" , dri-devel@lists.freedesktop.org Cc: amd-gfx@lists.freedesktop.org In-Reply-To: <20261203140128.6813-10-tvrtko.ursulin@igalia.com> References: <20261203140128.6813-1-tvrtko.ursulin@igalia.com> <20261203140128.6813-10-tvrtko.ursulin@igalia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:31:56 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "amd-gfx" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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/s= cheduler/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 t= he > + * 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203140128.6813= -1-tvrtko.ursulin@igalia.com?part=3D9