]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: Use sg_alloc_table_for_pages
authorTerje Bergstrom <tbergstrom@nvidia.com>
Thu, 26 Mar 2015 19:47:57 +0000 (12:47 -0700)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Mon, 30 Mar 2015 21:22:47 +0000 (14:22 -0700)
commit030787da3637bfc8dfd7702ab00dc6ddb0e59e41
treeabe07fc81d00e3dbdb3612277d34cb0e2519e05f
parenta09e71b997708494cd60b89b2b0d2e6c4fac1bd8
gpu: nvgpu: Use sg_alloc_table_for_pages

Use sg_alloc_table_for_pages to create sg_table for buffers
allocated with NO_KERNEL_MAPPING. The old code returned always an
sg_table with one chunk. sg_alloc_table_for_pages returns an
sg_table which describes the actual physical chunks of the buffer.

Bug 1605769

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