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

From: Alexandre Courbot

Date: Wed Jun 17 2026 - 02:45:31 EST


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.

Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
---
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/20260609-boot-vram-v1-0-d9382610507a@xxxxxxxxxx

To: Danilo Krummrich <dakr@xxxxxxxxxx>
To: Alice Ryhl <aliceryhl@xxxxxxxxxx>
To: Alexandre Courbot <acourbot@xxxxxxxxxx>
To: David Airlie <airlied@xxxxxxxxx>
To: Simona Vetter <simona@xxxxxxxx>
To: Benno Lossin <lossin@xxxxxxxxxx>
To: Gary Guo <gary@xxxxxxxxxxx>
Cc: nova-gpu@xxxxxxxxxxxxxxx
Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: rust-for-linux@xxxxxxxxxxxxxxx

---
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 | 122 +++++++++++++++++++++----------
drivers/gpu/nova-core/gsp.rs | 15 +++-
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, 145 insertions(+), 52 deletions(-)
---
base-commit: 5f7410aa26524101d34b627fbe16670b1514962c
change-id: 20260609-boot-vram-00d5057102d5

Best regards,
--
Alexandre Courbot <acourbot@xxxxxxxxxx>