From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9ED20194A67; Tue, 27 May 2025 16:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748364876; cv=none; b=LieI5ss5XoQtjfbv9kzXAvVea1Q+GWVLUlyLU/RckJw9EQo1D+fjrcmgHHMDsmnQyEdVHN5oAKqFmVHHysWiGrESzKdrD4O53Ba6s9AVafHRlxKkseimtKnXyXWGIOOKHB0UzSIGs23KrkS2/0vXMKcYuyvmCViRpQEGElVihHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748364876; c=relaxed/simple; bh=DEfYdoVSlPdYbK0tcQiIBdlOmytOR6zyeJz7HlK3I8c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JfJq2zNonZLh1hTPkCt2QG2h5cz2GbnjxIB8qU0r+DBGXBwfTcTPS4gnZOgoHk1B8KD8IftVo+1usCQ+v3HjMDCLGyd8w4aYBwXwXAb0wq/jTGIsmJtznZjGo9PCeIA8xjDf5ho8pv7clYnb0vr+oftFoiwgxo9Lb5q/MtL8eKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZutOZKMh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZutOZKMh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F147C4CEE9; Tue, 27 May 2025 16:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748364876; bh=DEfYdoVSlPdYbK0tcQiIBdlOmytOR6zyeJz7HlK3I8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZutOZKMhBgrgrH4HPz1pRbTbx8RL7h2o1NH8aTW/6f6vzZ27RaFexIuk9ybwbeZFx KfVXTfLs4nTufMvgUBuECvj1nJkjoY+a+jVeGNt+aGOItBkDtDlo4goQRu6klkmVtG r9kh1Pu981/aBFyGv69pFYteWI/GmaaCyyIFrdzs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Cruise Hung , Meenakshikumar Somasundaram , Peichen Huang , Tom Chung , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 6.12 195/626] drm/amd/display: not abort link train when bw is low Date: Tue, 27 May 2025 18:21:28 +0200 Message-ID: <20250527162452.940925749@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162445.028718347@linuxfoundation.org> References: <20250527162445.028718347@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peichen Huang [ Upstream commit 8a21da2842bb22b2b80e5902d0438030d729bfd3 ] [WHY] DP tunneling should not abort link train even bandwidth become too low after downgrade. Otherwise, it would fail compliance test. [HOW} Do link train with downgrade settings even bandwidth is not enough Reviewed-by: Cruise Hung Reviewed-by: Meenakshikumar Somasundaram Signed-off-by: Peichen Huang Signed-off-by: Tom Chung Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../gpu/drm/amd/display/dc/link/protocols/link_dp_training.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c index 27b881f947e8b..9385a32a471b8 100644 --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c @@ -1769,13 +1769,10 @@ bool perform_link_training_with_retries( is_link_bw_min = ((cur_link_settings.link_rate <= LINK_RATE_LOW) && (cur_link_settings.lane_count <= LANE_COUNT_ONE)); - if (is_link_bw_low) { + if (is_link_bw_low) DC_LOG_WARNING( "%s: Link(%d) bandwidth too low after fallback req_bw(%d) > link_bw(%d)\n", __func__, link->link_index, req_bw, link_bw); - - return false; - } } msleep(delay_between_attempts); -- 2.39.5