gpu: nvgpu: pmu->pmu_state update

- set pmu->pmu_state to PMU_STATE_ELPG_BOOTED
 only for ELPG after PMU_STATE_ELPG_BOOTING
 state

Bug N/A

Change-Id: I08480e2afd5a5050a903327b91e43b25780cdaf8
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1254429
(cherry picked from commit d68f4f91796d1d98dbc1b5b24d526fe2e487966f)
Reviewed-on: http://git-master/r/1271616
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Mahantesh Kumbar
2016-11-16 12:18:06 +05:30
committed by mobile promotions
parent 8d712cd235
commit d8049d384f

View File

@@ -3376,7 +3376,6 @@ static void pmu_handle_pg_elpg_msg(struct gk20a *g, struct pmu_msg *msg,
else if (elpg_msg->engine_id == PMU_PG_ELPG_ENGINE_ID_MS) else if (elpg_msg->engine_id == PMU_PG_ELPG_ENGINE_ID_MS)
*ack_status = 1; *ack_status = 1;
if (pmu->pmu_state == PMU_STATE_ELPG_BOOTING) { if (pmu->pmu_state == PMU_STATE_ELPG_BOOTING) {
pmu->pmu_state = PMU_STATE_ELPG_BOOTED;
if (g->ops.pmu.pmu_pg_engines_feature_list && if (g->ops.pmu.pmu_pg_engines_feature_list &&
g->ops.pmu.pmu_pg_engines_feature_list(g, g->ops.pmu.pmu_pg_engines_feature_list(g,
PMU_PG_ELPG_ENGINE_ID_GRAPHICS) != PMU_PG_ELPG_ENGINE_ID_GRAPHICS) !=
@@ -3384,8 +3383,10 @@ static void pmu_handle_pg_elpg_msg(struct gk20a *g, struct pmu_msg *msg,
pmu->initialized = true; pmu->initialized = true;
pmu->pmu_state = PMU_STATE_STARTED; pmu->pmu_state = PMU_STATE_STARTED;
pmu->mscg_stat = PMU_MSCG_DISABLED; pmu->mscg_stat = PMU_MSCG_DISABLED;
} else } else {
pmu->pmu_state = PMU_STATE_ELPG_BOOTED;
schedule_work(&pmu->pg_init); schedule_work(&pmu->pg_init);
}
} }
break; break;
default: default: