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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 8 Aug 2022 17:14:47 +0000 (13:14 -0400)
commit232d150fa15606e96c0e01e5c7a2d4e03f621787
treed98d8166204c182ae6e85812a3788e0573fbc074
parent9cae5b3189eb9cd12a9c3f6e8afda2d81958640b
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
(cherry picked from commit 353819d85f87be46aeb9c1dd929d445a006fc6ec)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/intel_migrate.c