diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-10-18 14:40:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-20 13:05:40 -0400 |
commit | 387ecf8a6360f463a129ab569aaef921fe0a2b0e (patch) | |
tree | 23aecdd91d5e305dc4d184db9ca60a1d14360538 /drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |
parent | 98b08b413bb5ef082719bf2907629ab00137ec81 (diff) |
gpu: nvgpu: gv1xx: Remove HAL for restore_context_header
gr restore_context_header is not required any more after
enabling per context va mode for subcontext. Cleaning-up
unused function pointers from gv100 and gv11b HAL.
Change-Id: I65cc7d12d3c96726d323defd99726c3e259e7e63
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1581432
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index aac6cba3..154088d6 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -2306,24 +2306,6 @@ int gr_gv11b_commit_global_timeslice(struct gk20a *g, | |||
2306 | return 0; | 2306 | return 0; |
2307 | } | 2307 | } |
2308 | 2308 | ||
2309 | void gv11b_restore_context_header(struct gk20a *g, | ||
2310 | struct nvgpu_mem *ctxheader) | ||
2311 | { | ||
2312 | u32 va_lo, va_hi; | ||
2313 | struct gr_gk20a *gr = &g->gr; | ||
2314 | |||
2315 | va_hi = nvgpu_mem_rd(g, ctxheader, | ||
2316 | ctxsw_prog_main_image_context_buffer_ptr_hi_o()); | ||
2317 | va_lo = nvgpu_mem_rd(g, ctxheader, | ||
2318 | ctxsw_prog_main_image_context_buffer_ptr_o()); | ||
2319 | nvgpu_mem_wr_n(g, ctxheader, 0, | ||
2320 | gr->ctx_vars.local_golden_image, | ||
2321 | gr->ctx_vars.golden_image_size); | ||
2322 | nvgpu_mem_wr(g, ctxheader, | ||
2323 | ctxsw_prog_main_image_context_buffer_ptr_hi_o(), va_hi); | ||
2324 | nvgpu_mem_wr(g, ctxheader, | ||
2325 | ctxsw_prog_main_image_context_buffer_ptr_o(), va_lo); | ||
2326 | } | ||
2327 | void gr_gv11b_write_zcull_ptr(struct gk20a *g, | 2309 | void gr_gv11b_write_zcull_ptr(struct gk20a *g, |
2328 | struct nvgpu_mem *mem, u64 gpu_va) | 2310 | struct nvgpu_mem *mem, u64 gpu_va) |
2329 | { | 2311 | { |