From 7b7e933f4f8fb0b392c7efb5005f7c67e07d4ca5 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 21 Apr 2022 10:01:24 +0000 Subject: [PATCH] drm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c index 330cb25c5be..40ca9f66f94 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c @@ -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)) -- 2.20.1