drm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL
authorjsg <jsg@openbsd.org>
Thu, 21 Apr 2022 10:01:24 +0000 (10:01 +0000)
committerjsg <jsg@openbsd.org>
Thu, 21 Apr 2022 10:01:24 +0000 (10:01 +0000)
From Matt Roper
14785927a1d46817b1648806ed5124be049bea75 in linux 5.15.y/5.15.35
1acb34e7dd7720a1fff00cbd4d000ec3219dc9d6 in mainline linux

sys/dev/pci/drm/i915/gem/i915_gem_mman.c

index 330cb25..40ca9f6 100644 (file)
@@ -78,7 +78,7 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
         * mmap ioctl is disallowed for all discrete platforms,
         * and for all platforms with GRAPHICS_VER > 12.
         */
-       if (IS_DGFX(i915) || GRAPHICS_VER(i915) > 12)
+       if (IS_DGFX(i915) || GRAPHICS_VER_FULL(i915) > IP_VER(12, 0))
                return -EOPNOTSUPP;
 
        if (args->flags & ~(I915_MMAP_WC))