Skip to contentSkip to conversation

drm/i915: Flush the i915_vm_release before ggtt shutdown

PATCH New Chris Wilson 1 participant 1 message Jul 29, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Flush the i915_vm_release before ggtt shutdown

As the gen6_ppgtt may refer back to the GGTT for their page-directory slots, make sure those __i915_vm_release are completed prior to shutting down the GGTT.

Fixes b32fa8111563 ("drm/i915/gtt: Defer address space cleanup to an RCU worker")
Cc Tvrtko Ursulin <[email protected]>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -0
index 4dd1fa956143..35d4e99e7abd 100644
@@ -2720,6 +2720,7 @@ static void ggtt_cleanup_hw(struct i915_ggtt *ggtt)
 	struct i915_vma *vma, *vn;
 
 	ggtt->vm.closed = true;
+	flush_workqueue(i915->wq); /* flush the __i915_vm_release */
 
 	mutex_lock(&i915->drm.struct_mutex);
 
Signature · 6 lines
2.22.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx