diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-06-06 05:56:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-12 14:03:37 -0400 |
commit | 69dee6a648ad434b75e1a9c64b022ee45d3ff87b (patch) | |
tree | eba316aa07b17760afb1609b331bb3cf0602e545 /drivers/gpu/nvgpu/common/linux | |
parent | 914bb78a7dc0687b349310cc28613ea4a4c0be33 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/debug_pmu.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
75 | if (err) | 75 | if (err) |
76 | return err; | 76 | return err; |
77 | 77 | ||
78 | gk20a_pmu_get_pg_stats(g, | 78 | nvgpu_pmu_get_pg_stats(g, |
79 | PMU_PG_ELPG_ENGINE_ID_MS, &pg_stat_data); | 79 | PMU_PG_ELPG_ENGINE_ID_MS, &pg_stat_data); |
80 | gk20a_idle(g); | 80 | gk20a_idle(g); |
81 | } | 81 | } |
@@ -133,7 +133,7 @@ static int mscg_transitions_show(struct seq_file *s, void *data) | |||
133 | if (err) | 133 | if (err) |
134 | return err; | 134 | return err; |
135 | 135 | ||
136 | gk20a_pmu_get_pg_stats(g, | 136 | nvgpu_pmu_get_pg_stats(g, |
137 | PMU_PG_ELPG_ENGINE_ID_MS, &pg_stat_data); | 137 | PMU_PG_ELPG_ENGINE_ID_MS, &pg_stat_data); |
138 | gk20a_idle(g); | 138 | gk20a_idle(g); |
139 | } | 139 | } |
@@ -169,7 +169,7 @@ static int elpg_stat_show(struct seq_file *s, void *data) | |||
169 | if (err) | 169 | if (err) |
170 | return err; | 170 | return err; |
171 | 171 | ||
172 | gk20a_pmu_get_pg_stats(g, | 172 | nvgpu_pmu_get_pg_stats(g, |
173 | PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data); | 173 | PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data); |
174 | gk20a_idle(g); | 174 | gk20a_idle(g); |
175 | } | 175 | } |
@@ -226,7 +226,7 @@ static int elpg_transitions_show(struct seq_file *s, void *data) | |||
226 | if (err) | 226 | if (err) |
227 | return err; | 227 | return err; |
228 | 228 | ||
229 | gk20a_pmu_get_pg_stats(g, | 229 | nvgpu_pmu_get_pg_stats(g, |
230 | PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data); | 230 | PMU_PG_ELPG_ENGINE_ID_GRAPHICS, &pg_stat_data); |
231 | gk20a_idle(g); | 231 | gk20a_idle(g); |
232 | } | 232 | } |