drm/i915: Add ww context to intel_dpt_pin, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 29 Sep 2021 08:59:50 +0000 (10:59 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 30 Sep 2021 10:45:00 +0000 (12:45 +0200)
commitf0b6b01b3efe74afd2de59c894105e13b121a01e
tree48a39e1f74c2330e7e5b307e0b978900cb793611
parentef46972ac8518caf8c8409b750f4728ba8b820ea
drm/i915: Add ww context to intel_dpt_pin, v2.

Ensure i915_vma_pin_iomap and vma_unpin are done with dpt->obj lock held.

I don't think there's much of a point in merging intel_dpt_pin() with
intel_pin_fb_obj_dpt(), they touch different objects.

Changes since v1:
- Fix using the wrong pointer to retrieve error code (Julia)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210929085950.3063191-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/display/intel_dpt.c