]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: Helper for no kernel mapping alloc
authorTerje Bergstrom <tbergstrom@nvidia.com>
Sat, 21 Mar 2015 15:47:41 +0000 (08:47 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Tue, 24 Mar 2015 18:41:28 +0000 (11:41 -0700)
commit8ad6ece6714d45a4105517af291a8c2f05556f97
tree5cafb397d4978b8b7cfb678570be45fbb70e9ebe
parent57d3acd6772967c3473a2105c33fa616d3720271
gpu: nvgpu: Helper for no kernel mapping alloc

Reduce amount of duplicate code around memory allocation by
introducing a variant of allocation helper that does not map the
allocated buffer to kernel address space.

NO_KERNEL_MAPPING allocations return a struct page **, so store the
results of allocation in a new field of mem_desc.

Bug 1605769

Change-Id: Ib760b9e6d34b229b04d1fb4f3abf10648670fc69
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/721029
drivers/gpu/nvgpu/gk20a/mm_gk20a.c
drivers/gpu/nvgpu/gk20a/mm_gk20a.h