Matthew Auld ad0fca2dce drm/i915/ttm: consider CCS for backup objects
It seems we can have one or more framebuffers that are still pinned when
suspending lmem, in such a case we end up creating a shmem backup
object, instead of evicting the object directly, but this will skip
copying the CCS aux state, since we don't allocate the extra storage for
the CCS pages as part of the ttm_tt construction. Since we can already
deal with pinned objects just fine, it doesn't seem too nasty to just
extend to support dealing with the CCS aux state, if the object is a
pinned framebuffer. This fixes display corruption (like in gnome-shell)
seen on DG2 when returning from suspend.

Fixes: da0595ae91da ("drm/i915/migrate: Evict and restore the flatccs capable lmem obj")
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>
Cc: <stable@vger.kernel.org> # v5.19+
Tested-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221212171958.82593-2-matthew.auld@intel.com
(cherry picked from commit 95df9cc24bee8a09d39c62bcef4319b984814e18)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2022-12-14 12:56:58 -05:00
..
2022-11-23 09:15:44 +10:00
2021-10-07 11:04:05 -07:00
2022-04-08 10:36:11 +02:00
2022-11-23 09:15:44 +10:00
2022-11-23 09:15:44 +10:00
2022-11-23 09:15:44 +10:00
2022-08-10 13:11:17 +03:00
2022-11-23 09:15:44 +10:00
2022-08-25 12:50:40 -07:00
2022-08-25 12:50:40 -07:00
2022-09-09 16:50:33 +03:00
2022-07-17 14:53:47 -04:00
2022-11-18 08:30:42 -08:00
2022-11-23 09:15:44 +10:00