diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-06-26 06:44:55 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-05 03:38:08 -0400 |
commit | 84db72a21ce4076a66acbb936b5a6dabf39c7ee2 (patch) | |
tree | f37edc1a310d32270ed3f23efad59da7879a27e8 /drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |
parent | 26fe0fbc92bca183f4e543d45f5fc074d136eba1 (diff) |
gpu: nvgpu: add HAL to get offset in gpccs segment
In gr_gk20a_find_priv_offset_in_buffer() we right now calculate
offset of a register in gpccs segment based on register address type
Separate out sequence to find offset in gpccs segment and move it to new API
gr_gk20a_get_offset_in_gpccs_segment()
Introduce new HAL gops.gr.get_offset_in_gpccs_segment() and set above API
to this HAL
Call HAL from gr_gk20a_find_priv_offset_in_buffer() instead of calling direct
API
Jira NVGPUT-118
Change-Id: I0df798456cf63e3c3a43131f3c4ca7990b89ede0
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1761669
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index 5c210519..349548cd 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -235,6 +235,8 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
235 | .alloc_global_ctx_buffers = gr_gk20a_alloc_global_ctx_buffers, | 235 | .alloc_global_ctx_buffers = gr_gk20a_alloc_global_ctx_buffers, |
236 | .map_global_ctx_buffers = gr_gk20a_map_global_ctx_buffers, | 236 | .map_global_ctx_buffers = gr_gk20a_map_global_ctx_buffers, |
237 | .commit_global_ctx_buffers = gr_gk20a_commit_global_ctx_buffers, | 237 | .commit_global_ctx_buffers = gr_gk20a_commit_global_ctx_buffers, |
238 | .get_offset_in_gpccs_segment = | ||
239 | gr_gk20a_get_offset_in_gpccs_segment, | ||
238 | }, | 240 | }, |
239 | .fb = { | 241 | .fb = { |
240 | .reset = fb_gk20a_reset, | 242 | .reset = fb_gk20a_reset, |