summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2017-05-10 07:48:01 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-09 14:13:59 -0400
commit002d6f147490cd5b3002ce5a564f4276df784ea6 (patch)
tree7211808e958843943d243b1935f09ab4ffc1cae4 /drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
parent5205ab23a29d6bb2d94eecae67ba344f438c5045 (diff)
gpu: nvgpu: PMU IPC reorg support update
- prepend PMU IPC func with nvgpu_ by replacing gk20a_ - updated gv11b HAL methods of queue & mutex to point to gk20a HAL methods. JIRA NVGPU-56 Change-Id: Iade9f5613dbd4bc11515e822ddfda3a1787bfa4f Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1479117 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/fifo_gv11b.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
index b018f3d9..847bf172 100644
--- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c
@@ -718,12 +718,12 @@ static int gv11b_fifo_preempt_channel(struct gk20a *g, u32 hw_chid)
718 718
719 nvgpu_mutex_acquire(&f->runlist_info[runlist_id].mutex); 719 nvgpu_mutex_acquire(&f->runlist_info[runlist_id].mutex);
720 720
721 mutex_ret = pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 721 mutex_ret = nvgpu_pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
722 722
723 ret = __locked_fifo_preempt(g, hw_chid, false); 723 ret = __locked_fifo_preempt(g, hw_chid, false);
724 724
725 if (!mutex_ret) 725 if (!mutex_ret)
726 pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 726 nvgpu_pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
727 727
728 nvgpu_mutex_release(&f->runlist_info[runlist_id].mutex); 728 nvgpu_mutex_release(&f->runlist_info[runlist_id].mutex);
729 729
@@ -770,12 +770,12 @@ static int gv11b_fifo_preempt_tsg(struct gk20a *g, u32 tsgid)
770 770
771 nvgpu_mutex_acquire(&f->runlist_info[runlist_id].mutex); 771 nvgpu_mutex_acquire(&f->runlist_info[runlist_id].mutex);
772 772
773 mutex_ret = pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 773 mutex_ret = nvgpu_pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
774 774
775 ret = __locked_fifo_preempt(g, tsgid, true); 775 ret = __locked_fifo_preempt(g, tsgid, true);
776 776
777 if (!mutex_ret) 777 if (!mutex_ret)
778 pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 778 nvgpu_pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
779 779
780 nvgpu_mutex_release(&f->runlist_info[runlist_id].mutex); 780 nvgpu_mutex_release(&f->runlist_info[runlist_id].mutex);
781 781
@@ -798,12 +798,12 @@ static int gv11b_fifo_preempt_runlists(struct gk20a *g, u32 runlists_mask)
798 runlist_info[runlist_id].mutex); 798 runlist_info[runlist_id].mutex);
799 } 799 }
800 800
801 mutex_ret = pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 801 mutex_ret = nvgpu_pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
802 802
803 ret = __locked_fifo_preempt_runlists(g, runlists_mask); 803 ret = __locked_fifo_preempt_runlists(g, runlists_mask);
804 804
805 if (!mutex_ret) 805 if (!mutex_ret)
806 pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 806 nvgpu_pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
807 807
808 for (runlist_id = 0; runlist_id < g->fifo.max_runlists; runlist_id++) { 808 for (runlist_id = 0; runlist_id < g->fifo.max_runlists; runlist_id++) {
809 if (runlists_mask & fifo_runlist_preempt_runlist_m(runlist_id)) 809 if (runlists_mask & fifo_runlist_preempt_runlist_m(runlist_id))
@@ -858,12 +858,12 @@ static int gv11b_fifo_preempt_ch_tsg(struct gk20a *g, u32 id,
858 858
859 nvgpu_mutex_acquire(&f->runlist_info[runlist_id].mutex); 859 nvgpu_mutex_acquire(&f->runlist_info[runlist_id].mutex);
860 860
861 mutex_ret = pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 861 mutex_ret = nvgpu_pmu_mutex_acquire(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
862 862
863 ret = __locked_fifo_preempt_ch_tsg(g, id, id_type, timeout_rc_type); 863 ret = __locked_fifo_preempt_ch_tsg(g, id, id_type, timeout_rc_type);
864 864
865 if (!mutex_ret) 865 if (!mutex_ret)
866 pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token); 866 nvgpu_pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
867 867
868 nvgpu_mutex_release(&f->runlist_info[runlist_id].mutex); 868 nvgpu_mutex_release(&f->runlist_info[runlist_id].mutex);
869 869