|
|
Log in / Subscribe / Register

gpu: nova-core: obtain and display VRAM amount

From:  Alexandre Courbot <acourbot-AT-nvidia.com>
To:  Danilo Krummrich <dakr-AT-kernel.org>, Alice Ryhl <aliceryhl-AT-google.com>, David Airlie <airlied-AT-gmail.com>, Simona Vetter <simona-AT-ffwll.ch>, Benno Lossin <lossin-AT-kernel.org>, Gary Guo <gary-AT-garyguo.net>
Subject:  [PATCH 0/4] gpu: nova-core: obtain and display VRAM amount
Date:  Tue, 09 Jun 2026 17:03:58 +0900
Message-ID:  <20260609-boot-vram-v1-0-d9382610507a@nvidia.com>
Cc:  nova-gpu-AT-lists.linux.dev, dri-devel-AT-lists.freedesktop.org, linux-kernel-AT-vger.kernel.org, rust-for-linux-AT-vger.kernel.org, Alexandre Courbot <acourbot-AT-nvidia.com>, Joel Fernandes <joelagnelf-AT-nvidia.com>, John Hubbard <jhubbard-AT-nvidia.com>
Archive-link:  Article

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@nvidia.com>
---
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 (2):
      gpu: nova-core: gsp: Extract usable FB region from GSP
      gpu: nova-core: gsp: Expose total physical VRAM end from FB region info

 drivers/gpu/nova-core/gpu.rs             | 107 ++++++++++++++++++++-----------
 drivers/gpu/nova-core/gsp.rs             |  15 +++--
 drivers/gpu/nova-core/gsp/boot.rs        |   7 --
 drivers/gpu/nova-core/gsp/commands.rs    |  14 +++-
 drivers/gpu/nova-core/gsp/fw/commands.rs |  47 +++++++++++++-
 5 files changed, 138 insertions(+), 52 deletions(-)
---
base-commit: bfd90545ad9ef8bed2ac7c157fa9db7604befb27
change-id: 20260609-boot-vram-00d5057102d5

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




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds