drm/i915/mtl: end support for set caching ioctl
authorFei Yang <fei.yang@intel.com>
Fri, 19 May 2023 05:11:02 +0000 (22:11 -0700)
committerAndi Shyti <andi.shyti@linux.intel.com>
Tue, 23 May 2023 08:15:26 +0000 (10:15 +0200)
commit0fbcf57077c47b444e91b9ce8a243e6f7f53693d
tree514f45fe0273dab47eb1aa6d2bd5ad8b0885bf97
parent906bd0fb137ffc361b3ce0d0db07f288db5582ea
drm/i915/mtl: end support for set caching ioctl

The design is to keep Buffer Object's caching policy immutable through
out its life cycle. This patch ends the support for set caching ioctl
from MTL onward. While doing that we also set BO's to be 1-way coherent
at creation time because GPU is no longer automatically snooping CPU
cache. For userspace components needing to fine tune the caching policy
for BO's, a follow up patch will extend the GEM_CREATE uAPI to allow
them specify caching mode at BO creation time.

Signed-off-by: Fei Yang <fei.yang@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230519051103.3404990-2-fei.yang@intel.com
drivers/gpu/drm/i915/gem/i915_gem_domain.c
drivers/gpu/drm/i915/gem/i915_gem_shmem.c