mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants
@ 2026-06-04  0:39 John Hubbard
  2026-06-04  0:39 ` [PATCH 1/1] gpu: add todo entry for device address type wrappers John Hubbard
  2026-06-24  3:45 ` [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants John Hubbard
  0 siblings, 2 replies; 3+ messages in thread
From: John Hubbard @ 2026-06-04  0:39 UTC (permalink / raw)
  To: Danilo Krummrich, Alexandre Courbot
  Cc: Timur Tabi, Alistair Popple, Eliot Courtney, Shashank Sharma,
	Zhi Wang, David Airlie, Simona Vetter, Bjorn Helgaas,
	Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, nova-gpu, LKML, John Hubbard

v6 is here:
    https://lore.kernel.org/all/20260411024118.471294-1-jhubbard@nvidia.com/

Changes in v7:

* v6 patch 1/2 was already applied as commit 98e508e5b016 ("gpu:
  nova-core: use SizeConstants trait for u64 size constants") on
  drm-rust-next, so this series is now a single standalone patch.

* Moved the todo entry to Documentation/gpu/todo.rst per Danilo's
  suggestion.

John Hubbard (1):
  gpu: add todo entry for device address type wrappers

 Documentation/gpu/todo.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)


base-commit: 99676aed1fec109d62822e21a06760eb098dc5f4
-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] gpu: add todo entry for device address type wrappers
  2026-06-04  0:39 [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants John Hubbard
@ 2026-06-04  0:39 ` John Hubbard
  2026-06-24  3:45 ` [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants John Hubbard
  1 sibling, 0 replies; 3+ messages in thread
From: John Hubbard @ 2026-06-04  0:39 UTC (permalink / raw)
  To: Danilo Krummrich, Alexandre Courbot
  Cc: Timur Tabi, Alistair Popple, Eliot Courtney, Shashank Sharma,
	Zhi Wang, David Airlie, Simona Vetter, Bjorn Helgaas,
	Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, nova-gpu, LKML, John Hubbard

The SizeConstants trait provides SZ_* size constants for 32-bit,
64-bit, and pointer-sized integers. Device-centric DRM APIs such
as GPU VM management and buddy allocators could benefit from newtype
wrappers around those integer types for device addresses and sizes.
Add a todo entry to track designing those wrappers and a marker trait
for use as a generic bound.

Suggested-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
---
 Documentation/gpu/todo.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst
index cdddf8db35f5..d7dbe8b298ce 100644
--- a/Documentation/gpu/todo.rst
+++ b/Documentation/gpu/todo.rst
@@ -686,6 +686,20 @@ Contact: Thomas Zimmermann <tzimmermann@suse.de>
 
 Level: Advanced
 
+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. See the `original
+discussion <https://lore.kernel.org/all/DHJJJNP5T5FZ.2HWBMOEEKH9ZR@kernel.org/>`_.
+
+Contact: Danilo Krummrich <dakr@kernel.org>
+
+Level: Intermediate
+
 Better Testing
 ==============
 
-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants
  2026-06-04  0:39 [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants John Hubbard
  2026-06-04  0:39 ` [PATCH 1/1] gpu: add todo entry for device address type wrappers John Hubbard
@ 2026-06-24  3:45 ` John Hubbard
  1 sibling, 0 replies; 3+ messages in thread
From: John Hubbard @ 2026-06-24  3:45 UTC (permalink / raw)
  To: Danilo Krummrich, Alexandre Courbot
  Cc: Timur Tabi, Alistair Popple, Eliot Courtney, Shashank Sharma,
	Zhi Wang, David Airlie, Simona Vetter, Bjorn Helgaas,
	Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, nova-gpu, LKML

On 6/3/26 5:39 PM, John Hubbard wrote:
> v6 is here:
>     https://lore.kernel.org/all/20260411024118.471294-1-jhubbard@nvidia.com/
> 
> Changes in v7:

And actually, the subject line should have said [PATCH v7..., but
I somehow omitted that by accident here.


thanks,
-- 
John Hubbard

> 
> * v6 patch 1/2 was already applied as commit 98e508e5b016 ("gpu:
>   nova-core: use SizeConstants trait for u64 size constants") on
>   drm-rust-next, so this series is now a single standalone patch.
> 
> * Moved the todo entry to Documentation/gpu/todo.rst per Danilo's
>   suggestion.
> 
> John Hubbard (1):
>   gpu: add todo entry for device address type wrappers
> 
>  Documentation/gpu/todo.rst | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> 
> base-commit: 99676aed1fec109d62822e21a06760eb098dc5f4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-24  3:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04  0:39 [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants John Hubbard
2026-06-04  0:39 ` [PATCH 1/1] gpu: add todo entry for device address type wrappers John Hubbard
2026-06-24  3:45 ` [PATCH 0/1] gpu: nova-core: add SizeConstants trait for SZ_* constants John Hubbard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®