[Intel-gfx] [PATCH v4 39/61] drm/i915: Use a single page table lock for each gtt.

Thomas Hellström thomas.hellstrom at linux.intel.com
Tue Nov 3 09:09:51 UTC 2020


On 10/16/20 12:44 PM, Maarten Lankhorst wrote:
> We may create page table objects on the fly, but we may need to
> wait with the ww lock held. Instead of waiting on a freed obj
> lock, ensure we have the same lock for each object to keep
> -EDEADLK working. This ensures that i915_vma_pin_ww can lock
> the page tables when required.
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> ---
>   drivers/gpu/drm/i915/gt/intel_ggtt.c  |  8 +++++-
>   drivers/gpu/drm/i915/gt/intel_gtt.c   | 38 ++++++++++++++++++++++++++-
>   drivers/gpu/drm/i915/gt/intel_gtt.h   |  5 ++++
>   drivers/gpu/drm/i915/gt/intel_ppgtt.c |  3 ++-
>   drivers/gpu/drm/i915/i915_vma.c       |  5 ++++
>   5 files changed, 56 insertions(+), 3 deletions(-)
>
Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>




More information about the Intel-gfx mailing list