diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/ioctl_as.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_as.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_as.c b/drivers/gpu/nvgpu/os/linux/ioctl_as.c index 6348bb2a..2bf8363a 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_as.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_as.c | |||
@@ -672,6 +672,14 @@ long gk20a_as_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
672 | err = nvgpu_as_dev_ioctl_swap(cmd, as_share, | 672 | err = nvgpu_as_dev_ioctl_swap(cmd, as_share, |
673 | (struct nvgpu_as_swap_buffer_args *)buf); | 673 | (struct nvgpu_as_swap_buffer_args *)buf); |
674 | break; | 674 | break; |
675 | case NVGPU_AS_IOCTL_SWAP_RESET: | ||
676 | // On-disk sector assignment is linear currently, and needs to | ||
677 | // be reset to the start between task systems to avoid disk | ||
678 | // space exhaustion. | ||
679 | // TODO: Support garbage-collection- or callback-driven sector | ||
680 | // reclaiming rather than requiring manual reset. | ||
681 | atomic64_set(&nvgpu_swap_next_sector, 4); | ||
682 | break; | ||
675 | default: | 683 | default: |
676 | err = -ENOTTY; | 684 | err = -ENOTTY; |
677 | break; | 685 | break; |