From 3afac13d66ee7026555c0b0558d898a4f189b051 Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Thu, 29 Jun 2017 16:01:17 -0700 Subject: gpu: nvgpu: add support for t19x tsg/channel Required modifications to add t19x channel specific info and handle t19x tsg requests. Bug 1842197 Change-Id: I0f8bcce20edea8f2f9a01e5bf5a9e4181af54875 Signed-off-by: seshendra Gadagottu Reviewed-on: https://git-master/r/1511144 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/uapi/linux/nvgpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/uapi') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 8b29a3ae..c34a7e83 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -970,11 +970,18 @@ struct nvgpu_gpu_set_event_filter_args { #define NVGPU_IOCTL_TSG_GET_TIMESLICE \ _IOR(NVGPU_TSG_IOCTL_MAGIC, 10, struct nvgpu_timeslice_args) + +#ifdef CONFIG_TEGRA_19x_GPU +#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ + NVGPU_TSG_IOCTL_MAX_ARG +#define NVGPU_TSG_IOCTL_LAST \ + _IOC_NR(NVGPU_TSG_IOCTL_MAX) +#else #define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ sizeof(struct nvgpu_event_id_ctrl_args) #define NVGPU_TSG_IOCTL_LAST \ _IOC_NR(NVGPU_IOCTL_TSG_GET_TIMESLICE) - +#endif /* * /dev/nvhost-dbg-gpu device -- cgit v1.2.2