drm-tests: use dma-buf mmap synchronization ioctls.

If the hardware doesn't gurantee CPU and GPU cache coherence (e.g. Atom
chipset), then userspace might need some sort of cache coherency mechanism.

The DMA-buf sync ioctl is used to maintain coherency when CPU and GPU are being
acessing the dma-buf at the same time.
https://lists.freedesktop.org/archives/dri-devel/2015-December/097271.html

TEST=mmap_test on Pixel 2015
BUG=chromium:356871

Change-Id: Ic8c204f5ce8113d1573ad1d7d4a6e88d86f01b2f
Reviewed-on: https://chromium-review.googlesource.com/456509
Commit-Ready: Dongseong Hwang <dongseong.hwang@intel.com>
Tested-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
1 file changed