diff options
author | Seema Khowala <seemaj@nvidia.com> | 2016-07-07 18:01:00 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:18 -0500 |
commit | 436109f46d49a24b69bab7c85b112f192ab002c0 (patch) | |
tree | 305f44c81ada7028b582a553f503380b506c9e3e /drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |
parent | b1ee53e03e37c507f3cebb6c156bb20c6b2a5eb1 (diff) |
gpu: nvgpu: gp10b: add is_fmodel check
Check for is_fmodel instead of check
for simualtion platforms.
Bug 1735760
Change-Id: I14e349088e9414a73353a94613fa031e63bfa31f
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1177200
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Tejal Kudav <tkudav@nvidia.com>
Reviewed-by: Ayoosh Bansal <ayooshb@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hal_gp10b.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c index d82a03eb..87ba5bf6 100644 --- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c | |||
@@ -187,11 +187,12 @@ int gp10b_init_hal(struct gk20a *g) | |||
187 | { | 187 | { |
188 | struct gpu_ops *gops = &g->ops; | 188 | struct gpu_ops *gops = &g->ops; |
189 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; | 189 | struct nvgpu_gpu_characteristics *c = &g->gpu_characteristics; |
190 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
190 | 191 | ||
191 | *gops = gp10b_ops; | 192 | *gops = gp10b_ops; |
192 | 193 | ||
193 | #ifdef CONFIG_TEGRA_ACR | 194 | #ifdef CONFIG_TEGRA_ACR |
194 | if (tegra_platform_is_linsim()) { | 195 | if (platform->is_fmodel) { |
195 | gops->privsecurity = 0; | 196 | gops->privsecurity = 0; |
196 | gops->securegpccs = 0; | 197 | gops->securegpccs = 0; |
197 | } else { | 198 | } else { |
@@ -206,8 +207,8 @@ int gp10b_init_hal(struct gk20a *g) | |||
206 | } | 207 | } |
207 | } | 208 | } |
208 | #else | 209 | #else |
209 | if (tegra_platform_is_linsim()) { | 210 | if (platform->is_fmodel) { |
210 | gk20a_dbg_info("running ASIM with PRIV security disabled"); | 211 | gk20a_dbg_info("running simulator with PRIV security disabled"); |
211 | gops->privsecurity = 0; | 212 | gops->privsecurity = 0; |
212 | gops->securegpccs = 0; | 213 | gops->securegpccs = 0; |
213 | } else { | 214 | } else { |