summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-03-06 18:55:18 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-14 18:26:56 -0400
commit93ba29c5b5adae918545be75c67bc00614a7eef8 (patch)
tree7894b9ac0fef32313df3af652954c19f9010336f /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
parent85cb10c3133de7d2ce4d0105db3733fbab4782da (diff)
gpu: nvgpu: channel_from_inst_ptr renamed and made non static
required to support t19x mmu fault Change-Id: Ibe621d924717696a359d7e2065beb6501a9f9b5e Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1315928 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index a2846d2a..de1c82dc 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -1051,10 +1051,10 @@ int gk20a_init_fifo_support(struct gk20a *g)
1051} 1051}
1052 1052
1053/* return with a reference to the channel, caller must put it back */ 1053/* return with a reference to the channel, caller must put it back */
1054static struct channel_gk20a * 1054struct channel_gk20a *
1055channel_from_inst_ptr(struct fifo_gk20a *f, u64 inst_ptr) 1055gk20a_refch_from_inst_ptr(struct gk20a *g, u64 inst_ptr)
1056{ 1056{
1057 struct gk20a *g = f->g; 1057 struct fifo_gk20a *f = &g->fifo;
1058 unsigned int ci; 1058 unsigned int ci;
1059 if (unlikely(!f->channel)) 1059 if (unlikely(!f->channel))
1060 return NULL; 1060 return NULL;
@@ -1531,7 +1531,7 @@ static bool gk20a_fifo_handle_mmu_fault(
1531 } 1531 }
1532 } else { 1532 } else {
1533 /* read channel based on instruction pointer */ 1533 /* read channel based on instruction pointer */
1534 ch = channel_from_inst_ptr(&g->fifo, f.inst_ptr); 1534 ch = gk20a_refch_from_inst_ptr(g, f.inst_ptr);
1535 referenced_channel = ch; 1535 referenced_channel = ch;
1536 } 1536 }
1537 1537