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 78E2FEE2082 for ; Fri, 6 Feb 2026 10:23:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C4E3110E6E4; Fri, 6 Feb 2026 10:23:14 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="b6T/KuWg"; 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 EB74410E6E4 for ; Fri, 6 Feb 2026 10:23:13 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id B6D8640905; Fri, 6 Feb 2026 10:23:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29FB7C116C6; Fri, 6 Feb 2026 10:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770373393; bh=MD0ltbolpcbX0ppzykUcn2VF7JjI7JiMlQpT3XJrlqE=; h=Date:From:Subject:Cc:To:References:In-Reply-To:From; b=b6T/KuWgLybFqrcg/AU2e1od//IjnCjYIsPMsNSzMc86IiHRoQlUKKDu2HAB/EgcQ mH27jkRAJYsU9UKtTFpITp3oC0kdjk2l+H9ZdvFV+kmNRMOOmEKzSptBh3GWD0t/+I IpJ692BmEsGCVGXUCCQGh6Pv1XrDqCS6C1NJEUEAOhOaftvau85dQZ7W6fW6z4C6Em P3ox4uFwO4oFrnnESPUy/lySjsyR+YwMCybHuGh4nFUVUayrPclpEYixpP3rfpbOgK zkWhPRlVj2l4WzT17/5ZUXEBRQ2rxJTExpJVQmkeaQg+tZMbwLg2x6talOcnGbWDAg 53v3W/8sQ5T4Q== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 06 Feb 2026 11:23:09 +0100 Message-Id: From: "Danilo Krummrich" Subject: Re: [RFC PATCH 2/4] rust: sync: Add dma_fence abstractions Cc: "Philipp Stanner" , "David Airlie" , "Simona Vetter" , "Alice Ryhl" , "Gary Guo" , "Benno Lossin" , =?utf-8?q?Christian_K=C3=B6nig?= , "Daniel Almeida" , "Joel Fernandes" , , , To: "Boris Brezillon" References: <20260203081403.68733-2-phasta@kernel.org> <20260203081403.68733-4-phasta@kernel.org> <20260205095727.4c3e2941@fedora> In-Reply-To: <20260205095727.4c3e2941@fedora> 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 Thu Feb 5, 2026 at 9:57 AM CET, Boris Brezillon wrote: > On Tue, 3 Feb 2026 09:14:01 +0100 > Philipp Stanner wrote: > Unfortunately, I don't know how to translate that in rust, but we > need a way to check if any path code path does a DmaFence.signal(), > go back to the entry point (for a WorkItem, that would be > WorkItem::run() for instance), and make it a DmaFenceSignallingPath. > Not only that, but we need to know all the deps that make it so > this path can be called (if I take the WorkItem example, that would > be the path that leads to the WorkItem being scheduled). I think we need a guard object for this that is not Send, just like for any other lock. Internally, those markers rely on lockdep, i.e. they just acquire and relea= se a "fake" lock.