mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
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:
committed by
Dan Willemsen
parent
88c760b2ea
commit
2c23d1066f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user