From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.151 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796055144; b=4N4JlyXoXQKbLHHCvwlQcJVWuQ3YDKU0WndTic6skunlawhNkq5RtDYdGjzoNQA/+Hdb lA+e0IO1SUVCTksXazdbhArj8fwOSxFBFip9WIQi6KSYhbUVDsmCX6p3byH+VUHaXlJUM qo4KvARStEhZoXDUl9fNkd+KpC4vEYIJI4BXgrtB2Ctj8X9NCOGzd5sA9bUyhgltA34vZ yipUBZYiukFWNm7ZbWHTNxvHvUf0i5zgh4tswJH0C/dJMRejjYIlQxc75vc5RGsR3+3Od Oqoeemq36WZ5RE5aaPBhmH0EpG0WchJJYHjEY61aTZsssXZzUoVPRhFoR0vqsdWHsDQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055144; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Subject:From: Reply-To:To:Cc:Date:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:User-Agent:MIME-Version:X-MBO-RS-ID: X-MBO-RS-META; bh=MB5qQ20HttNQCwAdXTDOyNAodlglnUJGXERNwUVtknA=; b=k4aYScI7GxWhGUwwLI2FCgDXJqo2TlReqmM79wEmcuwyOqcgTJCATBytMGn40N1okE35 D2a31FDFA+0IUuj84Rz4foEEfD0Seu2sgwO8arXQXZrLZJ6AWdnjelqHtBVrzWdjAPPEQ PdlJkc7+qmBcYuPI9+HqcHKuutOYj2GW1DvVAu3KBJTMQW31+/ZYG1K2F6UVtNn2XIB1L 36P9qdgTYY55M7UoY7OBb94PhAtaFR4pEH3DgxNiTZ7foybhl/wdO8KcUl/CMu5gEWLcR Uk7DMpLtHkbHZqhGsP8xJUcqzs0a67mMJuzy65OTNXmEoQgRsqCLhOi0VRMTXNxv1sA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=h8LnaNkG; arc=none smtp.remote-ip=80.241.56.151 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (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 B5880606A32C; Mon, 30 Nov 2026 16:12:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5880606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=h8LnaNkG Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4jdTYq3K6Mz8vHS; Mon, 30 Nov 2026 17:12:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1796055135; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MB5qQ20HttNQCwAdXTDOyNAodlglnUJGXERNwUVtknA=; b=h8LnaNkG9LRaYxZww5v/P1BFvnCve7n02/+ul6Yl7zPROE1MhaeNlDptV8F2uMxJkpmdGU T/hFUP3Spr93a31LtC4eA72udfSKNbPbhH0LHYDzLoE8ALuaMVvjohxFjWc4o4hqGYNT75 LKMksATl6d/zP6B83IZ7AYN3oFc6vCyn7vDbj/IHQ7RmXdqkLv0+ydBs3NkFMRv+M6XaCi oESkatGpukZR679Ee6eSCofwIEvsrsbM/WdcUFClkhQ7Gq+rTA5acqJCZb7JvUbmLZEv+P 089iMb9HNAN2DEhyJE2GePih/ZKAQFhM9mGSlSysBqb3+RVbQIiu5yUaSXoknw== Message-ID: Subject: Re: [PATCH 0/2] rust: dma_buf: add dma-fence signalling sections From: Philipp Stanner Reply-To: phasta@kernel.org To: Daniel Almeida , Sumit Semwal , Christian =?ISO-8859-1?Q?K=F6nig?= , Philipp Stanner , Danilo Krummrich , Alice Ryhl , Miguel Ojeda , Boqun Feng , Gary Guo , =?ISO-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Tamir Duberstein , Alexandre Courbot , Onur =?ISO-8859-1?Q?=D6zkan?= Cc: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 30 Nov 2026 17:12:12 +0100 In-Reply-To: <20261127-dma-fence-signalling-v1-0-c44e8f4910ca@collabora.com> References: <20261127-dma-fence-signalling-v1-0-c44e8f4910ca@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-3.fc44) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MBO-RS-ID: 45d77f21210a434612d X-MBO-RS-META: 6kqmgp8rt9wkafabesyhaw8weak4yf3s On Fri, 2026-11-27 at 15:30 -0300, Daniel Almeida wrote: > dma_fence_begin_signalling() and dma_fence_end_signalling() mark the > code that the completion of a dma-fence depends on, so that lockdep can > check it against the dma-fence rules. However, up until now, it was not > possible to use the signalling tokens from Rust. Thus, add support for > it. >=20 > Patch 1 adds SignallingSection, a guard that begins a section when it > is created and ends it when it is dropped. Patch 2 makes > DriverFence::signal() take a &SignallingSection, so that its callers > have to be in one. >=20 > Patch 5 of the JobQueue series [1] changes the same signature to > signal(&self, res). I will rebase on top of it once it lands and add > the section to its callers then. >=20 > A follow-up series adds a workqueue whose work items run in a > signalling section. Tyr will use both. Can you ellaborate a bit on what that workqueue will do?