mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] gpu: nova: Report compute properties of the GPU to userspace
@ 2026-12-04  4:06 Alistair Popple
  2026-12-04  4:06 ` [PATCH 1/2] gpu: nova-core: gsp: Add compute properties to GspStaticInfo Alistair Popple
  2026-12-04  4:06 ` [PATCH 2/2] drm: nova: Report compute properties in GPU info Alistair Popple
  0 siblings, 2 replies; 3+ messages in thread
From: Alistair Popple @ 2026-12-04  4:06 UTC (permalink / raw)
  To: Danilo Krummrich, Alexandre Courbot, David Airlie
  Cc: John Hubbard, nova-gpu, dri-devel, linux-kernel, rust-for-linux,
	Alistair Popple

Userspace compute drivers report a handful of static GPU properties to
applications. For example the CUDA deviceQuery sample prints the number
of streaming multiprocessors (SMs), the memory bus width, the L2 cache
size and the maximum graphics and memory clock rates.

GSP will soon report these properties as keys of the GMCAPI static
config, which it returns in reply to GSP_INIT. The first patch adds the
keys to the GSP_INIT response schema and to GspStaticInfo. The new keys
are all optional and decode as None if firmware does not provide them.

The second patch appends the properties to struct drm_nova_info_gpu. A
property which GSP does not provide is reported to userspace as zero.
Existing userspace is unaffected, as the kernel truncates what it writes
to the size userspace passes.

This series depends on the r000 series as it relies on GSP_INIT, so it
is based on drm-rust-next with the remainder of the r000 series applied.
Tested against a new firmware using drm-test to ensure values are
reported correctly.

A merge request will be raised there for testing.

Signed-off-by: Alistair Popple <apopple@nvidia.com>
---
Alistair Popple (2):
      gpu: nova-core: gsp: Add compute properties to GspStaticInfo
      drm: nova: Report compute properties in GPU info

 drivers/gpu/drm/nova/file.rs              |  6 +++++
 drivers/gpu/drm/nova/nova_drm_unstable.h  | 27 ++++++++++++++++++++
 drivers/gpu/nova-core/gsp/commands.rs     | 14 +++++++++++
 drivers/gpu/nova-core/gsp/commands/gmc.rs |  5 ++++
 drivers/gpu/nova-core/gsp/fw/commands.rs  | 42 +++++++++++++++++++++++++++++++
 5 files changed, 94 insertions(+)
---
base-commit: 594391a32cd30bc9ec863db1b310bcbcf370bfac
change-id: 20261204-nova_gpu_static_info_v2-e353310cf405

Best regards,
--  
Alistair Popple <apopple@nvidia.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04  4:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04  4:06 [PATCH 0/2] gpu: nova: Report compute properties of the GPU to userspace Alistair Popple
2026-12-04  4:06 ` [PATCH 1/2] gpu: nova-core: gsp: Add compute properties to GspStaticInfo Alistair Popple
2026-12-04  4:06 ` [PATCH 2/2] drm: nova: Report compute properties in GPU info Alistair Popple

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®