Skip to content

drm/tyr: safely write GpuInfo to userspace

Deborah Brouwer dri-devel lkml rust-for-linux 5 versions – Applied

Status from this message: Applied to drm-rust-next. Thanks!

Get series with b4
b4 am [email protected] change-id 20260923-b4-gpu_info_intobytes-c2d45f2935c8

Versions newest first

  1. v5 Latest2 patches 6 repliesApplied
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 11 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch3 repliesSuperseded
v11 patch1 replySuperseded

Changes in v5 from the cover letter

- broaden subject line of first patch
- make zerocopy and zerocopy_derive available to rust-analyzer
- use 4 spaces instead of tab in make file
- re-order imports so external crates are grouped together
- remove unnecessary invariant comment
- pick up Reviewed-by tag
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2rust: add zerocopy to bindings and uapirust/Makefile scripts/generate_rust_analyzer.py+20 -85 replies
2/2drm/tyr: safely write GpuInfo to userspacedrivers/gpu/drm/tyr/file.rs drivers/gpu/drm/tyr/gpu.rs rust/bindgen_parameters+6 -180 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel AlmeidaAlice RyhlMiguel Ojeda
1/2R-b A-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/2] drm/tyr: safely write GpuInfo to userspace

This series makes zerocopy and zerocopy_derive available to both the UAPI and bindings crates.

It derives the zerocopy traits specifically for struct drm_panthor_gpu_info, allowing Tyr to safely copy this struct byte-for- byte into userspace memory.

---
Changes in v5:
- broaden subject line of first patch
- make zerocopy and zerocopy_derive available to rust-analyzer
- use 4 spaces instead of tab in make file
- re-order imports so external crates are grouped together
- remove unnecessary invariant comment
- pick up Reviewed-by tag
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- add zerocopy and zerocopy_derive to bindings crate
- move derivation for drm_panthor_gpu_info to tyr patch
- use kernel prelude to import IntoBytes
- pick up Reviewed-by tag
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- split the commit into two to keep Tyr changes separate
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- use zerocopy_derive::most_traits
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Deborah Brouwer (2):
rust: add zerocopy to bindings and uapi
drm/tyr: safely write GpuInfo to userspace

 drivers/gpu/drm/tyr/file.rs       |  2 +-
 drivers/gpu/drm/tyr/gpu.rs        | 19 ++-----------------
 rust/Makefile                     | 24 ++++++++++++++++++------
 rust/bindgen_parameters           |  3 +++
 scripts/generate_rust_analyzer.py |  4 ++--
 5 files changed, 26 insertions(+), 26 deletions(-)

---
base-commit: 3497a403264b094ebd61b8b755165d56e7d9dc37
change-id: 20260923-b4-gpu_info_intobytes-c2d45f2935c8

Best regards,

Signature · 1 line
Deborah Brouwer <[email protected]>