diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.h | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hal_gv11b.c | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index 51923636..9be29f45 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -209,7 +209,7 @@ int channel_gv11b_setup_ramfc(struct channel_gk20a *c, | |||
209 | } | 209 | } |
210 | 210 | ||
211 | 211 | ||
212 | static void gv11b_ring_channel_doorbell(struct channel_gk20a *c) | 212 | void gv11b_ring_channel_doorbell(struct channel_gk20a *c) |
213 | { | 213 | { |
214 | struct fifo_gk20a *f = &c->g->fifo; | 214 | struct fifo_gk20a *f = &c->g->fifo; |
215 | u32 hw_chid = f->channel_base + c->chid; | 215 | u32 hw_chid = f->channel_base + c->chid; |
@@ -249,7 +249,7 @@ void gv11b_userd_gp_put(struct gk20a *g, struct channel_gk20a *c) | |||
249 | /* Commit everything to GPU. */ | 249 | /* Commit everything to GPU. */ |
250 | nvgpu_mb(); | 250 | nvgpu_mb(); |
251 | 251 | ||
252 | gv11b_ring_channel_doorbell(c); | 252 | g->ops.fifo.ring_channel_doorbell(c); |
253 | } | 253 | } |
254 | 254 | ||
255 | void channel_gv11b_unbind(struct channel_gk20a *ch) | 255 | void channel_gv11b_unbind(struct channel_gk20a *ch) |
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h index 380db592..9157c300 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h | |||
@@ -123,4 +123,5 @@ u32 gv11b_fifo_get_preempt_timeout(struct gk20a *g); | |||
123 | void gv11b_fifo_init_ramfc_eng_method_buffer(struct gk20a *g, | 123 | void gv11b_fifo_init_ramfc_eng_method_buffer(struct gk20a *g, |
124 | struct channel_gk20a *ch, struct nvgpu_mem *mem); | 124 | struct channel_gk20a *ch, struct nvgpu_mem *mem); |
125 | void gv11b_userd_writeback_config(struct gk20a *g); | 125 | void gv11b_userd_writeback_config(struct gk20a *g); |
126 | void gv11b_ring_channel_doorbell(struct channel_gk20a *c); | ||
126 | #endif | 127 | #endif |
diff --git a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c index ca530aba..47f832a6 100644 --- a/drivers/gpu/nvgpu/gv11b/hal_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/hal_gv11b.c | |||
@@ -560,6 +560,7 @@ static const struct gpu_ops gv11b_ops = { | |||
560 | .handle_ctxsw_timeout = gv11b_fifo_handle_ctxsw_timeout, | 560 | .handle_ctxsw_timeout = gv11b_fifo_handle_ctxsw_timeout, |
561 | .runlist_hw_submit = gk20a_fifo_runlist_hw_submit, | 561 | .runlist_hw_submit = gk20a_fifo_runlist_hw_submit, |
562 | .runlist_wait_pending = gk20a_fifo_runlist_wait_pending, | 562 | .runlist_wait_pending = gk20a_fifo_runlist_wait_pending, |
563 | .ring_channel_doorbell = gv11b_ring_channel_doorbell, | ||
563 | }, | 564 | }, |
564 | .gr_ctx = { | 565 | .gr_ctx = { |
565 | .get_netlist_name = gr_gv11b_get_netlist_name, | 566 | .get_netlist_name = gr_gv11b_get_netlist_name, |