-
- Downloads
drm/i915: Use the async worker to avoid reclaim tainting the ggtt->mutex
On Braswell and Broxton (also known as Valleyview and Apollolake), we need to serialise updates of the GGTT using the big stop_machine() hammer. This has the side effect of appearing to lockdep as a possible reclaim (since it uses the cpuhp mutex and that is tainted by per-cpu allocations). However, we want to use vm->mutex (including ggtt->mutex) from within the shrinker and so must avoid such possible taints. For this purpose, we introduced the asynchronous vma binding and we can apply it to the PIN_GLOBAL so long as take care to add the necessary waits for the worker afterwards. Closes: https://gitlab.freedesktop.org/drm/intel/issues/211 Signed-off-by:Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200130181710.2030251-3-chris@chris-wilson.co.uk
Showing
- drivers/gpu/drm/i915/gt/intel_engine_cs.c 3 additions, 4 deletionsdrivers/gpu/drm/i915/gt/intel_engine_cs.c
- drivers/gpu/drm/i915/gt/intel_ggtt.c 6 additions, 0 deletionsdrivers/gpu/drm/i915/gt/intel_ggtt.c
- drivers/gpu/drm/i915/gt/intel_gt.c 1 addition, 1 deletiondrivers/gpu/drm/i915/gt/intel_gt.c
- drivers/gpu/drm/i915/gt/intel_lrc.c 1 addition, 1 deletiondrivers/gpu/drm/i915/gt/intel_lrc.c
- drivers/gpu/drm/i915/gt/intel_ring.c 2 additions, 4 deletionsdrivers/gpu/drm/i915/gt/intel_ring.c
- drivers/gpu/drm/i915/gt/intel_timeline.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/gt/intel_timeline.c
- drivers/gpu/drm/i915/gt/uc/intel_guc.c 2 additions, 2 deletionsdrivers/gpu/drm/i915/gt/uc/intel_guc.c
- drivers/gpu/drm/i915/i915_active.c 8 additions, 2 deletionsdrivers/gpu/drm/i915/i915_active.c
- drivers/gpu/drm/i915/i915_active.h 2 additions, 1 deletiondrivers/gpu/drm/i915/i915_active.h
- drivers/gpu/drm/i915/i915_gem.c 6 additions, 0 deletionsdrivers/gpu/drm/i915/i915_gem.c
- drivers/gpu/drm/i915/i915_vma.c 35 additions, 4 deletionsdrivers/gpu/drm/i915/i915_vma.c
- drivers/gpu/drm/i915/i915_vma.h 2 additions, 0 deletionsdrivers/gpu/drm/i915/i915_vma.h
Loading
Please register or sign in to comment