summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-02-09 23:37:02 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 21:06:37 -0400
commita3b26f25a226ea56e84dbda1bb510c1a7bc11054 (patch)
treeaf422d027e1e4c6d058380fd26dee4eb95c8afa8 /drivers/gpu/nvgpu/gk20a/channel_gk20a.c
parent80d26baf051fa5fc05e4e15fe5fd6a7bac448a1c (diff)
gpu: nvgpu: TLB invalidate after map/unmap
Always invalidate TLB after mapping or unmapping, and remove the delayed TLB invalidate. Change-Id: I6df3c5c1fcca59f0f9e3f911168cb2f913c42815 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/696413 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index d61656fc..a32496a2 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -1589,13 +1589,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
1589 gk20a_dbg_info("pre-submit put %d, get %d, size %d", 1589 gk20a_dbg_info("pre-submit put %d, get %d, size %d",
1590 c->gpfifo.put, c->gpfifo.get, c->gpfifo.entry_num); 1590 c->gpfifo.put, c->gpfifo.get, c->gpfifo.entry_num);
1591 1591
1592 /* Invalidate tlb if it's dirty... */
1593 /* TBD: this should be done in the cmd stream, not with PRIs. */
1594 /* We don't know what context is currently running... */
1595 /* Note also: there can be more than one context associated with the */
1596 /* address space (vm). */
1597 g->ops.mm.tlb_invalidate(c->vm);
1598
1599 /* Make sure we have enough space for gpfifo entries. If not, 1592 /* Make sure we have enough space for gpfifo entries. If not,
1600 * wait for signals from completed submits */ 1593 * wait for signals from completed submits */
1601 if (gp_free_count(c) < num_entries + extra_entries) { 1594 if (gp_free_count(c) < num_entries + extra_entries) {