]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use consistent CPU mappings for pin_map users
authorMatthew Auld <matthew.auld@intel.com>
Mon, 5 Jul 2021 13:53:06 +0000 (14:53 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 9 Jul 2021 09:00:41 +0000 (10:00 +0100)
commitff2866fdb722ccec75d13301fc883ad8d62af47a
tree04c96d400d6f994fad39fed9d0655121e509ccd4
parent58974dcd7058b3db17cc0363f1626e48054f2357
drm/i915: use consistent CPU mappings for pin_map users

For discrete, users of pin_map() needs to obey the same rules at the TTM
backend, where we map system only objects as WB, and everything else as
WC. The simplest for now is to just force the correct mapping type as
per the new rules for discrete.

Suggested-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210705135310.1502437-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_object.h
drivers/gpu/drm/i915/gem/i915_gem_pages.c