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/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/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 191d1c39..ff37d9f3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -755,7 +755,8 @@ struct gpu_ops { | |||
755 | int (*pmu_lpwr_disable_pg)(struct gk20a *g, bool pstate_lock); | 755 | int (*pmu_lpwr_disable_pg)(struct gk20a *g, bool pstate_lock); |
756 | u32 (*pmu_pg_param_post_init)(struct gk20a *g); | 756 | u32 (*pmu_pg_param_post_init)(struct gk20a *g); |
757 | void (*dump_secure_fuses)(struct gk20a *g); | 757 | void (*dump_secure_fuses)(struct gk20a *g); |
758 | int (*reset)(struct gk20a *g); | 758 | int (*reset_engine)(struct gk20a *g, bool do_reset); |
759 | bool (*is_engine_in_reset)(struct gk20a *g); | ||
759 | int (*falcon_wait_for_halt)(struct gk20a *g, | 760 | int (*falcon_wait_for_halt)(struct gk20a *g, |
760 | unsigned int timeout); | 761 | unsigned int timeout); |
761 | int (*falcon_clear_halt_interrupt_status)(struct gk20a *g, | 762 | int (*falcon_clear_halt_interrupt_status)(struct gk20a *g, |