From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D599240D573; Wed, 10 Jun 2026 00:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781050841; cv=pass; b=Em8zvP138YEpjn3G+gtyU7gP256ihRmf4VvOqPhIRrNBdPH6iDH7nrivgklvOTpYDl2V6YoQ5nZci3n6Jt6Q823kOro01v6dXykeybRtZ1ldfwQJRsog9fOy1LfsnglTrA6HPoQMGRt4F+RKenurILtedztAmi6Au6jccQeKVz0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781050841; c=relaxed/simple; bh=LcYzfnNvpPv4kOrLJLk/DY9+nUZ5MRaWOIev0xE1/To=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Kdb9SBgyVAsAMdC4r9TeaqeSFhgA6U055C+J7v+KGBPmnXSvVAyGoIUyRtF60T5soZqV+LyE51Fx7mIa5srK+4yB8j+nIZlwGurFSQBD1AmEKKilx5qgZw/CsSHNdO+oXbsR6wjWqEm2WD14MAqds47UF/Tl0KiC0pvnpffyW94= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=deborah.brouwer@collabora.com header.b=kZOwsiH2; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=deborah.brouwer@collabora.com header.b="kZOwsiH2" ARC-Seal: i=1; a=rsa-sha256; t=1781050811; cv=none; d=zohomail.com; s=zohoarc; b=Md6nNVHOEmyf92T+nDS9CJqqPti1DRSk4EGTpu6C0HNPBqi7DA1DYIbBx6XVRwZKGYg+7FAMp+zRe7yCffEmmdzShm8ChVUIErNYfWJ2C0Z5rs+Jr8hsTWIn9J8BQuxRZb4sbMgl4VDNNe+Fp/YF9+TLnLcWHr/2HsETWIA/0Fs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1781050811; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=O9fNTHv6wbBG42jHa8mAw6pvJNsDpQ9M5O3qhn0l1Vo=; b=CtLCFoN/HUmgdMdaKxivguNvewtVOqnOf/GU04aTbIVSPmsAiqq9UfL62Sh1qJdTXzHGhlCky8R8LX2pYa39GqhrE6Q5y6NWBjh3JAboYzSpnuOv/I0JcGJ2wxwR6L9BGZsTO/owZFYHVWFWX4701w6nqoN2HlVw+vD+Fu7sY3Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=deborah.brouwer@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1781050811; s=zohomail; d=collabora.com; i=deborah.brouwer@collabora.com; h=Date:Date:From:From:To:To:Cc:Cc:Subject:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To:Message-Id:Reply-To; bh=O9fNTHv6wbBG42jHa8mAw6pvJNsDpQ9M5O3qhn0l1Vo=; b=kZOwsiH29/dAC81lSN65kYEuoTOcxiFWnRZI3eUfAzUyKksZvENO4jOoeUKfRUoY DRrLnkZ+tvZiLYP+qTTiiMl8pibUI+SDHnj/H9Qez+JfTBfn21bbtaEiqZZVW628ZQS t+lDFRobsq/ZdrPqaZCGglTpHn7wVk4iLg/THklE= Received: by mx.zohomail.com with SMTPS id 1781050810087120.3536602556942; Tue, 9 Jun 2026 17:20:10 -0700 (PDT) Date: Tue, 9 Jun 2026 17:20:09 -0700 From: Deborah Brouwer To: Lyude Paul Cc: dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, nouveau@lists.freedesktop.org, Alexandre Courbot , Gary Guo , Christian =?iso-8859-1?Q?K=F6nig?= , driver-core@lists.linux.dev, Miguel Ojeda , Maarten Lankhorst , Alice Ryhl , Simona Vetter , linux-kernel@vger.kernel.org, Sumit Semwal , linux-media@vger.kernel.org, "Rafael J . Wysocki" , Thomas Zimmermann , Maxime Ripard , David Airlie , Benno Lossin , linaro-mm-sig@lists.linaro.org, Danilo Krummrich , Mukesh Kumar Chaurasiya , Asahi Lina , Daniel Almeida , Greg Kroah-Hartman Subject: Re: [PATCH v19 0/4] Rust bindings for gem shmem Message-ID: References: <20260608183057.2001376-1-lyude@redhat.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260608183057.2001376-1-lyude@redhat.com> On Mon, Jun 08, 2026 at 02:29:00PM -0400, Lyude Paul wrote: > Most of this patch series has already been pushed upstream, this is just > the second half of the patch series that has not been pushed yet + some > additional changes which were required to implement changes requested by > the mailing list. This patch series is originally from Asahi, previously > posted by Daniel Almeida. > > The previous version of the patch series can be found here: > > https://patchwork.freedesktop.org/series/164580/ > > Branch with patches applied available here: > > https://gitlab.freedesktop.org/lyudess/linux/-/commits/rust/gem-shmem > > This patch series applies on top of drm-rust-next > > Patch-series wide changes since V15: > * Fix some major rebasing errors I somehow didn't notice :( > * Drop the dependency on LazyInit, use the trick that Alice suggested > instead. > * Fix dependency ordering so that Tyr can get the vmap stuff first > without the other bits. > Patch-series wide changes since V16: > * Fix ordering one more time (SetOnce::reset() doesn't need to come > before adding vmap functions) > * Rebase against the latest DeviceContext changes from me that got > pushed. > > Lyude Paul (4): > rust: drm: gem: shmem: Add DmaResvGuard helper > rust: drm: gem: shmem: Add vmap functions > rust: faux: Allow retrieving a bound Device > rust: drm: gem: Introduce shmem::Object::sg_table() > > rust/kernel/drm/gem/shmem.rs | 524 ++++++++++++++++++++++++++++++++++- > rust/kernel/faux.rs | 16 +- > 2 files changed, 524 insertions(+), 16 deletions(-) > > > base-commit: fea3a2dd7d3fc1936211ced5f84420e610435730 > -- > 2.54.0 > Thanks, it's working nicely with Tyr. To make this work with [1] I did have to make a few changes to the KunitDriver and tests, but that is a separate issue. [1] [PATCH v2 0/7] rust: drm: Higher-Ranked Lifetime private data https://lore.kernel.org/rust-for-linux/20260603011711.2077361-1-dakr@kernel.org/ Tested-by: Deborah Brouwer