summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-24 16:06:37 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-31 18:31:45 -0500
commit8ca1a765ee066b9f04f39c69d8f3678c06557257 (patch)
tree563ba2d6fcc3ebdb4669b7e026b85dfd8ab299f8 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
parentf229149f97248a6725aa66d5ed0c089a10d8e309 (diff)
gpu: nvgpu: Remove NVGPU_IOCTL_GET_BUFFER_INFO
The IOCTL was introduced for making efficient query of buffer identity and size. It was never taken into use, and it adds a dependency to Tegra specific dma_buf API, so remove it. JIRA NVGPU-4 Change-Id: I194d7bb1f54997900a3be8d39c93331befa225c7 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1648001 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
index ebbe7dda..b751a337 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
@@ -753,13 +753,6 @@ static int gk20a_ctrl_vsm_mapping(struct gk20a *g,
753 return err; 753 return err;
754} 754}
755 755
756static int gk20a_ctrl_get_buffer_info(
757 struct gk20a *g, struct nvgpu_gpu_get_buffer_info_args *args)
758{
759 return gk20a_mm_get_buffer_info(dev_from_gk20a(g), args->in.dmabuf_fd,
760 &args->out.id, &args->out.length);
761}
762
763static int nvgpu_gpu_get_cpu_time_correlation_info( 756static int nvgpu_gpu_get_cpu_time_correlation_info(
764 struct gk20a *g, 757 struct gk20a *g,
765 struct nvgpu_gpu_get_cpu_time_correlation_info_args *args) 758 struct nvgpu_gpu_get_cpu_time_correlation_info_args *args)
@@ -1757,11 +1750,6 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg
1757 (struct nvgpu_gpu_vsms_mapping *)buf); 1750 (struct nvgpu_gpu_vsms_mapping *)buf);
1758 break; 1751 break;
1759 1752
1760 case NVGPU_GPU_IOCTL_GET_BUFFER_INFO:
1761 err = gk20a_ctrl_get_buffer_info(g,
1762 (struct nvgpu_gpu_get_buffer_info_args *)buf);
1763 break;
1764
1765 case NVGPU_GPU_IOCTL_GET_CPU_TIME_CORRELATION_INFO: 1753 case NVGPU_GPU_IOCTL_GET_CPU_TIME_CORRELATION_INFO:
1766 err = nvgpu_gpu_get_cpu_time_correlation_info(g, 1754 err = nvgpu_gpu_get_cpu_time_correlation_info(g,
1767 (struct nvgpu_gpu_get_cpu_time_correlation_info_args *)buf); 1755 (struct nvgpu_gpu_get_cpu_time_correlation_info_args *)buf);