diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-06-17 08:45:47 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-07-06 06:34:32 -0400 |
commit | ca9cb9715407d5e86228cf1b26e83b8dd6115385 (patch) | |
tree | 12ded64339406fd95d0eb679cbad433302366b49 /drivers/gpu/nvgpu | |
parent | 4e476b2f9a4d877f105139b14bcc3f682a97df45 (diff) |
gpu: nvgpu: gv11x: support in-kernel vidmem mappings
Propagate the buffer aperture flag in gk20a_locked_gmmu_map up so that
buffers represented as a mem_desc and present in vidmem can be mapped to
gpu.
JIRA DNVGPU-18
JIRA DNVGPU-76
Change-Id: I67d476b2c1b84218217ef203e429fb5e8a33adc7
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1169297
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index 59d5569c..a23c5e8c 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -779,7 +779,8 @@ int gr_gv11b_alloc_buffer(struct vm_gk20a *vm, size_t size, | |||
779 | size, | 779 | size, |
780 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, | 780 | NVGPU_MAP_BUFFER_FLAGS_CACHEABLE_TRUE, |
781 | gk20a_mem_flag_none, | 781 | gk20a_mem_flag_none, |
782 | false); | 782 | false, |
783 | mem->aperture); | ||
783 | 784 | ||
784 | if (!mem->gpu_va) { | 785 | if (!mem->gpu_va) { |
785 | err = -ENOMEM; | 786 | err = -ENOMEM; |