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 DCF5CC87FD1 for ; Tue, 5 Aug 2025 09:08:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3346C10E25C; Tue, 5 Aug 2025 09:08:26 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=onurozkan.dev header.i=@onurozkan.dev header.b="mHJbf5RA"; dkim-atps=neutral Received: from forward502a.mail.yandex.net (forward502a.mail.yandex.net [178.154.239.82]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A46910E25C for ; Tue, 5 Aug 2025 09:08:24 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:e8d:0:640:bba7:0]) by forward502a.mail.yandex.net (Yandex) with ESMTPS id 4B88081A59; Tue, 05 Aug 2025 12:08:21 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id F8c5BVUpU8c0-GO7I7gnR; Tue, 05 Aug 2025 12:08:20 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onurozkan.dev; s=mail; t=1754384900; bh=PPtHV1CcZHiPaeg/tV5PXIHzxoWkTlwtb+No67Nl1YI=; h=Cc:Message-ID:Subject:Date:References:To:From:In-Reply-To; b=mHJbf5RATew33cYKT4274q6R9/CCdg5u/Kih/XYV+UPnNEKJ13tmaUdip3q5s/H7H t2ECpm9kRWNaOB23S/HVObYWcT+ULrXQls+Aw5aV0QPpF/+dMD0Z34ZnH3s0q9rpbA 9TnIQlxFV7JSmOSaVU1+GUPg7LuEfkvuy8Q4ftXA= Authentication-Results: mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net; dkim=pass header.i=@onurozkan.dev Date: Tue, 5 Aug 2025 12:08:13 +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: <20250805120813.1f8714f5@nimda.home> In-Reply-To: References: <20250621184454.8354-1-work@onurozkan.dev> <20250621184454.8354-3-work@onurozkan.dev> <20250707163913.5ffc046d@nimda.home> <20250707210613.2fd5bb55@nimda.home> 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=US-ASCII Content-Transfer-Encoding: 7bit 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 Sat, 2 Aug 2025 11:15:07 -0300 Daniel Almeida wrote: > Btw, I can also try to implement a proof of concept, so long as > people agree that this approach makes sense. 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. 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). [1]: https://github.com/onur-ozkan/linux/commits/673e01a9c309c > By the way, dri-devel seems to not be on cc? Added them now. Thanks! -- Regards, Onur