]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Replace opencoded i915_gem_object_pin_map()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Jul 2020 17:37:46 +0000 (18:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Jul 2020 21:05:49 +0000 (22:05 +0100)
commit18d42c5c897ade3c31136d0391684210191ae8d1
tree17645547ea76068a8f9fc7940f7fa268f9a429e4
parentb9a53dd3e6f7209b36be339e1bd8daf263dbf250
drm/i915/gt: Replace opencoded i915_gem_object_pin_map()

As we have a pin_map interface, that knows how to flush the data to the
device, use it. The only downside is that we keep the kmap around, as
once acquired we keep the mapping cached until the object's backing
store is released.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200708173748.32734-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c