From 387ecf8a6360f463a129ab569aaef921fe0a2b0e Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Wed, 18 Oct 2017 11:40:46 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1581432 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.c') 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, return 0; } -void gv11b_restore_context_header(struct gk20a *g, - struct nvgpu_mem *ctxheader) -{ - u32 va_lo, va_hi; - struct gr_gk20a *gr = &g->gr; - - va_hi = nvgpu_mem_rd(g, ctxheader, - ctxsw_prog_main_image_context_buffer_ptr_hi_o()); - va_lo = nvgpu_mem_rd(g, ctxheader, - ctxsw_prog_main_image_context_buffer_ptr_o()); - nvgpu_mem_wr_n(g, ctxheader, 0, - gr->ctx_vars.local_golden_image, - gr->ctx_vars.golden_image_size); - nvgpu_mem_wr(g, ctxheader, - ctxsw_prog_main_image_context_buffer_ptr_hi_o(), va_hi); - nvgpu_mem_wr(g, ctxheader, - ctxsw_prog_main_image_context_buffer_ptr_o(), va_lo); -} void gr_gv11b_write_zcull_ptr(struct gk20a *g, struct nvgpu_mem *mem, u64 gpu_va) { -- cgit v1.2.2