diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index ec81cf35..c4e44483 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -190,6 +190,7 @@ int gp10b_init_hal(struct gk20a *g) | |||
190 | struct gpu_ops *gops = &g->ops; | 190 | struct gpu_ops *gops = &g->ops; |
191 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 191 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
192 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | 192 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); |
193 | u32 val; | ||
193 | 194 | ||
194 | *gops = gp10b_ops; | 195 | *gops = gp10b_ops; |
195 | 196 | ||
@@ -198,8 +199,8 @@ int gp10b_init_hal(struct gk20a *g) | |||
198 | gops->privsecurity = 0; | 199 | gops->privsecurity = 0; |
199 | gops->securegpccs = 0; | 200 | gops->securegpccs = 0; |
200 | } else { | 201 | } else { |
201 | if (tegra_fuse_readl(FUSE_OPT_PRIV_SEC_EN_0) & | 202 | tegra_fuse_readl(FUSE_OPT_PRIV_SEC_EN_0, &val); |
202 | PRIV_SECURITY_ENABLED) { | 203 | if (val & PRIV_SECURITY_ENABLED) { |
203 | gops->privsecurity = 1; | 204 | gops->privsecurity = 1; |
204 | gops->securegpccs =1; | 205 | gops->securegpccs =1; |
205 | } else { | 206 | } else { |
@@ -214,8 +215,8 @@ int gp10b_init_hal(struct gk20a *g) | |||
214 | gops->privsecurity = 0; | 215 | gops->privsecurity = 0; |
215 | gops->securegpccs = 0; | 216 | gops->securegpccs = 0; |
216 | } else { | 217 | } else { |
217 | if (tegra_fuse_readl(FUSE_OPT_PRIV_SEC_EN_0) & | 218 | tegra_fuse_readl(FUSE_OPT_PRIV_SEC_EN_0, &val); |
218 | PRIV_SECURITY_ENABLED) { | 219 | if (val & PRIV_SECURITY_ENABLED) { |
219 | gk20a_dbg_info("priv security is not supported but enabled"); | 220 | gk20a_dbg_info("priv security is not supported but enabled"); |
220 | gops->privsecurity = 1; | 221 | gops->privsecurity = 1; |
221 | gops->securegpccs =1; | 222 | gops->securegpccs =1; |