From ef95e43d973fb2200857c9165b24d8260b2e219a Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Wed, 16 Nov 2016 10:25:20 -0800 Subject: gpu: nvgpu: chip specific init_inst_block Add function pointer to add chip specific init_inst_block. Update this function pointer for gk20a and gm20b. JIRA GV11B-21 Change-Id: I74ca6a8b4d5d1ed36f7b25b7f62361c2789b9540 Signed-off-by: seshendra Gadagottu Reviewed-on: http://git-master/r/1254875 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index dd64e3b2..5539ca62 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -579,6 +579,8 @@ struct gpu_ops { u32 flags); int (*bar1_bind)(struct gk20a *g, struct mem_desc *bar1_inst); size_t (*get_vidmem_size)(struct gk20a *g); + void (*init_inst_block)(struct mem_desc *inst_block, + struct vm_gk20a *vm, u32 big_page_size); } mm; struct { int (*init_therm_setup_hw)(struct gk20a *g); -- cgit v1.2.2