]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pin the pages before acquiring struct_mutex for display
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Jul 2017 16:00:38 +0000 (17:00 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Jul 2017 07:56:11 +0000 (09:56 +0200)
commitd4a2853da57d65a6af5de9200c6f16c0ba6b55e0
treead2f75abebb7438b10dc879cdb17928ac7736a1b
parent52fe1162a2c4cf6117de1c1cbf4b2b252836eac2
drm/i915: Pin the pages before acquiring struct_mutex for display

Since we don't need the struct_mutex to acquire the object's pages, call
i915_gem_object_pin_pages() before we bind the object into the GGTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170726160038.29487-3-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c