summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nvgpu.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 0fa04f6b..38139524 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -1514,8 +1514,24 @@ struct nvgpu_channel_setup_bind_args {
1514#define NVGPU_CHANNEL_SETUP_BIND_FLAGS_DETERMINISTIC (1 << 1) 1514#define NVGPU_CHANNEL_SETUP_BIND_FLAGS_DETERMINISTIC (1 << 1)
1515/* enable replayable gmmu faults for this channel */ 1515/* enable replayable gmmu faults for this channel */
1516#define NVGPU_CHANNEL_SETUP_BIND_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2) 1516#define NVGPU_CHANNEL_SETUP_BIND_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2)
1517/*
1518 * Enable usermode submits on this channel.
1519 *
1520 * Submits in usermode are supported in some environments. If supported and
1521 * this flag is set + USERD and GPFIFO buffers are provided here, a submit
1522 * token is passed back to be written in the doorbell register in the usermode
1523 * region to notify the GPU for new work on this channel. Usermode and
1524 * kernelmode submit modes are mutually exclusive; by passing this flag, the
1525 * SUBMIT_GPFIFO IOCTL cannot be used.
1526 */
1527#define NVGPU_CHANNEL_SETUP_BIND_FLAGS_USERMODE_SUPPORT (1 << 3)
1517 __u32 flags; 1528 __u32 flags;
1518 __u32 reserved[16]; 1529 __s32 userd_dmabuf_fd; /* in */
1530 __s32 gpfifo_dmabuf_fd; /* in */
1531 __u32 work_submit_token; /* out */
1532 __u64 userd_dmabuf_offset; /* in */
1533 __u64 gpfifo_dmabuf_offset; /* in */
1534 __u32 reserved[9];
1519}; 1535};
1520struct nvgpu_fence { 1536struct nvgpu_fence {
1521 __u32 id; /* syncpoint id or sync fence fd */ 1537 __u32 id; /* syncpoint id or sync fence fd */