]> 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)
commit068ce5b4525e822f9fa7cff1a273201cca38a900
tree17645547ea76068a8f9fc7940f7fa268f9a429e4
parent03ccfbf0a4cfe048d94397321b0d967e84faf3eb
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