Extend workaround for reset on context closure from gen 7-8 to gen 4-8
authorjsg <jsg@openbsd.org>
Sat, 2 Oct 2021 14:26:05 +0000 (14:26 +0000)
committerjsg <jsg@openbsd.org>
Sat, 2 Oct 2021 14:26:05 +0000 (14:26 +0000)
as asavvycomputist@disroot.org reported this occurs on gm45 (gen 4).

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

index 6911bd8..821f0e8 100644 (file)
@@ -549,9 +549,10 @@ static void kill_context(struct i915_gem_context *ctx)
                }
 
                /*
-                * XXX don't incorrectly reset chip on vlv/ivb/hsw/bdw cause unknown
+                * XXX don't incorrectly reset chip on
+                * gm45/vlv/ivb/hsw/bdw cause unknown
                 */
-               if (IS_GEN_RANGE(ctx->i915, 7, 8)) {
+               if (IS_GEN_RANGE(ctx->i915, 4, 8)) {
                        if (warn) {
                                DRM_DEBUG("%s XXX skipping reset pos %p\n", __func__, pos);
                                warn = 0;