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 53755C87FD1 for ; Tue, 5 Aug 2025 13:50:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B7B5089F08; Tue, 5 Aug 2025 13:50:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=onurozkan.dev header.i=@onurozkan.dev header.b="icFgHUxt"; dkim-atps=neutral Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [178.154.239.144]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8503589F08 for ; Tue, 5 Aug 2025 13:50:25 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:4d88:0:640:1229:0]) by forward500b.mail.yandex.net (Yandex) with ESMTPS id BDEEBC1362; Tue, 05 Aug 2025 16:50:22 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id Gog2NwfMuGk0-QN8z0oWJ; Tue, 05 Aug 2025 16:50:21 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onurozkan.dev; s=mail; t=1754401821; bh=q0+nYeuyQ+6AoyDKNBeY3RHlTqfS9TyWMrZyoB3tSIg=; h=Cc:Message-ID:Subject:Date:References:To:From:In-Reply-To; b=icFgHUxth2kAC0N2wx+IIUyxCIr15Pbuum+xoMEySyFqdQ/8iSfnphu6OLPHIrcy3 dJ2WyaJ8oNEAViHpsJ34pbTIAlb50MXDP5OtWl4XyfuXm31DtRm49CP0i704rcmmhD 2MIsNGYVe8VtvN00gt5dS+fdORzfnb59zGbw9NtM= Authentication-Results: mail-nwsmtp-smtp-production-main-77.iva.yp-c.yandex.net; dkim=pass header.i=@onurozkan.dev Date: Tue, 5 Aug 2025 16:50:14 +0300 From: Onur =?UTF-8?B?w5Z6a2Fu?= To: Daniel Almeida Cc: Benno Lossin , Boqun Feng , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, ojeda@kernel.org, alex.gaynor@gmail.com, gary@garyguo.net, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, peterz@infradead.org, mingo@redhat.com, will@kernel.org, longman@redhat.com, felipe_life@live.com, daniel@sedlak.dev, bjorn3_gh@protonmail.com, dri-devel Subject: Re: [PATCH v5 2/3] implement ww_mutex abstraction for the Rust tree Message-ID: <20250805165014.1766f8dd@nimda.home> In-Reply-To: <8FA1F09F-CDD0-4A95-8E9E-49A3326613A2@collabora.com> References: <20250621184454.8354-1-work@onurozkan.dev> <20250621184454.8354-3-work@onurozkan.dev> <20250707163913.5ffc046d@nimda.home> <20250707210613.2fd5bb55@nimda.home> <20250805120813.1f8714f5@nimda.home> <8FA1F09F-CDD0-4A95-8E9E-49A3326613A2@collabora.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Tue, 5 Aug 2025 09:41:43 -0300 Daniel Almeida wrote: > Hi Onur, >=20 > > On 5 Aug 2025, at 06:08, Onur =C3=96zkan wrote: > >=20 > > On Sat, 2 Aug 2025 11:15:07 -0300 > > Daniel Almeida wrote: > >=20 > >> Btw, I can also try to implement a proof of concept, so long as > >> people agree that this approach makes sense. > >=20 > > It's not necessary to provide a full P.o.C but a small > > demonstration of the kind of ww_mutex API you would prefer would be > > helpful. Seeing a few sample Rust use-cases (especially in > > comparison to existing C implementations) would give a clearer > > picture for me. > >=20 > > At the moment, the implementation is just a wrapper ([1]) around > > the C ww_mutex with no additional functionality, mostly because we > > don't have a solid consensus on the API design yet (we had some > > ideas about Tuple based approach, but seems like that isn't going > > to be useful for most of the ww_mutex users). > >=20 > > [1]: https://github.com/onur-ozkan/linux/commits/673e01a9c309c > >=20 > >> By the way, dri-devel seems to not be on cc? Added them now. > >=20 > > Thanks! > >=20 > > -- > >=20 > > Regards, > > Onur > >=20 >=20 > This topic is on my TODO for this week. >=20 > =E2=80=94 Daniel Awesome, thank you for doing it. :) Regards, Onur