From 69dee6a648ad434b75e1a9c64b022ee45d3ff87b Mon Sep 17 00:00:00 2001 From: Mahantesh Kumbar Date: Tue, 6 Jun 2017 15:26:32 +0530 Subject: 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 Reviewed-on: http://git-master/r/1480002 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/common/linux/debug_pmu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux') diff --git a/drivers/gpu/nvgpu/common/linux/debug_pmu.c b/drivers/gpu/nvgpu/common/linux/debug_pmu.c index 918672db..7d9f5ac3 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_pmu.c +++ b/drivers/gpu/nvgpu/common/linux/debug_pmu.c @@ -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); } -- cgit v1.2.2