diff options
author | ddutta <ddutta@nvidia.com> | 2020-02-26 05:37:29 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2020-02-28 10:42:46 -0500 |
commit | fbad02d5e045fbc10f44fbecf419235938d4d0bc (patch) | |
tree | 3baba48815e50221ca096ec5e7275266cbe1f717 /drivers/gpu/nvgpu/common/power_features | |
parent | aaecfae53f60715e52a9e29a956d0246f4f0bafa (diff) |
gpu: nvgpu: remove blcg_enable/disable
blcg is always enabled by default and there is no need for disabling
this during gr init or gr reset.
Bug 2866010
Change-Id: Iaf17b7fdf05ad04fe435e1a1fda758deedc6484c
Signed-off-by: ddutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2303114
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/power_features')
-rw-r--r-- | drivers/gpu/nvgpu/common/power_features/cg/cg.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/gpu/nvgpu/common/power_features/cg/cg.c b/drivers/gpu/nvgpu/common/power_features/cg/cg.c index a966c4c6..7b66a81d 100644 --- a/drivers/gpu/nvgpu/common/power_features/cg/cg.c +++ b/drivers/gpu/nvgpu/common/power_features/cg/cg.c | |||
@@ -84,34 +84,6 @@ void nvgpu_cg_elcg_disable_no_wait(struct gk20a *g) | |||
84 | nvgpu_mutex_release(&g->cg_pg_lock); | 84 | nvgpu_mutex_release(&g->cg_pg_lock); |
85 | } | 85 | } |
86 | 86 | ||
87 | void nvgpu_cg_blcg_disable_no_wait(struct gk20a *g) { | ||
88 | nvgpu_log_fn(g, " "); | ||
89 | |||
90 | if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_BLCG)) { | ||
91 | return; | ||
92 | } | ||
93 | |||
94 | nvgpu_mutex_acquire(&g->cg_pg_lock); | ||
95 | if (g->blcg_enabled) { | ||
96 | nvgpu_cg_set_mode(g, BLCG_MODE, BLCG_RUN); | ||
97 | } | ||
98 | nvgpu_mutex_release(&g->cg_pg_lock); | ||
99 | } | ||
100 | |||
101 | void nvgpu_cg_blcg_enable_no_wait(struct gk20a *g) { | ||
102 | nvgpu_log_fn(g, " "); | ||
103 | |||
104 | if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_BLCG)) { | ||
105 | return; | ||
106 | } | ||
107 | |||
108 | nvgpu_mutex_acquire(&g->cg_pg_lock); | ||
109 | if (g->blcg_enabled) { | ||
110 | nvgpu_cg_set_mode(g, BLCG_MODE, BLCG_AUTO); | ||
111 | } | ||
112 | nvgpu_mutex_release(&g->cg_pg_lock); | ||
113 | } | ||
114 | |||
115 | void nvgpu_cg_elcg_enable(struct gk20a *g) | 87 | void nvgpu_cg_elcg_enable(struct gk20a *g) |
116 | { | 88 | { |
117 | nvgpu_log_fn(g, " "); | 89 | nvgpu_log_fn(g, " "); |