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 197204DB541; Sat, 28 Feb 2026 17:35:18 +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=1772300119; cv=none; b=OhYpVkn0jBiOX3eh41ftzkW5KQP7NyVyJdPX320M/KNvAUTNk9pbymvVDWZIXws7Y/4TpYTqMUt503UZAwm1lJAsdWBAna73NH+33v40Wlt3hVMog33T7quydmtRfpE9yWiB6OcVE0SCie49tWYRen16/SYcDBLMotIcRiQK30g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300119; c=relaxed/simple; bh=zQQDabQxX/Mj3pMOdIretiHOgmTgNC9y9Xg7vn5SY9I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E0CyD6SSIk28MeiSuOR4NsSF9qJLjWhUrrM7KJb4DlMoGQFUQioWcsEisU96tl/+WEA4O7qEsz71XrgRr0kRaF7HVWpS2NRG1L+yrrhx9jCQVGbRNOPpdOIaEyO0rrucIc1Fp+uGvQREjbh7IdarKeY4SFUfxwK/noldRsXGjm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=t7YnQmEL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="t7YnQmEL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8C93C2BC87; Sat, 28 Feb 2026 17:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300118; bh=zQQDabQxX/Mj3pMOdIretiHOgmTgNC9y9Xg7vn5SY9I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t7YnQmELM5f+3HHzS+ijzPXYcSlwqzuuw5BkrFj2FbmJ1e/FowVqrGVpspp674s/Y IOMIJvBIkw6v5ku7Lq8fPi5Z0d2EZSSohoEx4JadfxNxRUOH0uPFQ2z4PP8ASUtC+q h/GmGFHIBtB7sPE3t9hYiGGASpPrmX0EHhO9VjGYRsENDvCrA+1x6vB74L74aBAXd/ oe30/AcXJm28Gn6idNqHoexHvGDV4Bp5TG0whwDJfrvqzoiVFevNs4aHV03XEH1xuM nQ0tWFh8sIzxcPFgHy4oheQ707EPdwKbygqHsJ14rA6jI7AZcq/NaeKcTXuORUBiX8 oFSnAscRAqRGw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jing Zhou , Charlene Liu , Wenjing Liu , Roman Li , Dan Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 6.19 135/844] drm/amd/display: Correct FIXED_VS Link Rate Toggle Condition Date: Sat, 28 Feb 2026 12:20:48 -0500 Message-ID: <20260228173244.1509663-136-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Jing Zhou [ Upstream commit 531fe6e0fee85a1bdb5b8223a706fff654ed0a61 ] [WHY&HOW] The condition is only perform toggle if FIXED_VS LTTPR reports no IEEE OUI. The literal "\x0,\x0,\x0" contains commas changes the bytes being compared to {0x00,0x2C,0X00}. The correct literal should be "\x00\x00\x00" without commas. Reviewed-by: Charlene Liu Reviewed-by: Wenjing Liu Signed-off-by: Jing Zhou Signed-off-by: Roman Li Tested-by: Dan Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c index ce174ce5579c0..6a7c4a59ff4c7 100644 --- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c +++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training_fixed_vs_pe_retimer.c @@ -271,7 +271,7 @@ enum link_training_result dp_perform_fixed_vs_pe_training_sequence( rate = get_dpcd_link_rate(<_settings->link_settings); // Only perform toggle if FIXED_VS LTTPR reports no IEEE OUI - if (memcmp("\x0,\x0,\x0", &link->dpcd_caps.lttpr_caps.lttpr_ieee_oui[0], 3) == 0) { + if (memcmp("\x00\x00\x00", &link->dpcd_caps.lttpr_caps.lttpr_ieee_oui[0], 3) == 0) { /* Vendor specific: Toggle link rate */ toggle_rate = (rate == 0x6) ? 0xA : 0x6; -- 2.51.0