diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-06-15 19:40:16 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-18 18:45:15 -0400 |
commit | 13ec687ae9c8c38279cb1a9226dbb3f64a7ec5b1 (patch) | |
tree | 574de23b5d1499b9fdc6d9e0d7365d2bb37a3eae /drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | |
parent | 2573841d89d54301ef4958cde40ed669bb0f9758 (diff) |
gpu: nvgpu: remove PMC_ENABLE and PMC_ELPG_ENABLE accesses
We don't need to enable l2/fb/hub/xbar from PMC_ENABLE or PMC_ELPG_ENABLE
explicitly from nvgpu
Remove the redundant code which accesses those registers
Jira NVGPUT-51
Change-Id: I423d3bfc2f63460fc168815b5b5104962e3e72ef
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1751445
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/ltc_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c index 9f9ff337..96844ebd 100644 --- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c | |||
@@ -58,13 +58,6 @@ void gv11b_ltc_init_fs_state(struct gk20a *g) | |||
58 | 58 | ||
59 | nvgpu_log_info(g, "initialize gv11b l2"); | 59 | nvgpu_log_info(g, "initialize gv11b l2"); |
60 | 60 | ||
61 | g->ops.mc.reset(g, mc_enable_pfb_enabled_f() | | ||
62 | mc_enable_l2_enabled_f()); | ||
63 | |||
64 | reg = gk20a_readl(g, mc_elpg_enable_r()); | ||
65 | reg |= mc_elpg_enable_l2_enabled_f(); | ||
66 | gk20a_writel(g, mc_elpg_enable_r(), reg); | ||
67 | |||
68 | g->max_ltc_count = gk20a_readl(g, top_num_ltcs_r()); | 61 | g->max_ltc_count = gk20a_readl(g, top_num_ltcs_r()); |
69 | g->ltc_count = gk20a_readl(g, pri_ringmaster_enum_ltc_r()); | 62 | g->ltc_count = gk20a_readl(g, pri_ringmaster_enum_ltc_r()); |
70 | nvgpu_log_info(g, "%u ltcs out of %u", g->ltc_count, g->max_ltc_count); | 63 | nvgpu_log_info(g, "%u ltcs out of %u", g->ltc_count, g->max_ltc_count); |