Skip to content

gpu: nova-core: obtain and display VRAM amount

Alexandre Courbot dri-devel lkml nova-gpu rust-for-linux 3 versions – Applied

Status from this message: Pushed to drm-rust-next, thanks for the reviews!

Get series with b4
b4 am [email protected] change-id 20260609-boot-vram-00d5057102d5

Versions newest first

  1. v3 Latest3 patches 8 repliesApplied
  2. v23 patches 0 repliesSuperseded
  3. v14 patches 15 repliesSuperseded

Changes in v3 from the cover letter

- Rebase against latest drm-rust-next.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3gpu: nova-core: move GSP unload state to a pinned Gpu subobjectdrivers/gpu/nova-core/gpu.rs+60 -440 replies
2/3gpu: nova-core: move GPU static information acquisition to a GSP methoddrivers/gpu/nova-core/gpu.rs drivers/gpu/nova-core/gsp.rs drivers/gpu/nova-core/gsp/boot.rs+24 -110 replies
3/3gpu: nova-core: gsp: Extract and display usable FB regions from GSPdrivers/gpu/nova-core/gpu.rs drivers/gpu/nova-core/gsp/commands.rs drivers/gpu/nova-core/gsp/fw/commands.rs+67 -47 replies

Reviews trailers per patch

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

PatchEliot CourtneyDanilo Krummrich
1/3R-b
2/3R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] gpu: nova-core: obtain and display VRAM amount

This series performs some light refactoring required to be able to initialize members of the Gpu struct from GSP commands, and makes use of that refactoring to obtain and store the amount of VRAM on the device.

This is useful as probe-time information to be displayed, but will also become a parameter that can be queried from user-space once the nova-drm to nova-core bridge is established.

This revision is just a rebase on top of the latest drm-rust-next, as the newly pushed patches introduced some non-trivial conflicts.

---
Changes in v3:
- Rebase against latest drm-rust-next.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Move sysmem_flush after gsp_resources to avoid use-after-drop. (Eliot and Sashiko)
- Rename usable_fb_regions_iter to usable_fb_regions.
- Return all usable regions as a KVec.
- Let the caller compute the usable VRAM size instead of storing it as a GetGspStaticInfoReply property.
- Dropped Reviewed-by tags on patch 3 as code has changed considerably.
- Link to v1: https://patch.msgid.link/[email protected]

To: Danilo Krummrich <[email protected]>
To: Alice Ryhl <[email protected]>
To: Alexandre Courbot <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
To: Benno Lossin <[email protected]>
To: Gary Guo <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Alexandre Courbot (2):
gpu: nova-core: move GSP unload state to a pinned Gpu subobject
gpu: nova-core: move GPU static information acquisition to a GSP method

Joel Fernandes (1):
gpu: nova-core: gsp: Extract and display usable FB regions from GSP

 drivers/gpu/nova-core/gpu.rs             | 136 +++++++++++++++++++++----------
 drivers/gpu/nova-core/gsp.rs             |  14 +++-
 drivers/gpu/nova-core/gsp/boot.rs        |   7 --
 drivers/gpu/nova-core/gsp/commands.rs    |  13 ++-
 drivers/gpu/nova-core/gsp/fw/commands.rs |  40 ++++++++-
 5 files changed, 151 insertions(+), 59 deletions(-)

---
base-commit: e655873885063245fd7f49f81cebfdfdef66a59d
change-id: 20260609-boot-vram-00d5057102d5

Best regards,

Signature · 1 line
Alexandre Courbot <[email protected]>