]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Reinstate the mmap ioctl for some platforms
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 24 Jun 2021 11:29:14 +0000 (13:29 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 25 Jun 2021 09:08:56 +0000 (10:08 +0100)
commit06b5ecc88f94dcc38e300bba427d9441ec48a04b
tree8219a1c42fe2a9e7b87705b96a97f37b67a22e2f
parenta090d69412a18c3920b912dd0ad89830e760d27b
drm/i915: Reinstate the mmap ioctl for some platforms

Reinstate the mmap ioctl for all current integrated platforms.
The intention was really to have it disabled for discrete graphics
where we enforce a single mmap mode.

This was reported to break ADL-P with the media stack, which was not the
intention. Although longer term we do still plan to sunset this ioctl
even for integrated, in favour of using mmap_offset instead.

Fixes: a0d80d262911 ("drm/i915: Disable mmap ioctl for gen12+")
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210624112914.311984-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c