diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-07-07 04:09:32 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-07-08 07:20:04 -0400 |
commit | 27b8b2a633a3a85c6ada7310ac81cebe519b950d (patch) | |
tree | 762681f86773378a01bc89b9fe6505988732d27b /drivers/gpu | |
parent | f4035d17a39ac356f3cbf8aecc2ba4c679dd6fb3 (diff) |
gpu: nvgpu: use vidmem by default in gmmu_alloc variants
For devices that have vidmem available, use the vidmem allocator in
gk20a_gmmu_alloc{,attr,_map,_map_attr}. For others, use sysmem.
Because all of the buffers haven't been tested to work in vidmem yet,
rename calls to gk20a_gmmu_alloc{,attr,_map,_map_attr} to have _sys at
the end to declare explicitly that vidmem is used. Enabling vidmem for
each now is a matter of removing "_sys" from the function call.
Jira DNVGPU-18
Change-Id: Ieb13c21c774380ac0be9987e177b4adc0a647abb
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1176810
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index c5d2aa56..831b92f5 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -770,7 +770,7 @@ int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, | |||
770 | 770 | ||
771 | gk20a_dbg_fn(""); | 771 | gk20a_dbg_fn(""); |
772 | 772 | ||
773 | err = gk20a_gmmu_alloc_attr(vm->mm->g, 0, size, mem); | 773 | err = gk20a_gmmu_alloc_sys(vm->mm->g, size, mem); |
774 | if (err) | 774 | if (err) |
775 | return err; | 775 | return err; |
776 | 776 | ||