mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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>
This commit is contained in:
committed by
Dan Willemsen
parent
ab0448821f
commit
c44f2084eb
@@ -1416,6 +1416,18 @@ void gk20a_channel_update(struct channel_gk20a *c, int nr_completed)
|
||||
gk20a_idle(c->g->dev);
|
||||
}
|
||||
|
||||
void add_wait_cmd(u32 *ptr, u32 id, u32 thresh)
|
||||
{
|
||||
/* syncpoint_a */
|
||||
ptr[0] = 0x2001001C;
|
||||
/* payload */
|
||||
ptr[1] = thresh;
|
||||
/* syncpoint_b */
|
||||
ptr[2] = 0x2001001D;
|
||||
/* syncpt_id, switch_en, wait */
|
||||
ptr[3] = (id << 8) | 0x10;
|
||||
}
|
||||
|
||||
static int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
|
||||
struct nvhost_gpfifo *gpfifo,
|
||||
u32 num_entries,
|
||||
|
||||
Reference in New Issue
Block a user