summarylogtreecommitdiffstats
path: root/0004-nvidia-ctrla081-sync-vGPU-18.x-R570-fields.patch
blob: d7f2f104ed54daa10272fe8a39c43b8ac893f2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From e83bb8135b42492035efd6a4522671bc807e9aed Mon Sep 17 00:00:00 2001
From: Coia Prant <coiaprant@gmail.com>
Date: Tue, 3 Jun 2025 00:08:40 +0800
Subject: [PATCH 4/7] nvidia(ctrla081): sync vGPU 18.x (R570) fields

Synchronizing fields for vGPU 18.x (R570)

Signed-off-by: Coia Prant <coiaprant@gmail.com>
---
 src/nvidia/ctrla081.rs | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/nvidia/ctrla081.rs b/src/nvidia/ctrla081.rs
index a02dafd..2548cbf 100644
--- a/src/nvidia/ctrla081.rs
+++ b/src/nvidia/ctrla081.rs
@@ -55,9 +55,18 @@ pub struct NvA081CtrlVgpuInfo {
     pub gpu_instance_profile_id: u32,
     // R550 adds additional fields, leave them out for now for backwards compat with 16.x
     // https://github.com/NVIDIA/open-gpu-kernel-modules/blob/550/src/common/sdk/nvidia/inc/ctrl/ctrla081.h#L126-L128
+    // R570 rename these fields
+    // https://github.com/NVIDIA/open-gpu-kernel-modules/blob/570/src/common/sdk/nvidia/inc/ctrl/ctrla081.h#L126-L128
+    //
     // pub placement_size: u32,
-    // pub placement_count: u32,
-    // pub placement_ids: [u32; NVA081_MAX_VGPU_PER_PGPU],
+    // pub homogeneousPlacementCount: u32, // pub placement_count: u32,
+    // pub homogeneousPlacementIds: [u32; NVA081_MAX_VGPU_PER_PGPU], // pub placement_ids: [u32; NVA081_MAX_VGPU_PER_PGPU],
+    //
+    // R570 adds additional fields, leave them out for now for backwards compat with 16.x and 17.x
+    // https://github.com/NVIDIA/open-gpu-kernel-modules/blob/570/src/common/sdk/nvidia/inc/ctrl/ctrla081.h#L129-L130
+    //
+    // pub heterogeneousPlacementCount: u32,
+    // pub heterogeneousPlacementIds: [u32; NVA081_MAX_VGPU_PER_PGPU],
 }
 
 pub const NVA081_CTRL_CMD_VGPU_CONFIG_GET_VGPU_TYPE_INFO: u32 = 0xa0810103;
-- 
2.50.1