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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 380c28ac..a0753770 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -25,6 +25,7 @@
25#include <nvgpu/soc.h> 25#include <nvgpu/soc.h>
26#include <nvgpu/enabled.h> 26#include <nvgpu/enabled.h>
27#include <nvgpu/pmu.h> 27#include <nvgpu/pmu.h>
28#include <nvgpu/gmmu.h>
28 29
29#include <trace/events/gk20a.h> 30#include <trace/events/gk20a.h>
30 31
@@ -174,6 +175,14 @@ int gk20a_finalize_poweron(struct gk20a *g)
174 g->gpu_reset_done = true; 175 g->gpu_reset_done = true;
175 } 176 }
176 177
178 /*
179 * Do this early so any early VMs that get made are capable of mapping
180 * buffers.
181 */
182 err = nvgpu_pd_cache_init(g);
183 if (err)
184 return err;
185
177 /* init interface layer support for PMU falcon */ 186 /* init interface layer support for PMU falcon */
178 nvgpu_flcn_sw_init(g, FALCON_ID_PMU); 187 nvgpu_flcn_sw_init(g, FALCON_ID_PMU);
179 nvgpu_flcn_sw_init(g, FALCON_ID_SEC2); 188 nvgpu_flcn_sw_init(g, FALCON_ID_SEC2);