* Re: [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT
2026-11-17 6:10 ` [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT Alok Kumar
@ 2026-12-04 5:40 ` Alistair Popple
2026-12-04 7:22 ` Eliot Courtney
2026-12-04 9:52 ` Alexandre Courbot
2 siblings, 0 replies; 5+ messages in thread
From: Alistair Popple @ 2026-12-04 5:40 UTC (permalink / raw)
To: Alok Kumar
Cc: dakr, acourbot, kvm, rust-for-linux, nova-gpu, linux-pci, alex,
jgg, yishaih, skolothumtho, kevin.tian, airlied, simona, ojeda,
alex.gaynor, boqun.feng, gary, bjorn3_gh, lossin, a.hindborg,
aliceryhl, tmgross, markus.probst, jhubbard, joelagnelf,
ecourtney, cjia, smitra, kjaju, ankita, aniketa, kwankhede,
targupta, linux-kernel, zhiwang, zhiw, boqun, daniel.almeida,
tamird, work, jgg, bhelgaas, kwilczynski, dri-devel, peter,
xinmengs
On 2026-11-17 at 17:10 +1100, Alok Kumar <alkumar@nvidia.com> wrote...
> GSP firmware requires a nonzero vGPU timeout in GSP_INIT.
In future GSP will have to deal with this situation in a backwards compatible
manner when adding required keys to GSP_INIT. This one was missed, and as we
haven't finished merging the r000 GSP_INIT code we decided this was the easier
fix.
Tested-by: Alistair Popple <apopple@nvidia.com>
Reviewed-by: Alistair Popple <apopple@nvidia.com>
> 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
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT
2026-11-17 6:10 ` [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT Alok Kumar
2026-12-04 5:40 ` Alistair Popple
@ 2026-12-04 7:22 ` Eliot Courtney
2026-12-04 9:52 ` Alexandre Courbot
2 siblings, 0 replies; 5+ messages in thread
From: Eliot Courtney @ 2026-12-04 7:22 UTC (permalink / raw)
To: Alok Kumar, dakr, acourbot, kvm, rust-for-linux, nova-gpu,
linux-pci
Cc: alex, jgg, yishaih, skolothumtho, kevin.tian, airlied, simona,
ojeda, alex.gaynor, boqun.feng, gary, bjorn3_gh, lossin,
a.hindborg, aliceryhl, tmgross, markus.probst, jhubbard, apopple,
joelagnelf, ecourtney, cjia, smitra, kjaju, ankita, aniketa,
kwankhede, targupta, linux-kernel, zhiwang, zhiw, boqun,
daniel.almeida, tamird, work, jgg, bhelgaas, kwilczynski,
dri-devel, peter, xinmengs, dri-devel
On Tue Nov 17, 2026 at 3:10 PM JST, Alok Kumar wrote:
> 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>
> ---
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT
2026-11-17 6:10 ` [PATCH 1/1] gpu: nova-core: send GPU timeout defaults in GSP_INIT Alok Kumar
2026-12-04 5:40 ` Alistair Popple
2026-12-04 7:22 ` Eliot Courtney
@ 2026-12-04 9:52 ` Alexandre Courbot
2 siblings, 0 replies; 5+ messages in thread
From: Alexandre Courbot @ 2026-12-04 9:52 UTC (permalink / raw)
To: Alok Kumar
Cc: dakr, kvm, rust-for-linux, nova-gpu, linux-pci, alex, jgg,
yishaih, skolothumtho, kevin.tian, airlied, simona, ojeda,
alex.gaynor, boqun.feng, gary, bjorn3_gh, lossin, a.hindborg,
aliceryhl, tmgross, markus.probst, jhubbard, apopple, joelagnelf,
ecourtney, cjia, smitra, kjaju, ankita, aniketa, kwankhede,
targupta, linux-kernel, zhiwang, zhiw, boqun, daniel.almeida,
tamird, work, jgg, bhelgaas, kwilczynski, dri-devel, peter,
xinmengs
On Tue Nov 17, 2026 at 3:10 PM JST, Alok Kumar wrote:
> 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>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Thanks, I'll take this as part of the r000 switch series to make sure it
lands before the switch takes place.
^ permalink raw reply [flat|nested] 5+ messages in thread