]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 7 Apr 2022 16:18:39 +0000 (09:18 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 8 Apr 2022 19:02:32 +0000 (12:02 -0700)
commit3ea15c4a85406dfd612925deddb79081736ad096
tree3c2ed6795442ba1a5ed325dabe52a45c0d627029
parentd35d48a70650f334a27ed96f4dd1b48cf7c44729
drm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL

The intent of the version check in the mmap ioctl was to maintain
support for existing platforms (i.e., ADL/RPL and earlier), but drop
support on all future igpu platforms.  As we've seen on the dgpu side,
the hardware teams are using a more fine-grained numbering system for IP
version numbers these days, so it's possible the version number
associated with our next igpu could be some form of "12.xx" rather than
13 or higher.  Comparing against the full ver.release number will ensure
the intent of the check is maintained no matter what numbering the
hardware teams settle on.

Fixes: 06b5ecc88f94 ("drm/i915: Reinstate the mmap ioctl for some platforms")
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220407161839.1073443-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c