summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/gv11b/hal_gv11b.c3
-rw-r--r--drivers/gpu/nvgpu/gv11b/mm_gv11b.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
index 1a7f0874..87775a3f 100644
--- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c
@@ -24,6 +24,7 @@
24 24
25#include "common/bus/bus_gk20a.h" 25#include "common/bus/bus_gk20a.h"
26#include "common/bus/bus_gp10b.h" 26#include "common/bus/bus_gp10b.h"
27#include "common/bus/bus_gm20b.h"
27#include "common/clock_gating/gv11b_gating_reglist.h" 28#include "common/clock_gating/gv11b_gating_reglist.h"
28#include "common/ptimer/ptimer_gk20a.h" 29#include "common/ptimer/ptimer_gk20a.h"
29 30
@@ -745,7 +746,7 @@ static const struct gpu_ops gv11b_ops = {
745 .bus = { 746 .bus = {
746 .init_hw = gk20a_bus_init_hw, 747 .init_hw = gk20a_bus_init_hw,
747 .isr = gk20a_bus_isr, 748 .isr = gk20a_bus_isr,
748 .bar1_bind = NULL, 749 .bar1_bind = gm20b_bus_bar1_bind,
749 .bar2_bind = gp10b_bus_bar2_bind, 750 .bar2_bind = gp10b_bus_bar2_bind,
750 .set_bar0_window = gk20a_bus_set_bar0_window, 751 .set_bar0_window = gk20a_bus_set_bar0_window,
751 }, 752 },
diff --git a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
index e1d90829..0cf08d4a 100644
--- a/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/mm_gv11b.c
@@ -249,7 +249,11 @@ void gv11b_mm_l2_flush(struct gk20a *g, bool invalidate)
249 249
250 g->ops.mm.fb_flush(g); 250 g->ops.mm.fb_flush(g);
251 gk20a_mm_l2_flush(g, invalidate); 251 gk20a_mm_l2_flush(g, invalidate);
252 g->ops.mm.fb_flush(g); 252 if (g->ops.bus.bar1_bind)
253 g->ops.fb.tlb_invalidate(g,
254 g->mm.bar1.vm->pdb.mem);
255 else
256 g->ops.mm.fb_flush(g);
253} 257}
254 258
255/* 259/*