gpu: nvgpu: reorganize PMU init

- Moved PMU init code from pmu_gk20a.c to
"drivers/gpu/nvgpu/common/pmu/pmu.c" file
- Moved below related methods
  SW/HW init,
  init msg handler,
  deinit/destroy,
  PMU state machine
-Created HAL methods to read message queue tail
& supported mutex count.
-prepend with nvgpu_ for pmu init global
mehtods

JIRA NVGPU-56
JIRA NVGPU-92

Change-Id: Iea9efc194fefa74fb5641d2b2f4633577d2c3a47
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1480002
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Mahantesh Kumbar
2017-06-06 15:26:32 +05:30
committed by mobile promotions
parent 914bb78a7d
commit 69dee6a648
11 changed files with 492 additions and 440 deletions

View File

@@ -75,7 +75,7 @@ static int mscg_stat_show(struct seq_file *s, void *data)
if (err)
return err;
gk20a_pmu_get_pg_stats(g,
nvgpu_pmu_get_pg_stats(g,
PMU_PG_ELPG_ENGINE_ID_MS, &pg_stat_data);
gk20a_idle(g);
}
@@ -133,7 +133,7 @@ static int mscg_transitions_show(struct seq_file *s, void *data)
if (err)
return err;
gk20a_pmu_get_pg_stats(g,
nvgpu_pmu_get_pg_stats(g,
PMU_PG_ELPG_ENGINE_ID_MS, &pg_stat_data);
gk20a_idle(g);
}
@@ -169,7 +169,7 @@ static int elpg_stat_show(struct seq_file *s, void *data)
if (err)
return err;
gk20a_pmu_get_pg_stats(g,
nvgpu_pmu_get_pg_stats(g,
PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data);
gk20a_idle(g);
}
@@ -226,7 +226,7 @@ static int elpg_transitions_show(struct seq_file *s, void *data)
if (err)
return err;
gk20a_pmu_get_pg_stats(g,
nvgpu_pmu_get_pg_stats(g,
PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data);
gk20a_idle(g);
}