drm/i915/migrate: fix corner case in CCS aux copying
authorMatthew Auld <matthew.auld@intel.com>
Mon, 12 Dec 2022 17:19:57 +0000 (17:19 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 14 Dec 2022 10:09:40 +0000 (10:09 +0000)
commitb29d26fbcb862526d5047caec82878be2eb75c0f
tree23280f22702c833add7196f2ce6452f8a4bd1686
parent89270d002b7440ec5c6e92f7cac524ab7954a016
drm/i915/migrate: fix corner case in CCS aux copying

In the case of lmem -> lmem transfers, which is currently only possible
with small-bar systems, we need to ensure we copy the CCS aux state
as-is, rather than nuke it. This should fix some nasty display
corruption sometimes seen on DG2 small-bar systems, when also using
DG2_RC_CCS_CC for the surface.

Fixes: e3afc690188b ("drm/i915/display: consider DG2_RC_CCS_CC when migrating buffers")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221212171958.82593-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gt/intel_migrate.c