summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2014-02-11 19:03:45 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:33 -0400
commitc44f2084eb1a6bb722bc1c83010caf8e0a0744e8 (patch)
tree209b57cbecf8661019ab1d8009ab40768ea2fc0a /drivers/gpu
parentab0448821f99502f787a12b467caf61f586448a8 (diff)
video: tegra: host: Move LTC debugfs code
Move the LTC debugfs sync code to the gk20a LTC code. Change-Id: I145b04e1e8aade170c2e9c6b3beb60774c6124f2 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/366178 (cherry picked from commit c099b4fde779942d7559248c30a2df55aa4fd4f4) Reviewed-on: http://git-master/r/376515 Reviewed-by: Automatic_Commit_Validation_User Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Kevin Huang (Eng-SW) <kevinh@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 7cfb3c24..1570e12c 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -1416,6 +1416,18 @@ void gk20a_channel_update(struct channel_gk20a *c, int nr_completed)
1416 gk20a_idle(c->g->dev); 1416 gk20a_idle(c->g->dev);
1417} 1417}
1418 1418
1419void add_wait_cmd(u32 *ptr, u32 id, u32 thresh)
1420{
1421 /* syncpoint_a */
1422 ptr[0] = 0x2001001C;
1423 /* payload */
1424 ptr[1] = thresh;
1425 /* syncpoint_b */
1426 ptr[2] = 0x2001001D;
1427 /* syncpt_id, switch_en, wait */
1428 ptr[3] = (id << 8) | 0x10;
1429}
1430
1419static int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, 1431static int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
1420 struct nvhost_gpfifo *gpfifo, 1432 struct nvhost_gpfifo *gpfifo,
1421 u32 num_entries, 1433 u32 num_entries,