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/gm20b/gr_gm20b.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/gm20b/gr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index d57b0fb5..c2aa64ba 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -709,10 +709,11 @@ static int gr_gm20b_load_ctxsw_ucode(struct gk20a *g) | |||
709 | u32 reg_offset = gr_gpcs_gpccs_falcon_hwcfg_r() - | 709 | u32 reg_offset = gr_gpcs_gpccs_falcon_hwcfg_r() - |
710 | gr_fecs_falcon_hwcfg_r(); | 710 | gr_fecs_falcon_hwcfg_r(); |
711 | u8 falcon_id_mask = 0; | 711 | u8 falcon_id_mask = 0; |
712 | struct gk20a_platform *platform = dev_get_drvdata(g->dev); | ||
712 | 713 | ||
713 | gk20a_dbg_fn(""); | 714 | gk20a_dbg_fn(""); |
714 | 715 | ||
715 | if (tegra_platform_is_linsim()) { | 716 | if (platform->is_fmodel) { |
716 | gk20a_writel(g, gr_fecs_ctxsw_mailbox_r(7), | 717 | gk20a_writel(g, gr_fecs_ctxsw_mailbox_r(7), |
717 | gr_fecs_ctxsw_mailbox_value_f(0xc0de7777)); | 718 | gr_fecs_ctxsw_mailbox_value_f(0xc0de7777)); |
718 | gk20a_writel(g, gr_gpccs_ctxsw_mailbox_r(7), | 719 | gk20a_writel(g, gr_gpccs_ctxsw_mailbox_r(7), |