All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexandre Courbot" <acourbot@nvidia.com>
To: "John Hubbard" <jhubbard@nvidia.com>,
	"Danilo Krummrich" <dakr@kernel.org>
Cc: "Danilo Krummrich" <dakr@kernel.org>,
	"Joel Fernandes" <joelagnelf@nvidia.com>,
	"Timur Tabi" <ttabi@nvidia.com>,
	"Alistair Popple" <apopple@nvidia.com>,
	"Eliot Courtney" <ecourtney@nvidia.com>,
	"Shashank Sharma" <shashanks@nvidia.com>,
	"Zhi Wang" <zhiw@nvidia.com>, "David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Alex Gaynor" <alex.gaynor@gmail.com>,
	"Boqun Feng" <boqun.feng@gmail.com>,
	"Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <lossin@kernel.org>,
	"Andreas Hindborg" <a.hindborg@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Trevor Gross" <tmgross@umich.edu>,
	rust-for-linux@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v6 2/2] gpu: nova-core: add task for device address type wrappers
Date: Wed, 15 Apr 2026 12:09:53 +0900	[thread overview]
Message-ID: <DHTECYR3QRZK.DUTR6VNOC5RV@nvidia.com> (raw)
In-Reply-To: <20260411024118.471294-3-jhubbard@nvidia.com>

On Sat Apr 11, 2026 at 11:41 AM JST, John Hubbard wrote:
> Add a todo.rst entry for creating newtype wrappers around integer types
> for device addresses and sizes, with a marker trait that generic DRM
> APIs can use as a bound.
>
> Suggested-by: Danilo Krummrich <dakr@kernel.org>
> Signed-off-by: John Hubbard <jhubbard@nvidia.com>
> ---
>  Documentation/gpu/nova/core/todo.rst | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/Documentation/gpu/nova/core/todo.rst b/Documentation/gpu/nova/core/todo.rst
> index d5130b2b08fb..595a94e9ee2e 100644
> --- a/Documentation/gpu/nova/core/todo.rst
> +++ b/Documentation/gpu/nova/core/todo.rst
> @@ -88,6 +88,20 @@ SR-IOV [1] is work in progress.
>  | Complexity: Beginner
>  | Link: https://lore.kernel.org/all/20251119-rust-pci-sriov-v1-0-883a94599a97@redhat.com/ [1]
>  
> +Device address type wrappers
> +----------------------------
> +
> +The ``SizeConstants`` trait provides ``SZ_*`` constants as associated constants
> +on ``u32``, ``u64``, and ``usize``. Device-centric APIs such as GPU VM
> +management and buddy allocators could benefit from newtype wrappers around these
> +integer types to represent device addresses and sizes. A separate marker trait
> +could then serve as a generic bound for those wrappers.
> +
> +| Complexity: Intermediate
> +| Link: https://lore.kernel.org/all/DHJJJNP5T5FZ.2HWBMOEEKH9ZR@kernel.org/
> +| Contact: Danilo Krummrich

Danilo, do you ack being the contact for this?

Do we actually want an TODO entry for this even though we don't have a
concrete use-case for this? Nova is 64-bit only and will likely not use
this feature, so it looks out-of-place to list it here imho.

  reply	other threads:[~2026-04-15  3:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-11  2:41 [PATCH v6 0/2] rust, nova-core: add SizeConstants trait for SZ_* constants John Hubbard
2026-04-11  2:41 ` [PATCH v6 1/2] gpu: nova-core: use SizeConstants trait for u64 size constants John Hubbard
2026-04-11  2:41 ` [PATCH v6 2/2] gpu: nova-core: add task for device address type wrappers John Hubbard
2026-04-15  3:09   ` Alexandre Courbot [this message]
2026-04-28 23:03   ` Danilo Krummrich
2026-04-28 23:06 ` (subset) [PATCH v6 0/2] rust, nova-core: add SizeConstants trait for SZ_* constants Danilo Krummrich

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=DHTECYR3QRZK.DUTR6VNOC5RV@nvidia.com \
    --to=acourbot@nvidia.com \
    --cc=a.hindborg@kernel.org \
    --cc=airlied@gmail.com \
    --cc=alex.gaynor@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=apopple@nvidia.com \
    --cc=bhelgaas@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=dakr@kernel.org \
    --cc=ecourtney@nvidia.com \
    --cc=gary@garyguo.net \
    --cc=jhubbard@nvidia.com \
    --cc=joelagnelf@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=shashanks@nvidia.com \
    --cc=simona@ffwll.ch \
    --cc=tmgross@umich.edu \
    --cc=ttabi@nvidia.com \
    --cc=zhiw@nvidia.com \
    /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.