raise mm obj_lock mtx ipl to IPL_TTY
authorjsg <jsg@openbsd.org>
Thu, 27 Jan 2022 04:17:40 +0000 (04:17 +0000)
committerjsg <jsg@openbsd.org>
Thu, 27 Jan 2022 04:17:40 +0000 (04:17 +0000)
used with spin_lock_irqsave() from
__i915_gem_object_set_pages()
i915_gem_suspend_late()
i915_gem_shrink()
i915_gem_shrinker_oom()
i915_gem_object_make_unshrinkable()
i915_gem_madvise_ioctl()

sys/dev/pci/drm/i915/i915_gem.c

index 63cf246..93dcce2 100644 (file)
@@ -1208,7 +1208,7 @@ void i915_gem_driver_release(struct drm_i915_private *dev_priv)
 
 static void i915_gem_init__mm(struct drm_i915_private *i915)
 {
-       mtx_init(&i915->mm.obj_lock, IPL_NONE);
+       mtx_init(&i915->mm.obj_lock, IPL_TTY);
 
        init_llist_head(&i915->mm.free_list);