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/gk20a/pmu_gk20a.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/gk20a/pmu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h index 8f337855..997a88d2 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | |||
@@ -70,9 +70,10 @@ void pmu_handle_fecs_boot_acr_msg(struct gk20a *g, struct pmu_msg *msg, | |||
70 | void *param, u32 handle, u32 status); | 70 | void *param, u32 handle, u32 status); |
71 | void gk20a_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, | 71 | void gk20a_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, |
72 | struct pmu_pg_stats_data *pg_stat_data); | 72 | struct pmu_pg_stats_data *pg_stat_data); |
73 | int gk20a_pmu_reset(struct gk20a *g); | 73 | bool gk20a_pmu_is_engine_in_reset(struct gk20a *g); |
74 | int gk20a_pmu_engine_reset(struct gk20a *g, bool do_reset); | ||
75 | |||
74 | int pmu_idle(struct nvgpu_pmu *pmu); | 76 | int pmu_idle(struct nvgpu_pmu *pmu); |
75 | int pmu_enable_hw(struct nvgpu_pmu *pmu, bool enable); | ||
76 | 77 | ||
77 | bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos); | 78 | bool nvgpu_find_hex_in_string(char *strings, struct gk20a *g, u32 *hex_pos); |
78 | 79 | ||