From: Deborah Brouwer <deborah.brouwer@collabora.com>
To: Boris Brezillon <boris.brezillon@collabora.com>
Cc: rust-for-linux@vger.kernel.org,
Daniel Almeida <daniel.almeida@collabora.com>,
dri-devel@lists.freedesktop.org, aliceryhl@google.com,
beata.michalska@arm.com, lyude@redhat.com
Subject: Re: [PATCH 06/12] drm/tyr: add shmem backing for GEM objects
Date: Mon, 2 Mar 2026 09:03:22 -0800 [thread overview]
Message-ID: <aaXC2td--4_afzT4@um790> (raw)
In-Reply-To: <20260302111757.7bae333d@fedora>
On Mon, Mar 02, 2026 at 11:17:57AM +0100, Boris Brezillon wrote:
> On Fri, 27 Feb 2026 16:17:35 -0800
> Deborah Brouwer <deborah.brouwer@collabora.com> wrote:
>
> > On Fri, Feb 20, 2026 at 11:25:47AM -0300, Daniel Almeida wrote:
> > >
> > >
> > > > On 11 Feb 2026, at 22:37, Deborah Brouwer <deborah.brouwer@collabora.com> wrote:
> > > >
> > > > Add support for GEM buffer objects backed by shared memory.
> > > >
> > > > This introduces the BoCreateArgs structure for passing creation parameters
> > > > including flags, and adds a flags field to BoData. A new_dummy_object()
> > > > helper is provided to create a dummy GEM object for use as a GPUVM root.
> > > >
> > > > The Bo type alias is added to simplify working with Tyr's shmem-backed
> > > > GEM objects throughout the driver.
> > > >
> > > > Co-developed-by: Boris Brezillon <boris.brezillon@collabora.com>
> > > > Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
> > > > Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
> > > > ---
> > > > drivers/gpu/drm/tyr/gem.rs | 52 ++++++++++++++++++++++++++++++++------
> > > > 1 file changed, 44 insertions(+), 8 deletions(-)
> > > >
> > > > diff --git a/drivers/gpu/drm/tyr/gem.rs b/drivers/gpu/drm/tyr/gem.rs
> > > > index c1208d332dea..6a58f2da88d3 100644
> > > > --- a/drivers/gpu/drm/tyr/gem.rs
> > > > +++ b/drivers/gpu/drm/tyr/gem.rs
> > > > @@ -1,28 +1,64 @@
> > > > // SPDX-License-Identifier: GPL-2.0 or MIT
> > > > +//! GEM buffer object management for the Tyr driver.
> > > > +//!
> > > > +//! This module provides buffer object (BO) management functionality using
> > > > +//! DRM's GEM subsystem with shmem backing.
> > > >
> > > > use kernel::{
> > > > drm::{
> > > > gem,
> > > > + gem::shmem,
> > > > DeviceContext, //
> > > > },
> > > > - prelude::*, //
> > > > + prelude::*,
> > > > + sync::aref::ARef, //
> > > > };
> > > >
> > > > -use crate::driver::TyrDrmDriver;
> > > > +use crate::driver::{
> > > > + TyrDrmDevice,
> > > > + TyrDrmDriver, //
> > > > +};
> > > >
> > > > -/// GEM Object inner driver data
> > > > +/// Tyr's DriverObject type for GEM objects.
> > > > #[pin_data]
> > > > -pub(crate) struct BoData {}
> > > > +pub(crate) struct BoData {
> > > > + flags: u32,
> > > > +}
> > > > +
> > > > +/// Provides a way to pass arguments when creating BoData
> > > > +/// as required by the gem::DriverObject trait.
> > > > +pub(crate) struct BoCreateArgs {
> > > > + flags: u32,
> > > > +}
> > > >
> > > > impl gem::DriverObject for BoData {
> > > > type Driver = TyrDrmDriver;
> > > > - type Args = ();
> > > > + type Args = BoCreateArgs;
> > > >
> > > > fn new<Ctx: DeviceContext>(
> > > > - _dev: &kernel::drm::Device<TyrDrmDriver, Ctx>,
> > > > + _dev: &TyrDrmDevice<Ctx>,
> > >
> > > Unrelated change?
> >
> > I switched to use the convenience type alias `TyrDrmDevice<Ctx>`
> > here instead of using its full path. I can flag that in the commit
> > mesage if that is what you mean?
>
> I'd probably do that in a separate commit, like Daniel suggested, even
> if that means introducing a one-line commit just for that cosmetic
> change.
Sure, i'll check to make sure i haven't done this anywhere else, and
gather them all into a separate commit.
next prev parent reply other threads:[~2026-03-02 17:03 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 1:37 [PATCH 0/12] drm/tyr: firmware loading and MCU boot support Deborah Brouwer
2026-02-12 1:37 ` [PATCH 01/12] drm/tyr: select DRM abstractions in Kconfig Deborah Brouwer
2026-02-12 1:37 ` [PATCH 02/12] drm/tyr: move clock cleanup into Clocks Drop impl Deborah Brouwer
2026-02-12 8:12 ` Boris Brezillon
2026-02-28 0:18 ` Deborah Brouwer
2026-02-20 14:03 ` Daniel Almeida
2026-02-21 9:01 ` Alice Ryhl
2026-02-12 1:37 ` [PATCH 03/12] drm/tyr: rename TyrObject to BoData Deborah Brouwer
2026-02-20 14:04 ` Daniel Almeida
2026-02-21 9:01 ` Alice Ryhl
2026-02-12 1:37 ` [PATCH 04/12] drm/tyr: set DMA mask using GPU physical address Deborah Brouwer
2026-02-12 10:16 ` Boris Brezillon
2026-02-20 14:19 ` Daniel Almeida
2026-02-21 9:03 ` Alice Ryhl
2026-02-12 1:37 ` [PATCH 05/12] drm/tyr: add MMU address space registers Deborah Brouwer
2026-02-12 8:16 ` Boris Brezillon
2026-02-28 0:12 ` Deborah Brouwer
2026-02-20 14:21 ` Daniel Almeida
2026-02-21 9:09 ` Alice Ryhl
2026-02-22 18:13 ` Boris Brezillon
2026-02-28 0:13 ` Deborah Brouwer
2026-02-12 1:37 ` [PATCH 06/12] drm/tyr: add shmem backing for GEM objects Deborah Brouwer
2026-02-12 8:17 ` Boris Brezillon
2026-02-28 0:15 ` Deborah Brouwer
2026-02-20 14:25 ` Daniel Almeida
2026-02-28 0:17 ` Deborah Brouwer
2026-03-02 10:17 ` Boris Brezillon
2026-03-02 17:03 ` Deborah Brouwer [this message]
2026-02-12 1:37 ` [PATCH 07/12] drm/tyr: Add generic slot manager Deborah Brouwer
2026-02-12 10:11 ` Boris Brezillon
2026-02-12 10:45 ` Miguel Ojeda
2026-02-20 15:25 ` Daniel Almeida
2026-02-20 16:21 ` Boris Brezillon
2026-02-20 16:55 ` Daniel Almeida
2026-02-22 17:57 ` Boris Brezillon
2026-02-22 18:46 ` Daniel Almeida
2026-02-28 0:28 ` Deborah Brouwer
2026-03-02 10:10 ` Boris Brezillon
2026-02-21 11:16 ` Alice Ryhl
2026-02-21 12:44 ` Daniel Almeida
2026-02-21 13:40 ` Alice Ryhl
2026-02-21 13:48 ` Daniel Almeida
2026-02-28 0:25 ` Deborah Brouwer
2026-02-12 1:37 ` [PATCH 08/12] drm/tyr: add MMU module Deborah Brouwer
2026-02-12 10:44 ` Boris Brezillon
2026-02-28 0:31 ` Deborah Brouwer
2026-02-12 11:05 ` Boris Brezillon
2026-02-20 15:41 ` Daniel Almeida
2026-02-21 11:17 ` Alice Ryhl
2026-02-20 17:11 ` Daniel Almeida
2026-02-28 0:46 ` Deborah Brouwer
2026-02-21 11:20 ` Alice Ryhl
2026-02-28 0:49 ` Deborah Brouwer
2026-02-12 1:37 ` [PATCH 09/12] drm/tyr: add GPU virtual memory module Deborah Brouwer
2026-02-12 10:54 ` Boris Brezillon
2026-02-28 0:52 ` Deborah Brouwer
2026-02-12 1:37 ` [PATCH 10/12] drm/tyr: add a kernel buffer object Deborah Brouwer
2026-02-12 11:00 ` Boris Brezillon
2026-02-28 1:01 ` Deborah Brouwer
2026-02-12 1:37 ` [PATCH 11/12] drm/tyr: add parser for firmware binary Deborah Brouwer
2026-02-12 1:37 ` [PATCH 12/12] drm/tyr: add firmware loading and MCU boot support Deborah Brouwer
2026-02-21 11:25 ` Alice Ryhl
2026-02-28 1:02 ` Deborah Brouwer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aaXC2td--4_afzT4@um790 \
--to=deborah.brouwer@collabora.com \
--cc=aliceryhl@google.com \
--cc=beata.michalska@arm.com \
--cc=boris.brezillon@collabora.com \
--cc=daniel.almeida@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=lyude@redhat.com \
--cc=rust-for-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.