diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index 133582cd..e2a931be 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include "hal_gp10b.h" | 45 | #include "hal_gp10b.h" |
46 | 46 | ||
47 | #include <nvgpu/bug.h> | 47 | #include <nvgpu/bug.h> |
48 | #include <nvgpu/enabled.h> | ||
48 | 49 | ||
49 | #include <nvgpu/hw/gp10b/hw_proj_gp10b.h> | 50 | #include <nvgpu/hw/gp10b/hw_proj_gp10b.h> |
50 | #include <nvgpu/hw/gp10b/hw_fuse_gp10b.h> | 51 | #include <nvgpu/hw/gp10b/hw_fuse_gp10b.h> |
@@ -197,7 +198,7 @@ int gp10b_init_hal(struct gk20a *g) | |||
197 | gops->clock_gating = gp10b_ops.clock_gating; | 198 | gops->clock_gating = gp10b_ops.clock_gating; |
198 | gops->pmupstate = false; | 199 | gops->pmupstate = false; |
199 | #ifdef CONFIG_TEGRA_ACR | 200 | #ifdef CONFIG_TEGRA_ACR |
200 | if (g->is_fmodel) { | 201 | if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) { |
201 | gops->privsecurity = 0; | 202 | gops->privsecurity = 0; |
202 | gops->securegpccs = 0; | 203 | gops->securegpccs = 0; |
203 | } else if (g->is_virtual) { | 204 | } else if (g->is_virtual) { |
@@ -215,7 +216,7 @@ int gp10b_init_hal(struct gk20a *g) | |||
215 | } | 216 | } |
216 | } | 217 | } |
217 | #else | 218 | #else |
218 | if (g->is_fmodel) { | 219 | if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) { |
219 | gk20a_dbg_info("running simulator with PRIV security disabled"); | 220 | gk20a_dbg_info("running simulator with PRIV security disabled"); |
220 | gops->privsecurity = 0; | 221 | gops->privsecurity = 0; |
221 | gops->securegpccs = 0; | 222 | gops->securegpccs = 0; |