drm/i915: Take object lock in i915_ggtt_pin if ww is not set
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 16 Dec 2021 14:27:36 +0000 (15:27 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 20 Dec 2021 15:31:51 +0000 (16:31 +0100)
commit2abb6195512d14f0da45a27ca1be7cfca6658c5f
tree8f484208a00cb0fa66c29570d1bed6c1f7975663
parent0b4d1f0e936e5c6beaebc32785465228ae0fdd16
drm/i915: Take object lock in i915_ggtt_pin if ww is not set

i915_vma_wait_for_bind needs the vma lock held, fix the caller.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216142749.1966107-5-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/i915_vma.c