AMD General Reviewed-by: Fangzhi Zuo <[email protected]>
> -----Original Message----- > From: amd-gfx <[email protected]> On Behalf Of Timur > Kristóf > Sent: Friday, May 29, 2026 05:09 > To: [email protected]; Deucher, Alexander > <[email protected]>; LIPSKI, IVAN <[email protected]>; > Wentland, Harry <[email protected]>; Hung, Alex > <[email protected]>; Wu, Ray <[email protected]>; Liu, Wenjing > <[email protected]>; Pillai, Aurabindo <[email protected]>; > Chuanyu Tseng <[email protected]>; Li, Roman > <[email protected]>; Wheeler, Daniel <[email protected]> > Cc: Timur Kristóf <[email protected]> > Subject: [PATCH 1/2] drm/amd/display: Fix preferred link rate for NUTMEG > > 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 <[email protected]> > Signed-off-by: Timur Kristóf <[email protected]> > --- > .../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
