diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c index 8130b7d0..fc1f7011 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c | |||
@@ -578,27 +578,6 @@ static int nvgpu_gpu_ioctl_l2_fb_ops(struct gk20a *g, | |||
578 | return err; | 578 | return err; |
579 | } | 579 | } |
580 | 580 | ||
581 | /* Invalidate i-cache for kepler & maxwell */ | ||
582 | static int nvgpu_gpu_ioctl_inval_icache( | ||
583 | struct gk20a *g, | ||
584 | struct nvgpu_gpu_inval_icache_args *args) | ||
585 | { | ||
586 | struct channel_gk20a *ch; | ||
587 | int err; | ||
588 | |||
589 | ch = gk20a_get_channel_from_file(args->channel_fd); | ||
590 | if (!ch) | ||
591 | return -EINVAL; | ||
592 | |||
593 | /* Take the global lock, since we'll be doing global regops */ | ||
594 | nvgpu_mutex_acquire(&g->dbg_sessions_lock); | ||
595 | err = g->ops.gr.inval_icache(g, ch); | ||
596 | nvgpu_mutex_release(&g->dbg_sessions_lock); | ||
597 | |||
598 | gk20a_channel_put(ch); | ||
599 | return err; | ||
600 | } | ||
601 | |||
602 | static int nvgpu_gpu_ioctl_set_mmu_debug_mode( | 581 | static int nvgpu_gpu_ioctl_set_mmu_debug_mode( |
603 | struct gk20a *g, | 582 | struct gk20a *g, |
604 | struct nvgpu_gpu_mmu_debug_mode_args *args) | 583 | struct nvgpu_gpu_mmu_debug_mode_args *args) |
@@ -1824,10 +1803,6 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg | |||
1824 | err = nvgpu_gpu_ioctl_l2_fb_ops(g, | 1803 | err = nvgpu_gpu_ioctl_l2_fb_ops(g, |
1825 | (struct nvgpu_gpu_l2_fb_args *)buf); | 1804 | (struct nvgpu_gpu_l2_fb_args *)buf); |
1826 | break; | 1805 | break; |
1827 | case NVGPU_GPU_IOCTL_INVAL_ICACHE: | ||
1828 | err = gr_gk20a_elpg_protected_call(g, | ||
1829 | nvgpu_gpu_ioctl_inval_icache(g, (struct nvgpu_gpu_inval_icache_args *)buf)); | ||
1830 | break; | ||
1831 | 1806 | ||
1832 | case NVGPU_GPU_IOCTL_SET_MMUDEBUG_MODE: | 1807 | case NVGPU_GPU_IOCTL_SET_MMUDEBUG_MODE: |
1833 | err = nvgpu_gpu_ioctl_set_mmu_debug_mode(g, | 1808 | err = nvgpu_gpu_ioctl_set_mmu_debug_mode(g, |