Use mmap64() for performing the GTT mapping
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Apr 2012 14:47:00 +0000 (15:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Apr 2012 14:47:00 +0000 (15:47 +0100)
commit5ce86f88a0a9b24564a6349a70de5797b814b108
tree7afa570f19234fdb885e6acc82815412ff686713
parent8f6ebd4ac03f7c3c751d4d6bb4096d0285e34517
Use mmap64() for performing the GTT mapping

Although the address space for GTT mappings may only be 32-bits, we need
to use the explicit 64-bit mmap interface so that on a 32-bit platform
the offset we pass is not truncated to 31-bits.

Fixes gem_mmap_offset_exhaustion on 32-bit platforms.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
lib/drmtest.c