diff options
author | Janne Hellsten <jhellsten@nvidia.com> | 2011-05-24 15:34:13 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:45:05 -0800 |
commit | 41ca4ada73f986e7a8622ba458c1ac3915598c30 (patch) | |
tree | d6dd0c5f3b36e00a26bb0e5b8c6677d72a1b4c56 /drivers/video/tegra/host/debug.c | |
parent | 4fbafd2ff07978da5b95f5da9a54434bca0705bd (diff) |
arm: tegra: nvhost: Add debugfs entry for null GPU kickoff
Add a debugfs entry for enabling/disabling GPU null kickoff of
graphics submits on a per process basis.
Restructure existing tegra_host debugfs node by making the existing
tegra_host file a directory and moving the status query under its own
status node. Thus the file system structure changes from:
/sys/kernel/debug/tegra_host - status
to
/sys/kernel/debug/tegra_host/status - status
/sys/kernel/debug/tegra_host/null_kickoff_pid - null GPU ctl
Bug 826513
Original-Change-Id: Id7ccbce1bb9e53c6e3b036d10f23563fab6bf481
Reviewed-on: http://git-master/r/32765
Reviewed-by: Janne Hellsten <jhellsten@nvidia.com>
Tested-by: Janne Hellsten <jhellsten@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Rebase-Id: R8bfacafbd0a74cddf33cded06331e52b53564156
Diffstat (limited to 'drivers/video/tegra/host/debug.c')
-rw-r--r-- | drivers/video/tegra/host/debug.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/debug.c b/drivers/video/tegra/host/debug.c index c7c6a0c19f03..07fd184c032b 100644 --- a/drivers/video/tegra/host/debug.c +++ b/drivers/video/tegra/host/debug.c @@ -30,6 +30,8 @@ struct output { char buf[256]; }; +pid_t nvhost_debug_null_kickoff_pid; + static void write_to_seqfile(void *ctx, const char* str, size_t len) { seq_write((struct seq_file *)ctx, str, len); @@ -371,8 +373,13 @@ static const struct file_operations nvhost_debug_fops = { void nvhost_debug_init(struct nvhost_master *master) { - debugfs_create_file("tegra_host", S_IRUGO, NULL, + struct dentry *de = debugfs_create_dir("tegra_host", NULL); + + debugfs_create_file("status", S_IRUGO, de, master, &nvhost_debug_fops); + + debugfs_create_u32("null_kickoff_pid", S_IRUGO|S_IWUGO, de, + &nvhost_debug_null_kickoff_pid); } #else void nvhost_debug_init(struct nvhost_master *master) |