Skip to contentSkip to conversation

Patch "drm/ast: Fix ast_dp connection status" has been added to the 6.14-stable tree

PATCH [email protected] 1 participant 1 message Apr 22, 2025

Subsystems (3)
lore
Share & tools
lore

[email protected]

author Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/ast: Fix ast_dp connection status

to the 6.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-ast-fix-ast_dp-connection-status.patch
and it can be found in the queue-6.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

From c28f72c6ca98e039c2aa5aac6752c416bc31dbab Mon Sep 17 00:00:00 2001
From: Jocelyn Falempe <[email protected]>
Date: Fri, 24 Jan 2025 15:11:31 +0100
Subject: drm/ast: Fix ast_dp connection status

From: Jocelyn Falempe <[email protected]>

commit c28f72c6ca98e039c2aa5aac6752c416bc31dbab upstream.

ast_dp_is_connected() used to also check for link training success to report the DP connector as connected. Without this check, the physical_status is always connected. So if no monitor is present, it will fail to read the EDID and set the default resolution to 640x480 instead of 1024x768.

---
 drivers/gpu/drm/ast/ast_dp.c |    6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/ast/ast_dp.c +6 -0
@@ -17,6 +17,12 @@ static bool ast_astdp_is_connected(struc
 {
 	if (!ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xDF, AST_IO_VGACRDF_HPD))
 		return false;
+	/*
+	 * HPD might be set even if no monitor is connected, so also check that
+	 * the link training was successful.
+	 */
+	if (!ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xDC, AST_IO_VGACRDC_LINK_SUCCESS))
+		return false;
 	return true;
 }
 

Patches currently in stable-queue which might be from [email protected] are

queue-6.14/drm-ast-fix-ast_dp-connection-status.patch