From mboxrd@z Thu Jan 1 00:00:00 1970 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 710A5D1A62D for ; Fri, 9 Jan 2026 14:16:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2ACFC10E215; Fri, 9 Jan 2026 14:16:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="qLn6WPKi"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79DFC10E215; Fri, 9 Jan 2026 14:16:05 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 0BAD460122; Fri, 9 Jan 2026 14:08:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BE99C4CEF1; Fri, 9 Jan 2026 14:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767967717; bh=FbDaIgf9uiibuLEFDL1NuGXH3mmcCmmU2KQXhcbsUXk=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=qLn6WPKialDqTeJP47KXFA6YvV4hPoXwGWI8//Sa79Mm+xmGngWLn1jJKPXk1bo3k 8v+e38AKTLqc9Sp1SyTz0IYcx5llpHtGyzvJXPUeaBHptKmYozqvvpk0MHiGqPuRxu SW2z3/rQ1WYmxyEX6g2gWtwjid3G8voHBR0IkEZUJQ18xpAxi22FqwU7ZosJrzmc4B lr1esOOiybGGgP6C5nBnFaqJwNKjRViV+Je0ulE2iuqYC7aLl+PxRa8Stuz67nUcxC nXhuRmSm2QOkkEd0K2BpJZYYP3SnQG3CQ/Bf4TxorpT9ct8G43nadJq78WksUK8crV OPanJXB7ML68A== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 09 Jan 2026 15:08:34 +0100 Message-Id: Subject: Re: [PATCH] drm/sched: Simplify idle entity check Cc: , , , =?utf-8?q?Christian_K=C3=B6nig?= , "Matthew Brost" , "Philipp Stanner" To: "Tvrtko Ursulin" From: "Danilo Krummrich" References: <20260107134405.96603-1-tvrtko.ursulin@igalia.com> In-Reply-To: X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" On Wed Jan 7, 2026 at 3:08 PM CET, Danilo Krummrich wrote: > If we want lockless access to entity->stopped it should be atomic_read(), > atomic_read_acquire(), etc. Actually, since stopped is just a boolean and treated as flag, it might be = fine as is, but it then also needs WRITE_ONCE() everywhere else.