All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] rust: transmute: implement FromBytes and AsBytes for inhabited ZSTs
@ 2025-12-15  5:49 Alexandre Courbot
  2025-12-15  5:49 ` [PATCH v4 1/2] " Alexandre Courbot
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Alexandre Courbot @ 2025-12-15  5:49 UTC (permalink / raw)
  To: Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich
  Cc: John Hubbard, Alistair Popple, Joel Fernandes, Timur Tabi,
	Edwin Peer, Eliot Courtney, rust-for-linux, linux-kernel,
	Alexandre Courbot

This is useful in Nova's GSP message handling, as some messages are
empty and we currently need to explicitly use an empty structure for
them.

If accepted, I would like to merge it through `drm-rust-next` so Nova
code can start using this feature quickly.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
Changes in v4:
- Improve safety comment to mention lack of invariants.
- Link to v3: https://patch.msgid.link/20251209-transmute_unit-v3-0-819fe584ba06@nvidia.com

Changes in v3:
- Use better safety statement. (thanks Gary!)
- Also add `PhantomData`. (thanks Gary!)
- Link to v2: https://patch.msgid.link/20251208-transmute_unit-v2-0-aa17a6848afb@nvidia.com

Changes in v2:
- Make use of new feature in Nova.
- Link to v1: https://patch.msgid.link/20251208-transmute_unit-v1-1-680c7386b5d9@nvidia.com

---
Alexandre Courbot (2):
      rust: transmute: implement FromBytes and AsBytes for inhabited ZSTs
      gpu: nova-core: gsp: use () as message type for GspInitDone message

 drivers/gpu/nova-core/gsp/commands.rs | 6 +++---
 rust/kernel/transmute.rs              | 8 ++++++++
 2 files changed, 11 insertions(+), 3 deletions(-)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251208-transmute_unit-78ab58ba9e6e

Best regards,
-- 
Alexandre Courbot <acourbot@nvidia.com>


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

end of thread, other threads:[~2026-01-26  5:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15  5:49 [PATCH v4 0/2] rust: transmute: implement FromBytes and AsBytes for inhabited ZSTs Alexandre Courbot
2025-12-15  5:49 ` [PATCH v4 1/2] " Alexandre Courbot
2025-12-15  7:45   ` Benno Lossin
2025-12-18 13:32     ` Alexandre Courbot
2025-12-25  8:53       ` Miguel Ojeda
2026-01-23 11:44         ` Alexandre Courbot
2026-01-24 16:17           ` Miguel Ojeda
2026-01-24 16:29             ` Danilo Krummrich
2026-01-25  1:33             ` Alexandre Courbot
2025-12-15 11:31   ` Gary Guo
2025-12-15  5:49 ` [PATCH v4 2/2] gpu: nova-core: gsp: use () as message type for GspInitDone message Alexandre Courbot
2026-01-24 16:27   ` Danilo Krummrich
2026-01-26  5:05 ` [PATCH v4 0/2] rust: transmute: implement FromBytes and AsBytes for inhabited ZSTs Miguel Ojeda

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.