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, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c index 57cafd38..caf6a2eb 100644 --- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c | |||
@@ -177,11 +177,12 @@ int gm20b_init_hal(struct gk20a *g) | |||
177 | { | 177 | { |
178 | struct gpu_ops *gops = &g->ops; | 178 | struct gpu_ops *gops = &g->ops; |
179 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 179 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
180 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
180 | 181 | ||
181 | *gops = gm20b_ops; | 182 | *gops = gm20b_ops; |
182 | gops->securegpccs = false; | 183 | gops->securegpccs = false; |
183 | #ifdef CONFIG_TEGRA_ACR | 184 | #ifdef CONFIG_TEGRA_ACR |
184 | if (tegra_platform_is_linsim()) { | 185 | if (platform->is_fmodel) { |
185 | gops->privsecurity = 1; | 186 | gops->privsecurity = 1; |
186 | } else { | 187 | } else { |
187 | if (tegra_fuse_readl(FUSE_OPT_PRIV_SEC_DIS_0) & | 188 | if (tegra_fuse_readl(FUSE_OPT_PRIV_SEC_DIS_0) & |
@@ -193,7 +194,7 @@ int gm20b_init_hal(struct gk20a *g) | |||
193 | } | 194 | } |
194 | } | 195 | } |
195 | #else | 196 | #else |
196 | if (tegra_platform_is_linsim()) { | 197 | if (platform->is_fmodel) { |
197 | gk20a_dbg_info("running ASIM with PRIV security disabled"); | 198 | gk20a_dbg_info("running ASIM with PRIV security disabled"); |
198 | gops->privsecurity = 0; | 199 | gops->privsecurity = 0; |
199 | } else { | 200 | } else { |