commit | 8e9c241b8522576b7e6cf10aa787b4e57aa19f8d | [log] [tgz] |
---|---|---|
author | Kristian H. Kristensen <[email protected]> | Thu Nov 19 19:20:04 2020 +0000 |
committer | Commit Bot <[email protected]> | Thu Dec 10 23:33:02 2020 +0000 |
tree | d29f0573b76014f1e6b500413f31e7b5fe469b1c | |
parent | dba19879667c4b71116f455315010d3b90539844 [diff] |
i915: Fall back to GEM_MMAP_GTT if GEM_MMAP fails DRM_IOCTL_I915_GEM_MMAP mmaps the underlying shm file and returns a user space address directly, ie, doesn't go through mmap. If we try that on a dma-buf that doesn't have a shm file, i915.ko returns ENXIO. Fall through to DRM_IOCTL_I915_GEM_MMAP_GTT in that case, which will mmap on the drm fd instead. BUG=b:167236452 TEST=dmabuf_test from drm-tests passes Change-Id: I41cd0b0150d2d489bd055e23f4495cd13624b831 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/2561378 Tested-by: Kristian H. Kristensen <[email protected]> Tested-by: Ilja H. Friedel <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]> Reviewed-by: Ilja H. Friedel <[email protected]> Commit-Queue: Ilja H. Friedel <[email protected]>