From 8efe596b01972c4efd39e709d51bd2e88a62d43f Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Wed, 17 May 2017 20:05:28 -0700 Subject: gpu: nvgpu: implement chip specific fb cbc_init Add function pointer in fb to add chip specific cbc init. GPUT19X-70 Change-Id: I12f73945d99498de965a671fd8e258b5c95bbabe Signed-off-by: seshendra Gadagottu Reviewed-on: http://git-master/r/1484524 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 1 + drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index a02215d2..2ede539e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -382,6 +382,7 @@ struct gpu_ops { } gr; struct { void (*init_hw)(struct gk20a *g); + void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr); void (*init_fs_state)(struct gk20a *g); void (*reset)(struct gk20a *g); void (*init_uncompressed_kind_map)(struct gk20a *g); diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index b2ae77c3..462af65f 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -4828,6 +4828,9 @@ static int gk20a_init_gr_setup_hw(struct gk20a *g) if (g->ops.ltc.init_cbc) g->ops.ltc.init_cbc(g, gr); + if (g->ops.fb.init_cbc) + g->ops.fb.init_cbc(g, gr); + /* load ctx init */ for (i = 0; i < sw_ctx_load->count; i++) gk20a_writel(g, sw_ctx_load->l[i].addr, -- cgit v1.2.2