summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2017-01-25 21:50:44 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-22 22:46:40 -0400
commit23e92bee4a8f6b66dfd1f5082af2712c0ae0b602 (patch)
tree58ff8598ca40a9144b2c1d142b41379e543a2722 /include/uapi
parent7719eb94f7ef155cf097b599464cbaba4d9a80e0 (diff)
gpu: nvgpu: profiler create/free, hwpm reserve
Add support for creating/freeing profiler objects, hwpm reservations Bug 1775465 JIRA EVLR-680 JIRA EVLR-682 Change-Id: I4db83d00e4b0b552b05b9aae96dc553dd1257d88 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: http://git-master/r/1294401 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 400d430b..75011998 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -1264,9 +1264,27 @@ struct nvgpu_dbg_gpu_access_fb_memory_args {
1264#define NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY \ 1264#define NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY \
1265 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 19, struct nvgpu_dbg_gpu_access_fb_memory_args) 1265 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 19, struct nvgpu_dbg_gpu_access_fb_memory_args)
1266 1266
1267struct nvgpu_dbg_gpu_profiler_obj_mgt_args {
1268 __u32 profiler_handle;
1269 __u32 reserved;
1270};
1271
1272#define NVGPU_DBG_GPU_IOCTL_PROFILER_ALLOCATE \
1273 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 20, struct nvgpu_dbg_gpu_profiler_obj_mgt_args)
1274
1275#define NVGPU_DBG_GPU_IOCTL_PROFILER_FREE \
1276 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 21, struct nvgpu_dbg_gpu_profiler_obj_mgt_args)
1277
1278struct nvgpu_dbg_gpu_profiler_reserve_args {
1279 __u32 profiler_handle;
1280 __u32 acquire;
1281};
1282
1283#define NVGPU_DBG_GPU_IOCTL_PROFILER_RESERVE \
1284 _IOWR(NVGPU_DBG_GPU_IOCTL_MAGIC, 22, struct nvgpu_dbg_gpu_profiler_reserve_args)
1267 1285
1268#define NVGPU_DBG_GPU_IOCTL_LAST \ 1286#define NVGPU_DBG_GPU_IOCTL_LAST \
1269 _IOC_NR(NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY) 1287 _IOC_NR(NVGPU_DBG_GPU_IOCTL_PROFILER_RESERVE)
1270 1288
1271#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \ 1289#define NVGPU_DBG_GPU_IOCTL_MAX_ARG_SIZE \
1272 sizeof(struct nvgpu_dbg_gpu_access_fb_memory_args) 1290 sizeof(struct nvgpu_dbg_gpu_access_fb_memory_args)