summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index b4589eaa..ad69cd79 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -3272,7 +3272,10 @@ u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g)
3272struct channel_gk20a *gk20a_fifo_channel_from_hw_chid(struct gk20a *g, 3272struct channel_gk20a *gk20a_fifo_channel_from_hw_chid(struct gk20a *g,
3273 u32 hw_chid) 3273 u32 hw_chid)
3274{ 3274{
3275 return g->fifo.channel + hw_chid; 3275 if (hw_chid != FIFO_INVAL_CHANNEL_ID)
3276 return g->fifo.channel + hw_chid;
3277 else
3278 return NULL;
3276} 3279}
3277 3280
3278#ifdef CONFIG_DEBUG_FS 3281#ifdef CONFIG_DEBUG_FS