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 --- drivers/gpu/nvgpu/common/linux/ioctl_tsg.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/gpu/nvgpu/common') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c index 46bc5f59..cb876e23 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c @@ -30,6 +30,9 @@ #include "ioctl_tsg.h" #include "ioctl_channel.h" #include "os_linux.h" +#ifdef CONFIG_TEGRA_19x_GPU +#include "tsg_t19x.h" +#endif struct tsg_private { struct gk20a *g; @@ -469,9 +472,13 @@ long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, unsigned int cmd, } default: +#ifdef CONFIG_TEGRA_19x_GPU + err = t19x_tsg_ioctl_handler(g, tsg, cmd, buf); +#else nvgpu_err(g, "unrecognized tsg gpu ioctl cmd: 0x%x", cmd); err = -ENOTTY; +#endif break; } -- cgit v1.2.2