diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-06-15 12:40:43 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-23 04:14:23 -0400 |
commit | 94cb4b635fba4c01b58f36a6d3384db729e4c9f6 (patch) | |
tree | faa4d026519d04005204c172f1b708e5c1188ab2 /drivers/gpu/nvgpu/gp10b | |
parent | be04b9b1b56d6dd478fe521277c079367c03f39d (diff) |
gpu: nvgpu: use nvgpu_flcn_* interfaces
- set nvgpu_flcn_reset() to point to gk20a_pmu_reset()
- set PMU interrupt using nvgpu_flcn_enable_irq()
- replace pmu_idle with nvgpu_flcn_wait_idle()
JIRA NVGPU-57
Change-Id: I50d0310ae78ad266da3c1e662f1598d61ff7abb6
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1469478
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/pmu_gp10b.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c index 2222cc17..c3ad8978 100644 --- a/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/pmu_gp10b.c | |||
@@ -307,7 +307,7 @@ static int gp10b_init_pmu_setup_hw1(struct gk20a *g) | |||
307 | gk20a_dbg_fn(""); | 307 | gk20a_dbg_fn(""); |
308 | 308 | ||
309 | nvgpu_mutex_acquire(&pmu->isr_mutex); | 309 | nvgpu_mutex_acquire(&pmu->isr_mutex); |
310 | g->ops.pmu.reset(g); | 310 | nvgpu_flcn_reset(pmu->flcn); |
311 | pmu->isr_enabled = true; | 311 | pmu->isr_enabled = true; |
312 | nvgpu_mutex_release(&pmu->isr_mutex); | 312 | nvgpu_mutex_release(&pmu->isr_mutex); |
313 | 313 | ||
@@ -430,6 +430,6 @@ void gp10b_init_pmu_ops(struct gpu_ops *gops) | |||
430 | gops->pmu.pmu_lpwr_disable_pg = NULL; | 430 | gops->pmu.pmu_lpwr_disable_pg = NULL; |
431 | gops->pmu.pmu_pg_param_post_init = NULL; | 431 | gops->pmu.pmu_pg_param_post_init = NULL; |
432 | gops->pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd = NULL; | 432 | gops->pmu.send_lrf_tex_ltc_dram_overide_en_dis_cmd = NULL; |
433 | gops->pmu.reset = gk20a_pmu_reset; | 433 | gops->pmu.reset = NULL; |
434 | gops->pmu.dump_secure_fuses = pmu_dump_security_fuses_gp10b; | 434 | gops->pmu.dump_secure_fuses = pmu_dump_security_fuses_gp10b; |
435 | } | 435 | } |