Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E060EC43458 for ; Fri, 10 Jul 2026 13:36:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7E5AE10F8E4; Fri, 10 Jul 2026 13:36:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Zktu+aP7"; dkim-atps=neutral Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6E86210F8E4 for ; Fri, 10 Jul 2026 13:36:34 +0000 (UTC) Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-8ee43b3e5abso6120436d6.3 for ; Fri, 10 Jul 2026 06:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783690593; x=1784295393; darn=lists.freedesktop.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=KYJ2tLOC5oFWD8I3q/vCEnQGiCmzJnxrnM3h313/auo=; b=Zktu+aP7IEq3AYiN0GcNbtUbqtYvAXO04U0M3F9dx7oppKCcFNoOIZjYKv5YLW/Ihi p4sh3bBje7/xI74VpVfhZrb2KO+7SDiMJIAMu2dfrkGnUM5YF3wI7Nwp/vbFz1ud1ROI 9h2qPWvo7W2dXwJotlvcjJ5IY9VF9KmIpL8Q/hZqpGy1cTSjEei9RL1IzrhiqL7FZsHD OKyRMfv4yZmWomBKpfQaLCEluvBL4FE3bgfR+KOee/xFmSPcFgAP9ddFCvVwscholWB+ oQoG4+GMQ5Xn6y4fLFjbP2MCGV4s6km3/XBCod/q0sqX0oxb7hyszNGMDxYe6xTc2zxe RUtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783690593; x=1784295393; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KYJ2tLOC5oFWD8I3q/vCEnQGiCmzJnxrnM3h313/auo=; b=bKS0G7iiUbpU51byQk8RGdweMsTI893bjlMGeFHrV/tXznTDYAfpTc5bItb//9AGGy zj06CnGCjkodifUSB4R9uLnNTi9DJrA1o+uv4T/t/WT30ZJ37uP1V+V/KENaLWkW/z7F W1p5uai74PVkb7YIKlNfvk3jnh6nQpDPfB4uakkNgl1I59roqWlnhYMz2GbP36jS+yar OXrMq9NHrq/x6189hy73ObBjB+KcbXmtS75WBoSxQYzQEGSj3/8kVCLFPgDuOXAGj+tG sHY77tXmNNgz/VO6TZY9+KYmeLpkjXH64JV7Lts8sf77zn58o03vNOB2LlNitL++HqXw qYCw== X-Forwarded-Encrypted: i=1; AHgh+RreVT33BJWCoLID2SknktgVKdj0PA/3Wb3uG4h7CLjvqfeTh+ZS9TsqbyA1uP0bgaxIV7EoIf6K@lists.freedesktop.org X-Gm-Message-State: AOJu0YxHfRk3HPLOQwj88IYIHazVmChaA7zgNhBFiijUSpRbQTF/Houa tfEVt6lTRdUEk/I6vDQfudrAnic/N1FzmAYxiFm+V3zw6Vj0zuFh3BZZ X-Gm-Gg: AfdE7cnIhZvb5iAXrZ6TwwNVtpRatKblHOJU4s55wDK++sGvQKvJZVHeOegdOmhFtQ2 YOQ2MRBC/l1jxhTB6sBLRKhnqaQLzuHZfPbHA16XD9/IgO4V7He/3Ze/4zuFiWPwKcvgtm1JBjb sOb/9fyZ/L2gdGAaD+7PFqZhTVXW+Xzfg7DnosUfH/d1DhiyML8F78TCu7hmpiiUPhTLCJ+GisG kXY5pSoZ85rasMuYl89d0DqC9P49rWRNC2pznNm7YG5Qme1lrScba0j1kxOdC44yJOco2wZNi7F dUqw02/k+Acx+hwMR/dfkzVF2YYNCGpz4XugB9zRdcAItYnTRcSi7VA1sAc6p/enkiZMb07L70I oaTkiTe8/NR/+DQKF6RGq3sPMW5ZmEbCpNJ8CmxJTHgEQrIk9CyHf17RBJiZVPqmdYx7nxGUZPz TTM6/CH3kczLPJaUGa9nZX X-Received: by 2002:a05:6214:2604:b0:8ef:25f0:e01f with SMTP id 6a1803df08f44-8fec304fd92mr132198306d6.54.1783690593101; Fri, 10 Jul 2026 06:36:33 -0700 (PDT) Received: from [192.168.1.100] ([32.219.225.223]) by smtp.googlemail.com with ESMTPSA id 6a1803df08f44-8ffd50df5e2sm41371536d6.4.2026.07.10.06.36.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jul 2026 06:36:31 -0700 (PDT) Message-ID: Date: Fri, 10 Jul 2026 09:36:30 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] drm/amd/display: Fix preferred link rate for NUTMEG To: =?UTF-8?Q?Timur_Krist=C3=B3f?= , amd-gfx@lists.freedesktop.org, Alexander.Deucher@amd.com, Ivan Lipski , harry.wentland@amd.com, Alex Hung , Ray Wu , Wenjing Liu , Aurabindo Pillai , Chuanyu Tseng , Roman Li , Dan Wheeler References: <20260529090909.13206-1-timur.kristof@gmail.com> Content-Language: en-US From: John Olender In-Reply-To: <20260529090909.13206-1-timur.kristof@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Ping. On 5/29/26 5:09 AM, Timur Kristóf wrote: > 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 > Signed-off-by: Timur Kristóf A user recently reported this issue to the tracker and confirmed this patch is an effective fix. Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5465 Thanks, John > --- > .../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