mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
85cb10c313
commit
93ba29c5b5
@@ -1051,10 +1051,10 @@ int gk20a_init_fifo_support(struct gk20a *g)
|
||||
}
|
||||
|
||||
/* return with a reference to the channel, caller must put it back */
|
||||
static struct channel_gk20a *
|
||||
channel_from_inst_ptr(struct fifo_gk20a *f, u64 inst_ptr)
|
||||
struct channel_gk20a *
|
||||
gk20a_refch_from_inst_ptr(struct gk20a *g, u64 inst_ptr)
|
||||
{
|
||||
struct gk20a *g = f->g;
|
||||
struct fifo_gk20a *f = &g->fifo;
|
||||
unsigned int ci;
|
||||
if (unlikely(!f->channel))
|
||||
return NULL;
|
||||
@@ -1531,7 +1531,7 @@ static bool gk20a_fifo_handle_mmu_fault(
|
||||
}
|
||||
} else {
|
||||
/* read channel based on instruction pointer */
|
||||
ch = channel_from_inst_ptr(&g->fifo, f.inst_ptr);
|
||||
ch = gk20a_refch_from_inst_ptr(g, f.inst_ptr);
|
||||
referenced_channel = ch;
|
||||
}
|
||||
|
||||
|
||||
@@ -331,4 +331,6 @@ void gk20a_dump_eng_status(struct gk20a *g,
|
||||
const char *gk20a_decode_ccsr_chan_status(u32 index);
|
||||
const char *gk20a_decode_pbdma_chan_eng_ctx_status(u32 index);
|
||||
|
||||
struct channel_gk20a *gk20a_refch_from_inst_ptr(struct gk20a *g, u64 inst_ptr);
|
||||
|
||||
#endif /*__GR_GK20A_H__*/
|
||||
|
||||
Reference in New Issue
Block a user