From: jsg Date: Wed, 13 Jul 2022 03:32:50 +0000 (+0000) Subject: drm/i915: Disable bonding on gen12+ platforms X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9f12664710999151e4e0c15e6e2f37cd07d9d714;p=openbsd drm/i915: Disable bonding on gen12+ platforms From Matthew Brost d839d15b50743164d7ad95f436ea284a2946c179 in linux 5.15.y/5.15.54 ce7e75c7ef1bf8ea3d947da8c674d2f40fd7d734 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_context.c b/sys/dev/pci/drm/i915/gem/i915_gem_context.c index 3e770a4f5fb..906a4d40ae6 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_context.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_context.c @@ -450,6 +450,13 @@ set_proto_ctx_engines_bond(struct i915_user_extension __user *base, void *data) u16 idx, num_bonds; int err, n; + if (GRAPHICS_VER(i915) >= 12 && !IS_TIGERLAKE(i915) && + !IS_ROCKETLAKE(i915) && !IS_ALDERLAKE_S(i915)) { + drm_dbg(&i915->drm, + "Bonding on gen12+ aside from TGL, RKL, and ADL_S not supported\n"); + return -ENODEV; + } + if (get_user(idx, &ext->virtual_index)) return -EFAULT;