diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index f77ad10b..9d52c943 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -1915,6 +1915,9 @@ int gk20a_init_pmu_setup_sw(struct gk20a *g) | |||
1915 | 1915 | ||
1916 | gk20a_dbg_fn(""); | 1916 | gk20a_dbg_fn(""); |
1917 | 1917 | ||
1918 | /* start with elpg disabled until first enable call */ | ||
1919 | pmu->elpg_refcnt = 0; | ||
1920 | |||
1918 | if (pmu->sw_ready) { | 1921 | if (pmu->sw_ready) { |
1919 | for (i = 0; i < pmu->mutex_cnt; i++) { | 1922 | for (i = 0; i < pmu->mutex_cnt; i++) { |
1920 | pmu->mutex[i].id = i; | 1923 | pmu->mutex[i].id = i; |
@@ -2478,9 +2481,6 @@ static int pmu_init_powergating(struct pmu_gk20a *pmu) | |||
2478 | gk20a_pmu_cmd_post(g, &cmd, NULL, NULL, PMU_COMMAND_QUEUE_HPQ, | 2481 | gk20a_pmu_cmd_post(g, &cmd, NULL, NULL, PMU_COMMAND_QUEUE_HPQ, |
2479 | pmu_handle_pg_elpg_msg, pmu, &seq, ~0); | 2482 | pmu_handle_pg_elpg_msg, pmu, &seq, ~0); |
2480 | 2483 | ||
2481 | /* start with elpg disabled until first enable call */ | ||
2482 | pmu->elpg_refcnt = 0; | ||
2483 | |||
2484 | pmu->pmu_state = PMU_STATE_ELPG_BOOTING; | 2484 | pmu->pmu_state = PMU_STATE_ELPG_BOOTING; |
2485 | 2485 | ||
2486 | return 0; | 2486 | return 0; |