summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-11-05 03:12:17 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:06 -0400
commit2c23d1066f947e697240f5e61529c5b48407fa08 (patch)
tree6f9bebc525a516d19ded1e3e7ae4b6067953e8b8 /include
parent88c760b2eac861298535dac6df89b8a14152efe9 (diff)
gpu: nvgpu: Add class numbers to characteristics
Some kernel APIs rely on user space knowing class numbers. Allow querying the numbers from kernel. Bug 1567274 Change-Id: Idec2fe8ee983ee74bcbf9dfc98f71bbcc1492cfb Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/594402
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/nvgpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index b7f65d75..6bde9d41 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -122,6 +122,13 @@ struct nvgpu_gpu_characteristics {
122 122
123 __u64 flags; 123 __u64 flags;
124 124
125 __u32 twod_class;
126 __u32 threed_class;
127 __u32 compute_class;
128 __u32 gpfifo_class;
129 __u32 inline_to_memory_class;
130 __u32 dma_copy_class;
131
125 /* Notes: 132 /* Notes:
126 - This struct can be safely appended with new fields. However, always 133 - This struct can be safely appended with new fields. However, always
127 keep the structure size multiple of 8 and make sure that the binary 134 keep the structure size multiple of 8 and make sure that the binary