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/ltc_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/ltc_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index 0ccabaf8..3e64d435 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP10B L2 | 2 | * GP10B L2 |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -70,6 +70,7 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
70 | u32 compbit_backing_size; | 70 | u32 compbit_backing_size; |
71 | 71 | ||
72 | int err; | 72 | int err; |
73 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
73 | 74 | ||
74 | gk20a_dbg_fn(""); | 75 | gk20a_dbg_fn(""); |
75 | 76 | ||
@@ -100,7 +101,7 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
100 | gk20a_dbg_info("gobs_per_comptagline_per_slice: %d", | 101 | gk20a_dbg_info("gobs_per_comptagline_per_slice: %d", |
101 | gobs_per_comptagline_per_slice); | 102 | gobs_per_comptagline_per_slice); |
102 | 103 | ||
103 | if (tegra_platform_is_linsim()) | 104 | if (platform->is_fmodel) |
104 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); | 105 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); |
105 | else | 106 | else |
106 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); | 107 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); |