drm/xe/display: Make display suspend/resume work on discrete
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 6 Aug 2024 10:50:44 +0000 (12:50 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 19 Aug 2024 13:17:04 +0000 (15:17 +0200)
commitcb8f81c1753187995b7a43e79c12959f14eb32d3
tree692e24746344eeedd740fe22e0820c37bde82fba
parent492be2a070f023c66aaef6ebd664567fda28c2a6
drm/xe/display: Make display suspend/resume work on discrete

We should unpin before evicting all memory, and repin after GT resume.
This way, we preserve the contents of the framebuffers, and won't hang
on resume due to migration engine not being restored yet.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: stable@vger.kernel.org # v6.8+
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240806105044.596842-3-maarten.lankhorst@linux.intel.com
Signed-off-by: Maarten Lankhorst,,, <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/xe/display/xe_display.c
drivers/gpu/drm/xe/xe_pm.c