| From: |
| Alistair Popple <apopple-AT-nvidia.com> |
| To: |
| nova-gpu-AT-lists.linux.dev |
| Subject: |
| [RFC 0/3] gpu: nova: Export parameters from nova-core to nova-drm |
| Date: |
| Fri, 03 Jul 2026 16:45:23 +1000 |
| Message-ID: |
| <20260703064526.3630668-1-apopple@nvidia.com> |
| Cc: |
| Alistair Popple <apopple-AT-nvidia.com>, Danilo Krummrich <dakr-AT-kernel.org>, Alice Ryhl <aliceryhl-AT-google.com>, David Airlie <airlied-AT-gmail.com>, Alexandre Courbot <acourbot-AT-nvidia.com>, Benno Lossin <lossin-AT-kernel.org>, Gary Guo <gary-AT-garyguo.net>, Eliot Courtney <ecourtney-AT-nvidia.com>, John Hubbard <jhubbard-AT-nvidia.com>, linux-kernel-AT-vger.kernel.org, dri-devel-AT-lists.freedesktop.org, rust-for-linux-AT-vger.kernel.org |
| Archive-link: |
| Article |
This patch series adds some basic GPU properties to the existing nova-drm
GETPARAM ioctl. It builds on top of the "drm: Higher-Ranked Lifetime private
data" series[1] to correctly manage lifetimes of registration data shared
between DRM, auxbus and nova-core.
Properties are exported via a new AuxData type which implements methods to read
data from the GPU. This has been implemented in a separate module to make the
public API implementations obvious and to keep them in one place.
[1] - https://lore.kernel.org/rust-for-linux/20260628145406.210...
Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: David Airlie <airlied@gmail.com>
Cc: Alexandre Courbot <acourbot@nvidia.com>
Cc: Benno Lossin <lossin@kernel.org>
Cc: Gary Guo <gary@garyguo.net>
Cc: Eliot Courtney <ecourtney@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: linux-kernel@vger.kernel.org
Cc: nova-gpu@lists.linux.dev
Cc: dri-devel@lists.freedesktop.org
Cc: rust-for-linux@vger.kernel.org
Alistair Popple (3):
gpu: nova-core: Add auxiliary bus registration data to nova-core
drm: nova: Add GETPARAM parameter to read the GPU chipset
drm: nova: Add a GETPARAM parameter to read usable VRAM size
drivers/gpu/drm/nova/file.rs | 6 ++++
drivers/gpu/nova-core/auxdata.rs | 25 +++++++++++++++
drivers/gpu/nova-core/driver.rs | 45 ++++++++++++++++++++-------
drivers/gpu/nova-core/gpu.rs | 16 +++++-----
drivers/gpu/nova-core/gsp/commands.rs | 8 +++++
drivers/gpu/nova-core/gsp/hal.rs | 2 +-
drivers/gpu/nova-core/nova_core.rs | 1 +
include/uapi/drm/nova_drm.h | 14 +++++++++
8 files changed, 95 insertions(+), 22 deletions(-)
create mode 100644 drivers/gpu/nova-core/auxdata.rs
--
2.54.0