summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/bitmap_allocator.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-12-21 14:14:19 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-31 19:23:07 -0500
commit793791ebb7ddbb34f0aaf3e300b24ed24aa76661 (patch)
tree4f24f255fb8df2b0bd1b52a752b4a86f8d137d61 /drivers/gpu/nvgpu/common/mm/bitmap_allocator.c
parentdddeee54b640e4c28866354b7f2e4edd907e3344 (diff)
gpu: nvgpu: use map_offset for PTE size computation
Make sure that map_offset is set to the fixed map address or 0) before determining PTE size. Then use map_offset instead of offset_align for computing the PTE size since offset_align could be either an alignment ora fixed mapping offset. Also is the minimum of the buffer size and the buffer alignment for computing page size. This is necessary is the GMMU is doing page gathering (i.e the buffer does not appear as a continguous IOMMU range to the GPU). Is such cases a large page sized buffer may be made up of a bunch of discontiguous 4k pages. Bug 1396644 Bug 1729947 Change-Id: I6464ee6a4ccab2495ccb31cd1ddf1db467d2b215 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1271359 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/bitmap_allocator.c')
0 files changed, 0 insertions, 0 deletions