artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c13da9
)
drm/i915: Disable bonding on gen12+ platforms
author
jsg
<jsg@openbsd.org>
Wed, 13 Jul 2022 03:32:50 +0000
(
03:32
+0000)
committer
jsg
<jsg@openbsd.org>
Wed, 13 Jul 2022 03:32:50 +0000
(
03:32
+0000)
From Matthew Brost
d839d15b50743164d7ad95f436ea284a2946c179
in linux 5.15.y/5.15.54
ce7e75c7ef1bf8ea3d947da8c674d2f40fd7d734
in mainline linux
sys/dev/pci/drm/i915/gem/i915_gem_context.c
patch
|
blob
|
history
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
3e770a4
..
906a4d4
100644
(file)
--- 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;