summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index d1ad5992..cac62db7 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -154,6 +154,9 @@ int gk20a_finalize_poweron(struct gk20a *g)
154{ 154{
155 struct gk20a_platform *platform = gk20a_get_platform(dev_from_gk20a(g)); 155 struct gk20a_platform *platform = gk20a_get_platform(dev_from_gk20a(g));
156 int err; 156 int err;
157#if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU)
158 u32 nr_pages;
159#endif
157 160
158 gk20a_dbg_fn(""); 161 gk20a_dbg_fn("");
159 162
@@ -346,6 +349,14 @@ int gk20a_finalize_poweron(struct gk20a *g)
346 } 349 }
347 } 350 }
348 351
352#if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU)
353 if (gk20a_platform_has_syncpoints(g) && g->syncpt_unit_size) {
354 nr_pages = DIV_ROUND_UP(g->syncpt_unit_size, PAGE_SIZE);
355 __nvgpu_mem_create_from_phys(g, &g->syncpt_mem,
356 g->syncpt_unit_base, nr_pages);
357 }
358#endif
359
349done: 360done:
350 if (err) 361 if (err)
351 g->power_on = false; 362 g->power_on = false;