]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/display: Match i915 driver suspend/resume sequences better
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 6 Aug 2024 10:50:43 +0000 (12:50 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 4 Sep 2024 16:24:07 +0000 (12:24 -0400)
commit269a3f60843b9d2045e0c09d4bd34a91ed4222aa
treed131d8d25b576ae824ff007beda44627f7e47db4
parent82122d1f54ec2244fb9c367ee2390b51ce08cf44
drm/xe/display: Match i915 driver suspend/resume sequences better

Suspend fbdev sooner, and disable user access before suspending to
prevent some races. I've noticed this when comparing xe suspend to
i915's.

Matches the following commits from i915:
24b412b1bfeb ("drm/i915: Disable intel HPD poll after DRM poll init/enable")
1ef28d86bea9 ("drm/i915: Suspend the framebuffer console earlier during system suspend")
bd738d859e71 ("drm/i915: Prevent modesets during driver init/shutdown")

Thanks to Imre for pointing me to those commits.

Driver shutdown is currently missing, but I have some idea how to
implement it next.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240806105044.596842-2-maarten.lankhorst@linux.intel.com
Signed-off-by: Maarten Lankhorst,,, <maarten.lankhorst@linux.intel.com>
(cherry picked from commit 492be2a070f023c66aaef6ebd664567fda28c2a6)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/display/xe_display.c