Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40871CA9EC5 for ; Mon, 12 Oct 2026 08:05:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 98CFB10E466; Mon, 12 Oct 2026 08:05:27 +0000 (UTC) Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4BFA210E466 for ; Mon, 12 Oct 2026 08:05:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:From:Cc:To:Subject: MIME-Version:Date:Message-ID:From:Reply-To; bh=emVwKEkVUe/m48nEhCm9gAm4LlNxEtCvmRgQMfgJdQQ=; b=UP+TwwFX9oVVRCxiURxf4EkZVb HcokBaUoFOm3IsM8i0duGhgZrvssM4zuljtYgqFrPWkETD5b2zhwpdxZtne+Z3L6PcGK47Ipge+E2 urjAeg91T7AY/0/h8Th6SOcEHWdzo3ElBqxxMQlS8OkDBcEq0WcWdkFNH40LO3ryavEHKbYeBly3c yD6dgiZ8ZVa9LeacAZ1dCAGZz2ZqPJHV76IFKjYJoyXMLvUn4+WER02RLy4Hm1fVaqTt+PGCLq97g 6W8zSQ27ANk4HS2RRCsIBdZu2T5sC7NrUq/VvvteY4jMdZ2sRfctDFu+YAvCvATbAm/w8ATr1aSWL xsfV/+dg==; Received: from [81.79.79.1] (helo=[192.168.0.116]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1xGB26-00GEeW-6s; Mon, 12 Oct 2026 10:05:18 +0200 Message-ID: <103fba2b-c47f-4b17-a8a6-804ca00ff15a@igalia.com> Date: Mon, 12 Oct 2026 09:05:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/sched: Document entity->stopped is protect by entity->lock To: phasta@kernel.org, dri-devel@lists.freedesktop.org Cc: kernel-dev@igalia.com, =?UTF-8?Q?Christian_K=C3=B6nig?= , Danilo Krummrich , Matthew Brost References: <20261002124655.74716-1-tvrtko.ursulin@igalia.com> Content-Language: en-GB From: Tvrtko Ursulin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 08/10/2026 11:10, Philipp Stanner wrote: > On Fri, 2026-10-02 at 13:46 +0100, Tvrtko Ursulin wrote: >> Commit >> 0e118b936dc5 ("drm/sched: Lock drm_sched_entity_is_idle()") >> has removed the last unlocked entity->stopped access so lets officially >> document it in kerneldoc as locked with the entity lock. > > Ah nice, I overlooked that. Thx for fixing. > > Nit: typo in the commit title, "protectED". I can fix that at applying > if you want. Ah yes, best not to spam the list for that. If you want I can push and tweak as well. Tvrtko >> >> Signed-off-by: Tvrtko Ursulin >> Cc: Christian König >> Cc: Danilo Krummrich >> Cc: Matthew Brost >> Cc: Philipp Stanner >> --- >>  include/drm/gpu_scheduler.h | 2 +- >>  1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h >> index 563d7fb88a6d..3b0978fa8cf0 100644 >> --- a/include/drm/gpu_scheduler.h >> +++ b/include/drm/gpu_scheduler.h >> @@ -101,7 +101,7 @@ struct drm_sched_entity { >>   * >>   * Lock protecting the run-queue (@rq) to which this entity belongs, >>   * @priority, @last_scheduled and the list of schedulers (@sched_list, >> - * @num_sched_list) and @rr_ts. >> + * @num_sched_list), @rr_ts and @stopped. >>   */ >>   spinlock_t lock; >>