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
This commit is contained in:
Terje Bergstrom
2014-11-05 10:12:17 +02:00
committed by Dan Willemsen
parent 88c760b2ea
commit 2c23d1066f
10 changed files with 44 additions and 15 deletions

View File

@@ -122,6 +122,13 @@ struct nvgpu_gpu_characteristics {
__u64 flags;
__u32 twod_class;
__u32 threed_class;
__u32 compute_class;
__u32 gpfifo_class;
__u32 inline_to_memory_class;
__u32 dma_copy_class;
/* Notes:
- This struct can be safely appended with new fields. However, always
keep the structure size multiple of 8 and make sure that the binary