All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amd/display: Fix preferred link rate for NUTMEG
@ 2026-05-29  9:09 Timur Kristóf
  2026-05-29  9:09 ` [PATCH 2/2] drm/amd/display: Add dp_skip_rbr flag " Timur Kristóf
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Timur Kristóf @ 2026-05-29  9:09 UTC (permalink / raw)
  To: amd-gfx, Alexander.Deucher, Ivan Lipski, harry.wentland,
	Alex Hung, Ray Wu, Wenjing Liu, Aurabindo Pillai, Chuanyu Tseng,
	Roman Li, Dan Wheeler
  Cc: Timur Kristóf

When there is a preferred link rate setting, it needs to be
applied to both the current and initial link rate.
This was regressed by a "coding style" fix, which caused
the current link rate to not respect the preferred value.

This commit restores the functionality of NUTMEG,
the DP bridge encoder found on old APUs such as Kaveri.

Fixes: b74322eea36b ("drm/amd/display: Fix coding style issue")
Cc: Chuanyu Tseng <Chuanyu.Tseng@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
---
 .../drm/amd/display/dc/link/protocols/link_dp_capability.c    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
index 817b4010edcbe..f44c13300a59c 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c
@@ -750,8 +750,10 @@ static bool decide_dp_link_settings(struct dc_link *link, struct dc_link_setting
 	if (req_bw > dp_link_bandwidth_kbps(link, &link->verified_link_cap))
 		return false;
 
-	if (link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN)
+	if (link->preferred_link_setting.link_rate != LINK_RATE_UNKNOWN) {
 		initial_link_setting.link_rate = link->preferred_link_setting.link_rate;
+		current_link_setting.link_rate = link->preferred_link_setting.link_rate;
+	}
 
 	/* search for the minimum link setting that:
 	 * 1. is supported according to the link training result
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-13 13:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-29  9:09 [PATCH 1/2] drm/amd/display: Fix preferred link rate for NUTMEG Timur Kristóf
2026-05-29  9:09 ` [PATCH 2/2] drm/amd/display: Add dp_skip_rbr flag " Timur Kristóf
2026-07-10 16:14   ` Alex Deucher
2026-05-29 18:49 ` [PATCH 1/2] drm/amd/display: Fix preferred link rate " Zuo, Jerry
2026-07-10 13:36 ` John Olender
2026-07-11 19:35 ` Lionso Alejandro Pacheco Vacacela
2026-07-12 17:44   ` Timur Kristóf
2026-07-13 12:44     ` Lionso Alejandro Pacheco Vacacela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.