Re: [PATCH 03/15] gpu: nova-core: gsp: populate VF information in GSP_INIT
From: Eliot Courtney
Date: Thu Dec 03 2026 - 23:42:32 EST
On Thu Dec 3, 2026 at 9:09 PM JST, 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>
> ---
Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>