diff options
author | Janne Hellsten <jhellsten@nvidia.com> | 2011-05-24 15:34:13 +0300 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-08 16:51:10 -0700 |
commit | caa79c35b5a3baa104573067b94154207cf0c91c (patch) | |
tree | 6f3ec1b2b81ff41af8bf7751f917f61a3de65ef4 /drivers/video/tegra/host/dev.c | |
parent | 074454f7def5b8f78097e98828f97135ca7488c6 (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
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>
Diffstat (limited to 'drivers/video/tegra/host/dev.c')
-rw-r--r-- | drivers/video/tegra/host/dev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/dev.c b/drivers/video/tegra/host/dev.c index 4a4b55076083..97ea642cf3b2 100644 --- a/drivers/video/tegra/host/dev.c +++ b/drivers/video/tegra/host/dev.c @@ -254,6 +254,9 @@ static int nvhost_ioctl_channel_flush( return num_unpin; } + if (nvhost_debug_null_kickoff_pid == current->tgid) + null_kickoff = 1; + /* context switch if needed, and submit user's gathers to the channel */ err = nvhost_channel_submit(ctx->ch, ctx->hwctx, ctx->nvmap, ctx->gathers, ctx->cur_gather, |