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/priv_ring_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/priv_ring_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c index cad74359..f812383f 100644 --- a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |||
@@ -25,7 +25,9 @@ | |||
25 | 25 | ||
26 | void gk20a_reset_priv_ring(struct gk20a *g) | 26 | void gk20a_reset_priv_ring(struct gk20a *g) |
27 | { | 27 | { |
28 | if (tegra_platform_is_linsim()) | 28 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); |
29 | |||
30 | if (platform->is_fmodel) | ||
29 | return; | 31 | return; |
30 | 32 | ||
31 | if (g->ops.clock_gating.slcg_priring_load_gating_prod) | 33 | if (g->ops.clock_gating.slcg_priring_load_gating_prod) |
@@ -50,8 +52,9 @@ void gk20a_priv_ring_isr(struct gk20a *g) | |||
50 | u32 status0, status1; | 52 | u32 status0, status1; |
51 | u32 cmd; | 53 | u32 cmd; |
52 | s32 retry = 100; | 54 | s32 retry = 100; |
55 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
53 | 56 | ||
54 | if (tegra_platform_is_linsim()) | 57 | if (platform->is_fmodel) |
55 | return; | 58 | return; |
56 | 59 | ||
57 | status0 = gk20a_readl(g, pri_ringmaster_intr_status0_r()); | 60 | status0 = gk20a_readl(g, pri_ringmaster_intr_status0_r()); |