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/gp106 | |
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/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index a525d117..61c6cb0f 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -395,6 +395,9 @@ static const struct gpu_ops gp106_ops = { | |||
395 | gr_gm20b_get_pmm_per_chiplet_offset, | 395 | gr_gm20b_get_pmm_per_chiplet_offset, |
396 | .split_fbpa_broadcast_addr = gr_gk20a_split_fbpa_broadcast_addr, | 396 | .split_fbpa_broadcast_addr = gr_gk20a_split_fbpa_broadcast_addr, |
397 | .fecs_ctxsw_mailbox_size = gr_fecs_ctxsw_mailbox__size_1_v, | 397 | .fecs_ctxsw_mailbox_size = gr_fecs_ctxsw_mailbox__size_1_v, |
398 | .alloc_global_ctx_buffers = gr_gk20a_alloc_global_ctx_buffers, | ||
399 | .map_global_ctx_buffers = gr_gk20a_map_global_ctx_buffers, | ||
400 | .commit_global_ctx_buffers = gr_gk20a_commit_global_ctx_buffers, | ||
398 | }, | 401 | }, |
399 | .fb = { | 402 | .fb = { |
400 | .reset = gp106_fb_reset, | 403 | .reset = gp106_fb_reset, |