From 43c340de5429c7e50db20dfd46344bfe3c4119ac Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 7 Jun 2018 12:05:43 -0700 Subject: gpu: nvgpu: add HALs to allocate/map/commit global context buffers Add below new HALs to allocate/map/commit global context buffers gops.gr.alloc_global_ctx_buffers() gops.gr.map_global_ctx_buffers() gops.gr.commit_global_ctx_buffers() Set these HALs for all the supported GPUs We right now re-use below APIs to set these HALs gr_gk20a_alloc_global_ctx_buffers() gr_gk20a_map_global_ctx_buffers() gr_gk20a_commit_global_ctx_buffers() Jira NVGPUT-27 Change-Id: I975a54e8d1716af057f982d543787748d35a256e Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1743362 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 5 +++++ 1 file changed, 5 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 8b7315f6..a2b2e53f 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -476,6 +476,11 @@ struct gpu_ops { u32 *priv_addr_table_index); u32 (*fecs_ctxsw_mailbox_size)(void); int (*init_sw_bundle64)(struct gk20a *g); + int (*alloc_global_ctx_buffers)(struct gk20a *g); + int (*map_global_ctx_buffers)(struct gk20a *g, + struct channel_gk20a *c); + int (*commit_global_ctx_buffers)(struct gk20a *g, + struct channel_gk20a *c, bool patch); } gr; struct { void (*init_hw)(struct gk20a *g); -- cgit v1.2.2