diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hal_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hal_gm20b.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 24acf29c..c190a83c 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -183,14 +183,13 @@ int gm20b_init_hal(struct gk20a *g) | |||
183 | { | 183 | { |
184 | struct gpu_ops *gops = &g->ops; | 184 | struct gpu_ops *gops = &g->ops; |
185 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 185 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
186 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
187 | u32 val; | 186 | u32 val; |
188 | 187 | ||
189 | gops->clock_gating = gm20b_ops.clock_gating; | 188 | gops->clock_gating = gm20b_ops.clock_gating; |
190 | gops->securegpccs = false; | 189 | gops->securegpccs = false; |
191 | gops->pmupstate = false; | 190 | gops->pmupstate = false; |
192 | #ifdef CONFIG_TEGRA_ACR | 191 | #ifdef CONFIG_TEGRA_ACR |
193 | if (platform->is_fmodel) { | 192 | if (g->is_fmodel) { |
194 | gops->privsecurity = 1; | 193 | gops->privsecurity = 1; |
195 | } else { | 194 | } else { |
196 | val = gk20a_readl(g, fuse_opt_priv_sec_en_r()); | 195 | val = gk20a_readl(g, fuse_opt_priv_sec_en_r()); |
@@ -202,7 +201,7 @@ int gm20b_init_hal(struct gk20a *g) | |||
202 | } | 201 | } |
203 | } | 202 | } |
204 | #else | 203 | #else |
205 | if (platform->is_fmodel) { | 204 | if (g->is_fmodel) { |
206 | gk20a_dbg_info("running ASIM with PRIV security disabled"); | 205 | gk20a_dbg_info("running ASIM with PRIV security disabled"); |
207 | gops->privsecurity = 0; | 206 | gops->privsecurity = 0; |
208 | } else { | 207 | } else { |