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)
commitb3f450d9e1f386cda3e15f76efcb1b763d9a2856
tree04c96d400d6f994fad39fed9d0655121e509ccd4
parentca06f93638362bf83584cdf33897822bf1578cf9
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