diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 9 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 3 |
2 files changed, 0 insertions, 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, | |||
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); |
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 { | |||
176 | u64 gva; | 176 | u64 gva; |
177 | u32 get; /* start of entry in queue */ | 177 | u32 get; /* start of entry in queue */ |
178 | u32 size; /* in words */ | 178 | u32 size; /* in words */ |
179 | u32 gp_get; /* gp_get when submitting last priv cmd */ | ||
180 | u32 gp_put; /* gp_put when submitting last priv cmd */ | ||
181 | u32 gp_wrap; /* wrap when submitting last priv cmd */ | ||
182 | struct list_head list; /* node for lists */ | 179 | struct list_head list; /* node for lists */ |
183 | }; | 180 | }; |
184 | 181 | ||