diff options
author | Arto Merilainen <amerilainen@nvidia.com> | 2013-01-10 13:51:31 +0200 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-01-11 18:11:54 -0800 |
commit | d2f6b1563ff3b854a3970d0e9f30721be48317db (patch) | |
tree | 1ca260e0bdcb964ceaa49a173bb6758d358f5113 /include | |
parent | 9a0a1b84b70c03f8c1d88b63cff0f074e899bae4 (diff) |
video: tegra: host: Allow disabling debug dumps
cdma timeout produces a huge amount of debug data to UART. This is
usually useful, but in some cases this affects significantly to
timing.
This patch:
- adds ioctl for controlling whether the dump is required or not
- creates a debugfs node for forcing debug dump always
- moves job information dumping before changing the contents of
job data
Bug 1207117
Change-Id: I65d4736da154e9af4ae181cefd7d786ec1d16cd9
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/189943
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvhost_ioctl.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h index 2fab8afecfd7..6a47b6fc22e9 100644 --- a/include/linux/nvhost_ioctl.h +++ b/include/linux/nvhost_ioctl.h @@ -3,7 +3,7 @@ * * Tegra graphics host driver * - * Copyright (c) 2009-2012, NVIDIA Corporation. + * Copyright (c) 2009-2013, NVIDIA Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,6 +38,8 @@ #define NVHOST_PRIORITY_MEDIUM 100 #define NVHOST_PRIORITY_HIGH 150 +#define NVHOST_TIMEOUT_FLAG_DISABLE_DUMP 0 + /* version 0 header (used with write() submit interface) */ struct nvhost_submit_hdr { __u32 syncpt_id; @@ -127,6 +129,11 @@ struct nvhost_set_timeout_args { __u32 timeout; }; +struct nvhost_set_timeout_ex_args { + __u32 timeout; + __u32 flags; +}; + struct nvhost_set_priority_args { __u32 priority; }; @@ -187,8 +194,10 @@ struct nvhost_submit_args { _IOWR(NVHOST_IOCTL_MAGIC, 14, struct nvhost_ctrl_module_regrdwr_args) #define NVHOST_IOCTL_CHANNEL_SUBMIT \ _IOWR(NVHOST_IOCTL_MAGIC, 15, struct nvhost_submit_args) +#define NVHOST_IOCTL_CHANNEL_SET_TIMEOUT_EX \ + _IOWR(NVHOST_IOCTL_MAGIC, 18, struct nvhost_set_timeout_ex_args) #define NVHOST_IOCTL_CHANNEL_LAST \ - _IOC_NR(NVHOST_IOCTL_CHANNEL_SUBMIT) + _IOC_NR(NVHOST_IOCTL_CHANNEL_SET_TIMEOUT_EX) #define NVHOST_IOCTL_CHANNEL_MAX_ARG_SIZE sizeof(struct nvhost_submit_args) struct nvhost_ctrl_syncpt_read_args { |