From: Alok Kumar <alkumar@nvidia.com>
To: <dakr@kernel.org>, <acourbot@nvidia.com>, <kvm@vger.kernel.org>,
<rust-for-linux@vger.kernel.org>, <nova-gpu@lists.linux.dev>,
<linux-pci@vger.kernel.org>
Cc: <alex@shazbot.org>, <jgg@nvidia.com>, <yishaih@nvidia.com>,
<skolothumtho@nvidia.com>, <kevin.tian@intel.com>,
<airlied@gmail.com>, <simona@ffwll.ch>, <ojeda@kernel.org>,
<alex.gaynor@gmail.com>, <boqun.feng@gmail.com>,
<gary@garyguo.net>, <bjorn3_gh@protonmail.com>,
<lossin@kernel.org>, <a.hindborg@kernel.org>,
<aliceryhl@google.com>, <tmgross@umich.edu>,
<markus.probst@posteo.de>, <jhubbard@nvidia.com>,
<apopple@nvidia.com>, <joelagnelf@nvidia.com>,
<ecourtney@nvidia.com>, <cjia@nvidia.com>, <smitra@nvidia.com>,
<kjaju@nvidia.com>, <alkumar@nvidia.com>, <ankita@nvidia.com>,
<aniketa@nvidia.com>, <kwankhede@nvidia.com>,
<targupta@nvidia.com>, <linux-kernel@vger.kernel.org>,
<zhiwang@kernel.org>, <zhiw@nvidia.com>, <boqun@kernel.org>,
<daniel.almeida@collabora.com>, <tamird@kernel.org>,
<work@onurozkan.dev>, <jgg@ziepe.ca>, <bhelgaas@google.com>,
<kwilczynski@kernel.org>, <dri-devel@lists.freedesktop.org>,
<peter@colberg.org>, <xinmengs@nvidia.com>
Subject: [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT
Date: Tue, 17 Nov 2026 11:40:53 +0530 [thread overview]
Message-ID: <20261117061053.915254-2-alkumar@nvidia.com> (raw)
In-Reply-To: <20261117061053.915254-1-alkumar@nvidia.com>
GSP firmware requires a nonzero vGPU timeout in GSP_INIT.
Populate the NVKV keys as u32 values:
0xA0: vGPU timeout, 1,800,000 us
0xA1: graphics-mode timeout, 4,000,000 us
0xA2: compute-mode timeout, 30,000,000 us
Signed-off-by: Alok Kumar <alkumar@nvidia.com>
---
drivers/gpu/nova-core/gsp/fw/commands.rs | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/nova-core/gsp/fw/commands.rs b/drivers/gpu/nova-core/gsp/fw/commands.rs
index 08798f150ad7..adb0b1f29ceb 100644
--- a/drivers/gpu/nova-core/gsp/fw/commands.rs
+++ b/drivers/gpu/nova-core/gsp/fw/commands.rs
@@ -192,6 +192,9 @@ pub(crate) struct GspInitRequest {
pci_config_mirror_base: Key<u32, 0x0010>,
pci_config_mirror_size: Key<u32, 0x0011>,
host_arch: Key<HostArch, 0x0070, u32>,
+ default_timeout_us_vgpu: Key<u32, 0x00a0>,
+ default_timeout_us_graphics_mode: Key<u32, 0x00a1>,
+ default_timeout_us_compute_mode: Key<u32, 0x00a2>,
bus_device_func: Key<u64, 0x1020>,
regkeys: KVVec<RegKey>,
vf_info: Option<VfInfo>,
@@ -230,6 +233,11 @@ struct DomainBusDevice(u64) {
];
impl GspInitRequest {
+ // GPU timeout defaults in microseconds. All three values must be nonzero in GSP_INIT.
+ const DEFAULT_TIMEOUT_US_VGPU: u32 = 1_800_000;
+ const DEFAULT_TIMEOUT_US_GRAPHICS_MODE: u32 = 4_000_000;
+ const DEFAULT_TIMEOUT_US_COMPUTE_MODE: u32 = 30_000_000;
+
fn build_vf_info(ctx: &GspBootContext<'_, '_>) -> Result<Option<VfInfo>> {
let total_vfs = match *ctx.vgpu_state {
VgpuState::Disabled => return Ok(None),
@@ -300,6 +308,9 @@ pub(crate) fn new(ctx: &GspBootContext<'_, '_>) -> Result<Self> {
pci_config_mirror_base: mirror.start.into(),
pci_config_mirror_size: (mirror.end - mirror.start).into(),
host_arch: HostArch::host().into(),
+ default_timeout_us_vgpu: Self::DEFAULT_TIMEOUT_US_VGPU.into(),
+ default_timeout_us_graphics_mode: Self::DEFAULT_TIMEOUT_US_GRAPHICS_MODE.into(),
+ default_timeout_us_compute_mode: Self::DEFAULT_TIMEOUT_US_COMPUTE_MODE.into(),
bus_device_func: u64::from(bus_device_func).into(),
regkeys,
vf_info: Self::build_vf_info(ctx)?,
--
2.53.0
prev parent reply other threads:[~2026-11-17 6:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 6:10 [PATCH 0/1] gpu: nova-core: populate GSP_INIT timeout defaults Alok Kumar
2026-11-17 6:10 ` Alok Kumar [this message]
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=20261117061053.915254-2-alkumar@nvidia.com \
--to=alkumar@nvidia.com \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=airlied@gmail.com \
--cc=alex.gaynor@gmail.com \
--cc=alex@shazbot.org \
--cc=aliceryhl@google.com \
--cc=aniketa@nvidia.com \
--cc=ankita@nvidia.com \
--cc=apopple@nvidia.com \
--cc=bhelgaas@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=boqun@kernel.org \
--cc=cjia@nvidia.com \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ecourtney@nvidia.com \
--cc=gary@garyguo.net \
--cc=jgg@nvidia.com \
--cc=jgg@ziepe.ca \
--cc=jhubbard@nvidia.com \
--cc=joelagnelf@nvidia.com \
--cc=kevin.tian@intel.com \
--cc=kjaju@nvidia.com \
--cc=kvm@vger.kernel.org \
--cc=kwankhede@nvidia.com \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=markus.probst@posteo.de \
--cc=nova-gpu@lists.linux.dev \
--cc=ojeda@kernel.org \
--cc=peter@colberg.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=simona@ffwll.ch \
--cc=skolothumtho@nvidia.com \
--cc=smitra@nvidia.com \
--cc=tamird@kernel.org \
--cc=targupta@nvidia.com \
--cc=tmgross@umich.edu \
--cc=work@onurozkan.dev \
--cc=xinmengs@nvidia.com \
--cc=yishaih@nvidia.com \
--cc=zhiw@nvidia.com \
--cc=zhiwang@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.