summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-05-31 19:42:22 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-06-13 10:38:14 -0400
commit5f3648137191513e3f98234b47251c16edd18ce7 (patch)
tree7634a7f2b0d7e21d947d16a637e4b6e29dbe1960 /drivers/gpu/nvgpu/gk20a/channel_gk20a.c
parent823ba424568848c1863c6f4b798bbbf0428a9a05 (diff)
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 <alexw@nvidia.com> Reviewed-on: http://git-master/r/1161859 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c9
1 files changed, 0 insertions, 9 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,
1361 } 1361 }
1362 1362
1363 e->size = orig_size; 1363 e->size = orig_size;
1364 e->gp_get = c->gpfifo.get;
1365 e->gp_put = c->gpfifo.put;
1366 e->gp_wrap = c->gpfifo.wrap;
1367 e->mem = &q->mem; 1364 e->mem = &q->mem;
1368 1365
1369 /* if we have increased size to skip free space in the end, set put 1366 /* 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,
2163 2160
2164 c->gpfifo.put = (c->gpfifo.put + 1) & 2161 c->gpfifo.put = (c->gpfifo.put + 1) &
2165 (c->gpfifo.entry_num - 1); 2162 (c->gpfifo.entry_num - 1);
2166
2167 /* save gp_put */
2168 wait_cmd->gp_put = c->gpfifo.put;
2169 } 2163 }
2170 2164
2171 /* 2165 /*
@@ -2250,9 +2244,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
2250 2244
2251 c->gpfifo.put = (c->gpfifo.put + 1) & 2245 c->gpfifo.put = (c->gpfifo.put + 1) &
2252 (c->gpfifo.entry_num - 1); 2246 (c->gpfifo.entry_num - 1);
2253
2254 /* save gp_put */
2255 incr_cmd->gp_put = c->gpfifo.put;
2256 } 2247 }
2257 2248
2258 mutex_lock(&c->last_submit.fence_lock); 2249 mutex_lock(&c->last_submit.fence_lock);