diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index a4becda0..e1bf2b4b 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -325,9 +325,11 @@ int gk20a_finalize_poweron(struct gk20a *g) | |||
325 | 325 | ||
326 | #if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) | 326 | #if defined(CONFIG_TEGRA_GK20A_NVHOST) && defined(CONFIG_TEGRA_19x_GPU) |
327 | if (gk20a_platform_has_syncpoints(g) && g->syncpt_unit_size) { | 327 | if (gk20a_platform_has_syncpoints(g) && g->syncpt_unit_size) { |
328 | nr_pages = DIV_ROUND_UP(g->syncpt_unit_size, PAGE_SIZE); | 328 | if (!nvgpu_mem_is_valid(&g->syncpt_mem)) { |
329 | __nvgpu_mem_create_from_phys(g, &g->syncpt_mem, | 329 | nr_pages = DIV_ROUND_UP(g->syncpt_unit_size, PAGE_SIZE); |
330 | g->syncpt_unit_base, nr_pages); | 330 | __nvgpu_mem_create_from_phys(g, &g->syncpt_mem, |
331 | g->syncpt_unit_base, nr_pages); | ||
332 | } | ||
331 | } | 333 | } |
332 | #endif | 334 | #endif |
333 | 335 | ||