diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-06-23 07:40:13 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-29 16:29:52 -0400 |
commit | 268721975c6c72418e2282126e7f594f62e6e118 (patch) | |
tree | 62c64561775f42513a9dda74244f613dc5a59543 /drivers/gpu/nvgpu/gp106/pmu_gp106.h | |
parent | 97aea977e25c17ecb44448eb19dc15e740036958 (diff) |
gpu: nvgpu: PMU reset reorg
- nvgpu_pmu_reset() as pmu reset for
all chips & removed gk20a_pmu_reset() &
gp106_pmu_reset() along with dependent
code.
- Created ops to do PMU engine reset & to
know the engine reset status
- Removed pmu.reset ops & replaced with
nvgpu_flcn_reset(pmu->flcn)
- Moved sec2 reset to sec2_gp106 from
pmu_gp106 & cleaned PMU code part of sec2.
JIRA NVGPU-99
Change-Id: I7575e4ca2b34922d73d171f6a41bfcdc2f40dc96
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master/r/1507881
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/pmu_gp106.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/pmu_gp106.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/pmu_gp106.h b/drivers/gpu/nvgpu/gp106/pmu_gp106.h index 3213b25c..5f399b89 100644 --- a/drivers/gpu/nvgpu/gp106/pmu_gp106.h +++ b/drivers/gpu/nvgpu/gp106/pmu_gp106.h | |||
@@ -18,8 +18,9 @@ | |||
18 | gk20a_dbg(gpu_dbg_pmu, fmt, ##arg) | 18 | gk20a_dbg(gpu_dbg_pmu, fmt, ##arg) |
19 | 19 | ||
20 | void gp106_init_pmu_ops(struct gpu_ops *gops); | 20 | void gp106_init_pmu_ops(struct gpu_ops *gops); |
21 | int gp106_pmu_reset(struct gk20a *g); | ||
22 | void gp106_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, | 21 | void gp106_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, |
23 | struct pmu_pg_stats_data *pg_stat_data); | 22 | struct pmu_pg_stats_data *pg_stat_data); |
23 | bool gp106_pmu_is_engine_in_reset(struct gk20a *g); | ||
24 | int gp106_pmu_engine_reset(struct gk20a *g, bool do_reset); | ||
24 | 25 | ||
25 | #endif /*__PMU_GP106_H_*/ | 26 | #endif /*__PMU_GP106_H_*/ |