[PATCH 3/3] hack to satisfy lockdep?
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Mon Apr 19 13:51:44 UTC 2021
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/i915/gt/intel_gtt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/gt/intel_gtt.c b/drivers/gpu/drm/i915/gt/intel_gtt.c
index 9dc4d78e7ca7..7574bcfcdbf7 100644
--- a/drivers/gpu/drm/i915/gt/intel_gtt.c
+++ b/drivers/gpu/drm/i915/gt/intel_gtt.c
@@ -136,6 +136,10 @@ void i915_address_space_init(struct i915_address_space *vm, int subclass)
/* CHV + VTD workaround use stop_machine(), so can't lock the vm->mutex in the shrinker */
if (!intel_vm_no_concurrent_access_wa(vm->i915))
i915_gem_shrinker_taints_mutex(vm->i915, &vm->mutex);
+ else {
+ mutex_lock(&vm->mutex);
+ mutex_unlock(&vm->mutex);
+ }
dma_resv_init(&vm->resv);
GEM_BUG_ON(!vm->total);
--
2.31.0
More information about the Intel-gfx-trybot
mailing list