Re: [PATCH 1/1] gpu: nova-core: populate GSP_VF_INFO when vGPU is enabled
"Danilo Krummrich" <[email protected]> Thu, 30 Jul 2026 23:28:12 +0200
| Newsgroups | dev.linux.lists.nova-gpu,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu Jul 30, 2026 at 8:14 PM CEST, Zhi Wang wrote:
> Register GpuacctPerfmonUtilSamples in MsgFunction so the receive path
> recognizes vGPU perfmon sampling events from GSP-RM.
Listing something additional in the commit message usually indicates a sepa=
rate
patch, but I think in this case it is fine as is.
> +/// Builds the VF topology passed to GSP-RM as part of the system inform=
ation.
> +fn build_vf_info(
> + dev: &pci::Device<device::Bound>,
> + vgpu_state: VgpuState,
> +) -> Result<bindings::GSP_VF_INFO> {
I'd make this an associated function of GspSetSystemInfo; it solely serves =
that
struct's construction, as your own comment already states. :)