From: Alistair Popple <apopple@nvidia.com>
To: Danilo Krummrich <dakr@kernel.org>,
Alexandre Courbot <acourbot@nvidia.com>,
David Airlie <airlied@gmail.com>
Cc: John Hubbard <jhubbard@nvidia.com>,
nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org,
Alistair Popple <apopple@nvidia.com>
Subject: [PATCH 0/2] gpu: nova: Report compute properties of the GPU to userspace
Date: Fri, 04 Dec 2026 15:06:12 +1100 [thread overview]
Message-ID: <20261204-nova_gpu_static_info_v2-v1-0-162bc6bf0a4a@nvidia.com> (raw)
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>
next reply other threads:[~2026-12-04 4:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 4:06 Alistair Popple [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204-nova_gpu_static_info_v2-v1-0-162bc6bf0a4a@nvidia.com \
--to=apopple@nvidia.com \
--cc=acourbot@nvidia.com \
--cc=airlied@gmail.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jhubbard@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nova-gpu@lists.linux.dev \
--cc=rust-for-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®