mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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:
committed by
mobile promotions
parent
8d712cd235
commit
d8049d384f
@@ -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)
|
||||
*ack_status = 1;
|
||||
if (pmu->pmu_state == PMU_STATE_ELPG_BOOTING) {
|
||||
pmu->pmu_state = PMU_STATE_ELPG_BOOTED;
|
||||
if (g->ops.pmu.pmu_pg_engines_feature_list &&
|
||||
g->ops.pmu.pmu_pg_engines_feature_list(g,
|
||||
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->pmu_state = PMU_STATE_STARTED;
|
||||
pmu->mscg_stat = PMU_MSCG_DISABLED;
|
||||
} else
|
||||
} else {
|
||||
pmu->pmu_state = PMU_STATE_ELPG_BOOTED;
|
||||
schedule_work(&pmu->pg_init);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user