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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxxxxxx>
---
  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@xxxxxxxxxxxxxxx>


_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux