From 760f8dd7fbbfaee7607d10c38fe013f9cb069cd7 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 31 Oct 2017 13:07:08 +0200 Subject: gpu: nvgpu: drop user callback support in CE Simplify the copyengine code by deleting support for the ce_event_callback feature that has never been used. Similarly, create a channel without the finish callback to get rid of that Linux dependency, and delete the finish callback function as it now serves no purpose. Delete also the submitted_seq_number and completed_seq_number fields that are only written to. Jira NVGPU-259 Change-Id: I02d15bdcb546f4dd8895a6bfb5130caf88a104e2 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1589320 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade Reviewed-by: Alex Waterman Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/mm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/common/mm') diff --git a/drivers/gpu/nvgpu/common/mm/mm.c b/drivers/gpu/nvgpu/common/mm/mm.c index cb7c443d..73af31c9 100644 --- a/drivers/gpu/nvgpu/common/mm/mm.c +++ b/drivers/gpu/nvgpu/common/mm/mm.c @@ -259,12 +259,11 @@ void nvgpu_init_mm_ce_context(struct gk20a *g) #if defined(CONFIG_GK20A_VIDMEM) if (g->mm.vidmem.size && (g->mm.vidmem.ce_ctx_id == (u32)~0)) { g->mm.vidmem.ce_ctx_id = - gk20a_ce_create_context_with_cb(g, + gk20a_ce_create_context(g, gk20a_fifo_get_fast_ce_runlist_id(g), -1, -1, - -1, - NULL); + -1); if (g->mm.vidmem.ce_ctx_id == (u32)~0) nvgpu_err(g, -- cgit v1.2.2