diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index 84759192..6ec9aec5 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |||
@@ -24,18 +24,18 @@ | |||
24 | 24 | ||
25 | #include <trace/events/gk20a.h> | 25 | #include <trace/events/gk20a.h> |
26 | 26 | ||
27 | #include "gk20a/gk20a.h" | ||
28 | |||
29 | #include <nvgpu/timers.h> | 27 | #include <nvgpu/timers.h> |
30 | #include <nvgpu/enabled.h> | 28 | #include <nvgpu/enabled.h> |
31 | #include <nvgpu/bug.h> | 29 | #include <nvgpu/bug.h> |
30 | #include <nvgpu/ltc.h> | ||
32 | 31 | ||
33 | #include <nvgpu/hw/gm20b/hw_mc_gm20b.h> | 32 | #include <nvgpu/hw/gm20b/hw_mc_gm20b.h> |
34 | #include <nvgpu/hw/gm20b/hw_ltc_gm20b.h> | 33 | #include <nvgpu/hw/gm20b/hw_ltc_gm20b.h> |
35 | #include <nvgpu/hw/gm20b/hw_top_gm20b.h> | 34 | #include <nvgpu/hw/gm20b/hw_top_gm20b.h> |
36 | #include <nvgpu/hw/gm20b/hw_pri_ringmaster_gm20b.h> | 35 | #include <nvgpu/hw/gm20b/hw_pri_ringmaster_gm20b.h> |
37 | 36 | ||
38 | #include "gk20a/ltc_gk20a.h" | 37 | #include "gk20a/gk20a.h" |
38 | |||
39 | #include "ltc_gm20b.h" | 39 | #include "ltc_gm20b.h" |
40 | 40 | ||
41 | int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | 41 | int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) |
@@ -92,11 +92,7 @@ int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
92 | gk20a_dbg_info("max comptag lines : %d", | 92 | gk20a_dbg_info("max comptag lines : %d", |
93 | max_comptag_lines); | 93 | max_comptag_lines); |
94 | 94 | ||
95 | if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) | 95 | err = nvgpu_ltc_alloc_cbc(g, compbit_backing_size); |
96 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); | ||
97 | else | ||
98 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); | ||
99 | |||
100 | if (err) | 96 | if (err) |
101 | return err; | 97 | return err; |
102 | 98 | ||