From 5f3648137191513e3f98234b47251c16edd18ce7 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Tue, 31 May 2016 16:42:22 -0700 Subject: gpu: nvgpu: Remove dead priv_cmdbuf code Remove the gp_get and gp_put pointers from the priv_cmdbuf code. These pointers appear to track the position of th the priv_cmdbuf in the gp_fifo. However, these pointers are not used for anything nor are they needed for anything in the future. This code appears to be a relic left over from the past. Change-Id: Ibed1a6d51fa0cac12c5e0429760e8e2f611fc899 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1161859 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 9 --------- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 02ec5835..0a6a40a8 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -1361,9 +1361,6 @@ int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 orig_size, } e->size = orig_size; - e->gp_get = c->gpfifo.get; - e->gp_put = c->gpfifo.put; - e->gp_wrap = c->gpfifo.wrap; e->mem = &q->mem; /* if we have increased size to skip free space in the end, set put @@ -2163,9 +2160,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, c->gpfifo.put = (c->gpfifo.put + 1) & (c->gpfifo.entry_num - 1); - - /* save gp_put */ - wait_cmd->gp_put = c->gpfifo.put; } /* @@ -2250,9 +2244,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, c->gpfifo.put = (c->gpfifo.put + 1) & (c->gpfifo.entry_num - 1); - - /* save gp_put */ - incr_cmd->gp_put = c->gpfifo.put; } mutex_lock(&c->last_submit.fence_lock); diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 590ede71..d1628b07 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -176,9 +176,6 @@ struct priv_cmd_entry { u64 gva; u32 get; /* start of entry in queue */ u32 size; /* in words */ - u32 gp_get; /* gp_get when submitting last priv cmd */ - u32 gp_put; /* gp_put when submitting last priv cmd */ - u32 gp_wrap; /* wrap when submitting last priv cmd */ struct list_head list; /* node for lists */ }; -- cgit v1.2.2