]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/alpm: ALPM disable fixes
authorJouni Högander <jouni.hogander@intel.com>
Thu, 12 Feb 2026 06:27:31 +0000 (08:27 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Fri, 20 Feb 2026 10:11:38 +0000 (12:11 +0200)
PORT_ALPM_CTL is supposed to be written only before link training. Remove
writing it from ALPM disable.

Also clearing ALPM_CTL_ALPM_AUX_LESS_ENABLE and is not about disabling ALPM
but switching to AUX-Wake ALPM. Stop touching this bit on ALPM disable.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/7153
Fixes: 1ccbf135862b ("drm/i915/psr: Enable ALPM on source side for eDP Panel replay")
Cc: Animesh Manna <animesh.manna@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: <stable@vger.kernel.org> # v6.10+
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Michał Grzelak <michal.grzelak@intel.com>
Link: https://patch.msgid.link/20260212062731.397801-1-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_alpm.c

index e0a4a59dc0254f8b5121c7023a2edc6c7ead6717..b3334bc4d0f9661a584bfa9de99712ec2cd4a0ba 100644 (file)
@@ -604,12 +604,7 @@ void intel_alpm_disable(struct intel_dp *intel_dp)
        mutex_lock(&intel_dp->alpm.lock);
 
        intel_de_rmw(display, ALPM_CTL(display, cpu_transcoder),
-                    ALPM_CTL_ALPM_ENABLE | ALPM_CTL_LOBF_ENABLE |
-                    ALPM_CTL_ALPM_AUX_LESS_ENABLE, 0);
-
-       intel_de_rmw(display,
-                    PORT_ALPM_CTL(cpu_transcoder),
-                    PORT_ALPM_CTL_ALPM_AUX_LESS_ENABLE, 0);
+                    ALPM_CTL_ALPM_ENABLE | ALPM_CTL_LOBF_ENABLE, 0);
 
        drm_dbg_kms(display->drm, "Disabling ALPM\n");
        mutex_unlock(&intel_dp->alpm.lock);