diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 7be4383b..2dd4ccf5 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -251,6 +251,8 @@ struct vm_gk20a { | |||
251 | 251 | ||
252 | u32 big_page_size; | 252 | u32 big_page_size; |
253 | 253 | ||
254 | bool userspace_managed; | ||
255 | |||
254 | const struct gk20a_mmu_level *mmu_levels; | 256 | const struct gk20a_mmu_level *mmu_levels; |
255 | 257 | ||
256 | struct kref ref; | 258 | struct kref ref; |
@@ -586,7 +588,8 @@ int gk20a_vm_free_va(struct vm_gk20a *vm, | |||
586 | /* vm-as interface */ | 588 | /* vm-as interface */ |
587 | struct nvgpu_as_alloc_space_args; | 589 | struct nvgpu_as_alloc_space_args; |
588 | struct nvgpu_as_free_space_args; | 590 | struct nvgpu_as_free_space_args; |
589 | int gk20a_vm_alloc_share(struct gk20a_as_share *as_share, u32 flags); | 591 | int gk20a_vm_alloc_share(struct gk20a_as_share *as_share, u32 big_page_size, |
592 | u32 flags); | ||
590 | int gk20a_vm_release_share(struct gk20a_as_share *as_share); | 593 | int gk20a_vm_release_share(struct gk20a_as_share *as_share); |
591 | int gk20a_vm_alloc_space(struct gk20a_as_share *as_share, | 594 | int gk20a_vm_alloc_space(struct gk20a_as_share *as_share, |
592 | struct nvgpu_as_alloc_space_args *args); | 595 | struct nvgpu_as_alloc_space_args *args); |
@@ -621,6 +624,7 @@ int gk20a_init_vm(struct mm_gk20a *mm, | |||
621 | u64 kernel_reserved, | 624 | u64 kernel_reserved, |
622 | u64 aperture_size, | 625 | u64 aperture_size, |
623 | bool big_pages, | 626 | bool big_pages, |
627 | bool userspace_managed, | ||
624 | char *name); | 628 | char *name); |
625 | void gk20a_deinit_vm(struct vm_gk20a *vm); | 629 | void gk20a_deinit_vm(struct vm_gk20a *vm); |
626 | 630 | ||