video: tegra: host: Allow disabling debug dumps
authorArto Merilainen <amerilainen@nvidia.com>
Thu, 10 Jan 2013 11:51:31 +0000 (13:51 +0200)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:29:10 +0000 (01:29 -0700)
commit286fab000ab43ed9ac63630ddb3552e8e4d92311
tree6b2db6e4d7ab86f0e7d8de794816167016dc4a4c
parent702e591081006ac4ce60510f8a420cec5f860622
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
(cherry picked from commit d2f6b1563ff3b854a3970d0e9f30721be48317db)
Reviewed-on: http://git-master/r/188720
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/debug.c
drivers/video/tegra/host/debug.h
drivers/video/tegra/host/host1x/host1x_cdma.c
drivers/video/tegra/host/nvhost_cdma.c
drivers/video/tegra/host/nvhost_cdma.h
drivers/video/tegra/host/nvhost_job.h
include/linux/nvhost_ioctl.h