diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-06-07 15:05:43 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:08 -0400 |
commit | 43c340de5429c7e50db20dfd46344bfe3c4119ac (patch) | |
tree | fd5d345acc0cf44bf5ccc831453a1b4d7bfa430a /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 37160e6a77c8bdb76bf5a5021b01ffa7829f755a (diff) |
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 <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1743362
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
476 | u32 *priv_addr_table_index); | 476 | u32 *priv_addr_table_index); |
477 | u32 (*fecs_ctxsw_mailbox_size)(void); | 477 | u32 (*fecs_ctxsw_mailbox_size)(void); |
478 | int (*init_sw_bundle64)(struct gk20a *g); | 478 | int (*init_sw_bundle64)(struct gk20a *g); |
479 | int (*alloc_global_ctx_buffers)(struct gk20a *g); | ||
480 | int (*map_global_ctx_buffers)(struct gk20a *g, | ||
481 | struct channel_gk20a *c); | ||
482 | int (*commit_global_ctx_buffers)(struct gk20a *g, | ||
483 | struct channel_gk20a *c, bool patch); | ||
479 | } gr; | 484 | } gr; |
480 | struct { | 485 | struct { |
481 | void (*init_hw)(struct gk20a *g); | 486 | void (*init_hw)(struct gk20a *g); |