diff options
author | Seema Khowala <seemaj@nvidia.com> | 2016-07-08 19:12:44 -0400 |
---|---|---|
committer | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-07-27 17:32:54 -0400 |
commit | d64e2015147c4dc48c0d3b8d6ee612dd8addf04c (patch) | |
tree | 68753a49ca7da2264ff007c675b1dfa32f6da3bd /drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |
parent | 9ca4c6b596fe50c652907193bb167ee29c208b4b (diff) |
gpu: nvgpu: add check for is_fmodel
is_fmodel flag will be set in gk20a_probe().
Updated code for is_fmodel check, instead of
check for supported simulated platforms.
Bug 1735760
Change-Id: I7cbac2196130fe5ce4c1a910504879e6948c13da
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1177869
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Adeel Raza <araza@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ltc_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c index c891a80b..a81ed66c 100644 --- a/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ltc_gk20a.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <trace/events/gk20a.h> | 20 | #include <trace/events/gk20a.h> |
21 | 21 | ||
22 | #include "hw_ltc_gk20a.h" | 22 | #include "hw_ltc_gk20a.h" |
23 | #include "gk20a.h" | ||
23 | 24 | ||
24 | #include "ltc_common.c" | 25 | #include "ltc_common.c" |
25 | 26 | ||
@@ -45,6 +46,7 @@ static int gk20a_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
45 | u32 compbit_backing_size; | 46 | u32 compbit_backing_size; |
46 | 47 | ||
47 | int err; | 48 | int err; |
49 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
48 | 50 | ||
49 | gk20a_dbg_fn(""); | 51 | gk20a_dbg_fn(""); |
50 | 52 | ||
@@ -78,7 +80,7 @@ static int gk20a_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
78 | gk20a_dbg_info("max comptag lines : %d", | 80 | gk20a_dbg_info("max comptag lines : %d", |
79 | max_comptag_lines); | 81 | max_comptag_lines); |
80 | 82 | ||
81 | if (tegra_platform_is_linsim()) | 83 | if (platform->is_fmodel) |
82 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); | 84 | err = gk20a_ltc_alloc_phys_cbc(g, compbit_backing_size); |
83 | else | 85 | else |
84 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); | 86 | err = gk20a_ltc_alloc_virt_cbc(g, compbit_backing_size); |