From: Tushar Dave tdave@nvidia.com
[ Upstream commit 407aa63018d15c35a34938633868e61174d2ef6e ]
GB300 is NVIDIA's Grace Blackwell Ultra Superchip.
Add the GB300 SKU device-id to nvgrace_gpu_vfio_pci_table.
Signed-off-by: Tushar Dave tdave@nvidia.com Reviewed-by: Ankit Agrawal ankita@nvidia.com Link: https://lore.kernel.org/r/20250925170935.121587-1-tdave@nvidia.com Signed-off-by: Alex Williamson alex.williamson@redhat.com Signed-off-by: Sasha Levin sashal@kernel.org ---
LLM Generated explanations, may be completely bogus:
YES – this backports cleanly and only extends the VFIO NVGrace device-id table (`drivers/vfio/pci/nvgrace-gpu/main.c:998-1000`) with the GB300 identifier `0x31C2`, mirroring prior entries for GH200/GB200 SKUs. Without the entry, the GB300 parts simply fail to bind to `nvgrace_gpu_vfio_pci_driver`, blocking VFIO passthrough for shipped hardware and forcing users to carry out-of-tree patches; adding the ID fixes that functional gap without touching probe/remove logic (`…/main.c:934-979`) or altering any other code paths. I found no auxiliary references to `0x31C2`, so the existing mature infrastructure for Grace/Blackwell devices automatically handles the new SKU. The change is self-contained, risk-free to existing platforms, and aligns with the stable policy of accepting simple device-id updates that enable supported hardware.
Next step: run a brief VFIO probe bind test on GB300 hardware to confirm the new table entry succeeds.
drivers/vfio/pci/nvgrace-gpu/main.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/vfio/pci/nvgrace-gpu/main.c b/drivers/vfio/pci/nvgrace-gpu/main.c index d95761dcdd58c..36b79713fd5a5 100644 --- a/drivers/vfio/pci/nvgrace-gpu/main.c +++ b/drivers/vfio/pci/nvgrace-gpu/main.c @@ -995,6 +995,8 @@ static const struct pci_device_id nvgrace_gpu_vfio_pci_table[] = { { PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_NVIDIA, 0x2348) }, /* GB200 SKU */ { PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_NVIDIA, 0x2941) }, + /* GB300 SKU */ + { PCI_DRIVER_OVERRIDE_DEVICE_VFIO(PCI_VENDOR_ID_NVIDIA, 0x31C2) }, {} };