From 5855fe26cb401d6d139b930ab48bb1106301585f Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 14 Oct 2016 08:57:05 -0700 Subject: gpu: nvgpu: Do not post events to unbound channels Change-Id: Ia1157198aad248e12e94823eb9f273497c724b2c Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1248366 Tested-by: Sachit Kadle Reviewed-by: David Martinez Nieto GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.c') diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c index 07ad322a..a8934035 100644 --- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c @@ -32,7 +32,6 @@ static void channel_gm20b_bind(struct channel_gk20a *c) gk20a_dbg_info("bind channel %d inst ptr 0x%08x", c->hw_chid, inst_ptr); - c->bound = true; gk20a_writel(g, ccsr_channel_inst_r(c->hw_chid), ccsr_channel_inst_ptr_f(inst_ptr) | @@ -45,6 +44,8 @@ static void channel_gm20b_bind(struct channel_gk20a *c) (gk20a_readl(g, ccsr_channel_r(c->hw_chid)) & ~ccsr_channel_enable_set_f(~0)) | ccsr_channel_enable_set_true_f()); + wmb(); + atomic_set(&c->bound, true); } static inline u32 gm20b_engine_id_to_mmu_id(struct gk20a *g, u32 engine_id) -- cgit v1.2.2