]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Wrap vm_mmap() around GEM objects
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Nov 2019 18:06:00 +0000 (18:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Nov 2019 21:22:58 +0000 (21:22 +0000)
commit6fedafacae1b951af104d862888a446b6c3f3a39
treed13cb6ec4de5ee5c68c2b71c4bf55810de1cafde
parent85ca528ed79ca8e8c6d0505dceaa081768dce300
drm/i915/selftests: Wrap vm_mmap() around GEM objects

Provide a utility function to create a vma corresponding to an mmap() of
our device. And use it to exercise the equivalent of userspace
performing a GTT mmap of our objects.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191107180601.30815-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c
drivers/gpu/drm/i915/selftests/igt_mmap.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/igt_mmap.h [new file with mode: 0644]