diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_as.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_as.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_as.c b/drivers/gpu/nvgpu/common/linux/ioctl_as.c index 7a24a14f..023f8236 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_as.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_as.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <uapi/linux/nvgpu.h> | 24 | #include <uapi/linux/nvgpu.h> |
25 | 25 | ||
26 | #include <nvgpu/gmmu.h> | 26 | #include <nvgpu/gmmu.h> |
27 | #include <nvgpu/vm_area.h> | ||
27 | 28 | ||
28 | #include "gk20a/gk20a.h" | 29 | #include "gk20a/gk20a.h" |
29 | #include "gk20a/platform_gk20a.h" | 30 | #include "gk20a/platform_gk20a.h" |
@@ -56,7 +57,8 @@ static int gk20a_as_ioctl_alloc_space( | |||
56 | struct nvgpu_as_alloc_space_args *args) | 57 | struct nvgpu_as_alloc_space_args *args) |
57 | { | 58 | { |
58 | gk20a_dbg_fn(""); | 59 | gk20a_dbg_fn(""); |
59 | return gk20a_vm_alloc_space(as_share, args); | 60 | return nvgpu_vm_area_alloc(as_share->vm, args->pages, args->page_size, |
61 | &args->o_a.offset, args->flags); | ||
60 | } | 62 | } |
61 | 63 | ||
62 | static int gk20a_as_ioctl_free_space( | 64 | static int gk20a_as_ioctl_free_space( |
@@ -64,7 +66,7 @@ static int gk20a_as_ioctl_free_space( | |||
64 | struct nvgpu_as_free_space_args *args) | 66 | struct nvgpu_as_free_space_args *args) |
65 | { | 67 | { |
66 | gk20a_dbg_fn(""); | 68 | gk20a_dbg_fn(""); |
67 | return gk20a_vm_free_space(as_share, args); | 69 | return nvgpu_vm_area_free(as_share->vm, args->offset); |
68 | } | 70 | } |
69 | 71 | ||
70 | static int gk20a_as_ioctl_map_buffer_ex( | 72 | static int gk20a_as_ioctl_map_buffer_ex( |