diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-08-29 16:00:22 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-09-07 23:07:16 -0400 |
commit | bb457e675ed2c5dde45e2e89e3e472833444d3f9 (patch) | |
tree | 4fee7ce5c48cb6ba800c38ab5a4a520078bb2a22 /drivers/gpu/nvgpu/common/linux/ioctl_as.c | |
parent | d2dce545bb08148171457424a172c8d66a111005 (diff) |
gpu: nvgpu: Remove mapping of comptags to user VA
Remove the kernel feature to map compbit backing store areas to GPU VA.
The feature is not used, and the relevant user space code is getting
removed, too.
Change-Id: I94f8bb9145da872694fdc5d3eb3c1365b2f47945
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1547898
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_as.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_as.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_as.c b/drivers/gpu/nvgpu/common/linux/ioctl_as.c index 273024bd..6fd0a3d2 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_as.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_as.c | |||
@@ -227,31 +227,6 @@ static int gk20a_as_ioctl_get_va_regions( | |||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
229 | 229 | ||
230 | static int gk20a_as_ioctl_get_buffer_compbits_info( | ||
231 | struct gk20a_as_share *as_share, | ||
232 | struct nvgpu_as_get_buffer_compbits_info_args *args) | ||
233 | { | ||
234 | gk20a_dbg_fn(""); | ||
235 | return nvgpu_vm_get_compbits_info(as_share->vm, | ||
236 | args->mapping_gva, | ||
237 | &args->compbits_win_size, | ||
238 | &args->compbits_win_ctagline, | ||
239 | &args->mapping_ctagline, | ||
240 | &args->flags); | ||
241 | } | ||
242 | |||
243 | static int gk20a_as_ioctl_map_buffer_compbits( | ||
244 | struct gk20a_as_share *as_share, | ||
245 | struct nvgpu_as_map_buffer_compbits_args *args) | ||
246 | { | ||
247 | gk20a_dbg_fn(""); | ||
248 | return nvgpu_vm_map_compbits(as_share->vm, | ||
249 | args->mapping_gva, | ||
250 | &args->compbits_win_gva, | ||
251 | &args->mapping_iova, | ||
252 | args->flags); | ||
253 | } | ||
254 | |||
255 | int gk20a_as_dev_open(struct inode *inode, struct file *filp) | 230 | int gk20a_as_dev_open(struct inode *inode, struct file *filp) |
256 | { | 231 | { |
257 | struct nvgpu_os_linux *l; | 232 | struct nvgpu_os_linux *l; |
@@ -364,14 +339,6 @@ long gk20a_as_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
364 | err = gk20a_as_ioctl_get_va_regions(as_share, | 339 | err = gk20a_as_ioctl_get_va_regions(as_share, |
365 | (struct nvgpu_as_get_va_regions_args *)buf); | 340 | (struct nvgpu_as_get_va_regions_args *)buf); |
366 | break; | 341 | break; |
367 | case NVGPU_AS_IOCTL_GET_BUFFER_COMPBITS_INFO: | ||
368 | err = gk20a_as_ioctl_get_buffer_compbits_info(as_share, | ||
369 | (struct nvgpu_as_get_buffer_compbits_info_args *)buf); | ||
370 | break; | ||
371 | case NVGPU_AS_IOCTL_MAP_BUFFER_COMPBITS: | ||
372 | err = gk20a_as_ioctl_map_buffer_compbits(as_share, | ||
373 | (struct nvgpu_as_map_buffer_compbits_args *)buf); | ||
374 | break; | ||
375 | case NVGPU_AS_IOCTL_MAP_BUFFER_BATCH: | 342 | case NVGPU_AS_IOCTL_MAP_BUFFER_BATCH: |
376 | err = gk20a_as_ioctl_map_buffer_batch(as_share, | 343 | err = gk20a_as_ioctl_map_buffer_batch(as_share, |
377 | (struct nvgpu_as_map_buffer_batch_args *)buf); | 344 | (struct nvgpu_as_map_buffer_batch_args *)buf); |