drm/i915/ttm: don't leak the ccs state
authorMatthew Auld <matthew.auld@intel.com>
Wed, 27 Jul 2022 16:43:46 +0000 (17:43 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 28 Jul 2022 10:37:13 +0000 (11:37 +0100)
commit353819d85f87be46aeb9c1dd929d445a006fc6ec
tree54615c9083b40f361228894b023e674d13012f35
parentf5dfbfc0ae00c2c2c0518da9e1f9a8cca50ae544
drm/i915/ttm: don't leak the ccs state

The kernel only manages the ccs state with lmem-only objects, however
the kernel should still take care not to leak the CCS state from the
previous user.

Fixes: 48760ffe923a ("drm/i915/gt: Clear compress metadata for Flat-ccs objects")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220727164346.282407-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gt/intel_migrate.c