diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2019-05-03 04:41:52 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-05-09 17:42:14 -0400 |
commit | 4d8ad643d67ac4044f76976c4085a35fcc5d4095 (patch) | |
tree | 6b829f294bf4a6ff453cf08edd11bdaf5e620abb /drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h | |
parent | bdaacf544127fcfaa474ccb5466aa93f81382416 (diff) |
gpu: nvgpu: wait for gr.initialized before changing cg/pg
set gr.initialized to false in the beginning of gk20a_gr_reset() and
set it to true at the end of successful execution of gk20a_gr_reset.
Use gk20a_gr_wait_initialized() to enable/disable cg/pg
functions to make sure engine is out of reset and initialized.
Bug 2092051
Bug 2429295
Bug 2484211
Bug 1890287
Change-Id: Ic7b0b71382c6d852a625c603dad8609c43b7f20f
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
(cherry-picked from 7e2f124fd12caf37172f12da8de65093622941a5 in
dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/2111038
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h b/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h index 3bb86267..7b5fe265 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h +++ b/drivers/gpu/nvgpu/include/nvgpu/power_features/cg.h | |||
@@ -32,6 +32,8 @@ struct fifo_gk20a; | |||
32 | void nvgpu_cg_init_gr_load_gating_prod(struct gk20a *g); | 32 | void nvgpu_cg_init_gr_load_gating_prod(struct gk20a *g); |
33 | void nvgpu_cg_elcg_enable(struct gk20a *g); | 33 | void nvgpu_cg_elcg_enable(struct gk20a *g); |
34 | void nvgpu_cg_elcg_disable(struct gk20a *g); | 34 | void nvgpu_cg_elcg_disable(struct gk20a *g); |
35 | void nvgpu_cg_elcg_enable_no_wait(struct gk20a *g); | ||
36 | void nvgpu_cg_elcg_disable_no_wait(struct gk20a *g); | ||
35 | void nvgpu_cg_elcg_set_elcg_enabled(struct gk20a *g, bool enable); | 37 | void nvgpu_cg_elcg_set_elcg_enabled(struct gk20a *g, bool enable); |
36 | 38 | ||
37 | void nvgpu_cg_blcg_mode_enable(struct gk20a *g); | 39 | void nvgpu_cg_blcg_mode_enable(struct gk20a *g); |