]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit59c94b9d26dfee413238b012238837e7028e40cc
tree17645547ea76068a8f9fc7940f7fa268f9a429e4
parent09137e94543761154f464433c019d51d6ac32fcf
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