Skip to content

RFC gpu: nova: Export parameters from nova-core to nova-drm

Alistair Popple dri-devel lkml nova-gpu rust-for-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gpu: nova-core: Add auxiliary bus registration data to nova-coredrivers/gpu/nova-core/auxdata.rs drivers/gpu/nova-core/driver.rs drivers/gpu/nova-core/gsp/hal.rs +1 more+47 -133 replies
2/3drm: nova: Add GETPARAM parameter to read the GPU chipsetdrivers/gpu/drm/nova/file.rs drivers/gpu/nova-core/auxdata.rs drivers/gpu/nova-core/driver.rs +2 more+27 -70 replies
3/3drm: nova: Add a GETPARAM parameter to read usable VRAM sizedrivers/gpu/drm/nova/file.rs drivers/gpu/nova-core/auxdata.rs drivers/gpu/nova-core/gpu.rs +2 more+23 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] gpu: nova: Export parameters from nova-core to nova-drm

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/[email protected]/

Cc Danilo Krummrich <[email protected]>
Cc Alice Ryhl <[email protected]>
Cc David Airlie <[email protected]>
Cc Alexandre Courbot <[email protected]>
Cc Benno Lossin <[email protected]>
Cc Gary Guo <[email protected]>
Cc Eliot Courtney <[email protected]>
Cc John Hubbard <[email protected]>

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
Signature · 1 line
2.54.0