[PATCH v4 0/1] gpu: nova-core: add fwctl driver for firmware control interface
From: Alok Kumar
Date: Wed Dec 02 2026 - 04:43:38 EST
Add a fwctl endpoint to nova-core for the GSP GMC API commands used to
manage vGPU types on a physical GPU.
The request path is:
userspace
|
| FWCTL_RPC (FWCTL_RPC_CONFIGURATION)
v
nova-core command allowlist
|
| typed GMC request
v
GSP command queue -> GSP-RM
Userspace supplies the native GMC command ID and command-specific
payload. nova-core constructs the transport headers and permits only the
seven vGPU management commands for adding, querying, assigning and
deassigning vGPU types. Other commands and scopes are rejected.
The request starts with an eight-byte header containing command_id and
a zero reserved field, followed by the command-specific payload. The
response echoes this header and appends the firmware response payload.
This series is based on:
[PATCH v6 00/34] Introduce NVIDIA vGPU manager [1]
Userspace tools:
https://github.com/alokk-nvidia/vgpu-tools/tree/m1-nvkv/fwctl
Changes since v3 [2]:
- Use the generated fwctl_rpc_nova_core UAPI binding to decode and
encode the request/response header instead of manual byte offsets.
- Copy the incoming header so unaligned buffers remain supported,
and derive its size from the bound structure.
The userspace request/response format, seven-command allowlist,
configuration scope restriction and response-capacity limit are
unchanged. GMC, MCTP and NVDM transport headers remain inside nova-core.
The complete integration tree, including the prerequisites and the
companion VFIO series, is available at:
https://github.com/alokk-nvidia/nova-core/tree/nova-vgpu-wip-20261201
Previous postings:
v3 posting: [2]
v2 posting: [3]
v1 posting: [4]
[1]
https://lore.kernel.org/all/cover.1796191007.git.alkumar@xxxxxxxxxx/
[2]
https://lore.kernel.org/nova-gpu/20261124144204.19072-1-alkumar@xxxxxxxxxx/
[3]
https://lore.kernel.org/nova-gpu/cover.1793906674.git.alkumar@xxxxxxxxxx/
[4]
https://lore.kernel.org/rust-for-linux/20260305190936.398590-1-zhiw@xxxxxxxxxx/
Zhi Wang (1):
gpu: nova-core: add fwctl driver for firmware control interface
MAINTAINERS | 1 +
drivers/gpu/nova-core/Kconfig | 2 +
drivers/gpu/nova-core/driver.rs | 23 ++++
drivers/gpu/nova-core/fwctl.rs | 168 +++++++++++++++++++++++++++++
drivers/gpu/nova-core/gsp/fw.rs | 5 +
drivers/gpu/nova-core/nova_core.rs | 2 +
include/uapi/fwctl/fwctl.h | 1 +
include/uapi/fwctl/nova-core.h | 34 ++++++
rust/kernel/fwctl.rs | 2 +
rust/uapi/uapi_helper.h | 2 +
10 files changed, 240 insertions(+)
create mode 100644 drivers/gpu/nova-core/fwctl.rs
create mode 100644 include/uapi/fwctl/nova-core.h
base-commit: 9386dc0bd7b777272e001b830892ce1a3fa90aa1