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 06713CFD637 for ; Wed, 7 Jan 2026 14:08:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AB47610E5E9; Wed, 7 Jan 2026 14:08:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="tMjJA/SV"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 244AF10E5E9; Wed, 7 Jan 2026 14:08:10 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id E2C0640A98; Wed, 7 Jan 2026 14:08:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6456DC4CEF7; Wed, 7 Jan 2026 14:08:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767794889; bh=NEoz9kconBg9NkwHDA2V2ValAY1/VU8u0UsT+syAgM4=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=tMjJA/SVma0rH5/9z9sCR6sTQBsL4LVaZQgruSqlQX44XAsE7FSVuqC+jRARlkADo WTueFnASNLxeKoajCjSl7247BHS4cOmeXmWV/AmtZZTYKCQ+8gU16Nlta2SBUloN6H lAWbPREALb0c742PoD4dkGB9fhpp2HJ1dw+Coy7Td9baLCwIImn8aXhQsaqRZweQh3 kT5bwLJDakupoF7u6fsxcGavB2n3XMGzsFetSSNU526WYtJlWsrCsVCqUnZm1LHALQ ooAG26UC41zFkCxg2ceF5jg+cPaHPICiusqtIhMwJ1992wO83DCYBSC2ZIbQMR0JHs tCoWKowOJ/LCg== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 07 Jan 2026 15:08:06 +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: <20260107134405.96603-1-tvrtko.ursulin@igalia.com> 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 2:44 PM CET, Tvrtko Ursulin wrote: > While at it, we add READ_ONCE annotation on the entity->stopped check to > mark the unlocked read. READ_ONCE() is not about marking unlocked reads and does not guarantee atomicity. Instead, it is about compiler control, i.e. forcing loads, and, depending o= n the architecture, deal with address and control dependency barriers. If we want lockless access to entity->stopped it should be atomic_read(), atomic_read_acquire(), etc. - Danilo