Re: [PATCH 03/15] gpu: nova-core: gsp: populate VF information in GSP_INIT
From: Maxime Ripard
Date: Thu Dec 03 2026 - 09:03:22 EST
Hi Alex,
On Thu, Dec 03, 2026 at 09:09:20PM +0900, Alexandre Courbot wrote:
> From: Zhi Wang <zhiw@xxxxxxxxxx>
>
> GSP firmware requires the VF BAR layout to route interrupts and doorbell
> events to individual virtual functions.
>
> When vGPU mode is enabled, read the VF topology from the typed PCI
> SR-IOV extended capability and populate the existing NVKV VF information
> schema in GSP_INIT.
>
> Signed-off-by: Zhi Wang <zhiw@xxxxxxxxxx>
> Signed-off-by: Alok Kumar <alkumar@xxxxxxxxxx>
> [acourbot: also add `RMSetSriovMode` regkey here.]
> [acourbot: avoid double-match of `VgpuState`.]
> [acourbot: use `bitfield!` for `VfInfo::flags`.]
> [acourbot: document more returned errors.]
> Co-developed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---
> drivers/gpu/nova-core/gsp/commands/gmc.rs | 13 +++++--
> drivers/gpu/nova-core/gsp/fw/commands.rs | 65 ++++++++++++++++++++++++++++---
> 2 files changed, 70 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/nova-core/gsp/commands/gmc.rs b/drivers/gpu/nova-core/gsp/commands/gmc.rs
> index f74ada78f7ac..f0a0a6798d6b 100644
> --- a/drivers/gpu/nova-core/gsp/commands/gmc.rs
> +++ b/drivers/gpu/nova-core/gsp/commands/gmc.rs
> @@ -37,6 +37,7 @@
> },
> },
> sbuffer::SBufferIter,
> + vgpu::VgpuState, //
It looks like you have a spurious comment here?
Maxime
Attachment:
signature.asc
Description: PGP signature