]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pin fence for iomap
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Oct 2017 08:43:55 +0000 (09:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Oct 2017 16:07:29 +0000 (17:07 +0100)
commit79272fa76810b3fa4261d0bb83381355f3552202
tree0f1b4cdcb5b568c5d6746e964a12c5bbe6e93425
parenta83bfe8223f0a225e6148bcc88aacf24e4db75a7
drm/i915: Pin fence for iomap

Acquire the fence register for the iomap in i915_vma_pin_iomap() on
behalf of the caller.

We probably want for the caller to specify whether the fence should be
pinned for their usage, but at the moment all callers do want the
associated fence, or none, so take it on their behalf.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009084401.29090-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h
drivers/gpu/drm/i915/selftests/i915_gem_object.c