From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 5055A2749F1 for ; Wed, 9 Jul 2025 09:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752052576; cv=none; b=pwEG/LKImvqf6e43UtGprSDoZ6vbq4W6vgbvY7oFrSLcnuduvY8OndfxgsReRE6mPHKUhBGnH58XokBmwAJl6hpRmMxrGlz4Vfwd2XbIdoItpADSKc/SWpTADFYw+yN3XUv/08rEWsSdiGkHK1XSXNjVDG7e1HT1xGAiiBlXQ0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752052576; c=relaxed/simple; bh=Wif2EAnH+uS1OueMuNGozeeBl8sbJsE1ULddgFc131Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PWpOnluGgM6YL80o2sVxlywJZA8r0Vi04kO4eCEiCN8EH9IFWKx72KekNaAEde47MV0vsGf11vHUcUYhZLDoKWkBEUlG2TTEi0Z14osmLeU1f+9hRzXbnbQAXX/ZwnWprmIyzMb1/cAtVkpx4F+MkaPbFm4O4CLc6PLClpNLWj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=MD04QiCb; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="MD04QiCb" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5697njug008108 for ; Wed, 9 Jul 2025 09:16:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Cv1BCk8MYMc74KhkADwnTl/g1Y3GZM+AUyi9qevFM4U=; b=MD04QiCbcyupDjwl uMpXji2CFwUbWFMp4gW7xRrfwrZxp4LFM7WwubrPVypwEkJ4RNX5iWmon+pTowUp JSmny1owcMo9YZW1vft36dB9wAFi2pcXdOLdReDPrdxwxGwAKAmeqRlidX/FTtSw p1od8/Z6bq4ShAqeq9qtDW+4MDxabq/a2vZJf0Wtl+ubakfRm42HMYLSTsI6iIyP pnEhGuFJ9ArUQcl2QMnMEXzZPgX6xjC5Sj2k+zbRX7SmHTmM+9RzntQeSv7km1K5 dxDP2hvWQSW7EetVn/i7lzhakHkyVMw6vpYV4yYGjybvf6aSVka0Kf8ILF9f3AqI RtKmNQ== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47smcg08pa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 09 Jul 2025 09:16:13 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2366f1bc5d2so13715735ad.0 for ; Wed, 09 Jul 2025 02:16:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752052572; x=1752657372; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Cv1BCk8MYMc74KhkADwnTl/g1Y3GZM+AUyi9qevFM4U=; b=LQAhPHevG5dIxV6dWm8pMboNHlqt8iHXz6EAXcrGEx+q075xWXBA5dtUNsBnZTBqDz e2c1sakUmrTHhcxAiejS2O5OpKe0vNmrEd4O1nzfHDj4Nfx3DIqPH/HcLV3wJ4r+7iLd cgcaUTmt89yKeBKTrcuLuHHBMj/8L1oUquolOmFLTJgwikTrYZfen/K1ILtOeYzToU6+ AAEakUyafaRMPk9BwedMd+pI6JoNDm2hJxiO+Xf84F1KDXHE5MIaqkfKXdzvslMAHdWJ j5qRwvWd1ANu1D2VCR0EZzj/j5noOSFjSA80R6g823ZWeN7UetIl/Vy6RvVm+Nl+L3CB QTMw== X-Forwarded-Encrypted: i=1; AJvYcCV93O411qJzuccnwbAL70lPSV6gNfFpfSoGz54qKFWhE1qLDYFGZ9lML1Il6/U3RKtWrH3EqGdt38dkk++m@vger.kernel.org X-Gm-Message-State: AOJu0YyJE9QYLcy79unqWa7QFR6Sn5mIb5yAex2USJVOwzpwnmuuTQKC 1e/XKGprRtn+Kh/TpCU4GDgzN9HSEjYuhTfh1NgBFBs0p+AoJgX1Z6duPyuySqTjh5zEbguhHED HRokpsRMCjZIxNDdMWxPUhlCI6LW13IPTbFi8i62XMhGwkeaV7Bo0LHckfzI7ddcQByLe X-Gm-Gg: ASbGncuA/RspvxvlJ8G4yW/uAN+vbIHxGvzpv7pi73wN0dqj6xK+es11tpmgrcG2Vnj 5GHR2q5I2IOMAGhAxFtuxS2oBzLUjaca7ZkJLtXyT7E59k4tiZUTkhYRe3gVih2WOWtp3zb9Rp+ vbchN21/XkRoprWUu/YIzj0F4PF63LTUBc99Tv+P0MXcQk5EPxC7b+LUcF+eAM/gP0I3tgL8gjR yEZWUd9eTN4MO3kAjJGfXBbRaM3Kb6YEW+Cg9CcjqHK4UjCC0FOGpOnhytD8Ac3hh1k0ngzbTvL 3ZV4zs5e385M7fzDT2Tz9NuGVmyOksNwjkcPgHmyvwO3aHJrd8hHFRdkZIoz8tDBoOHWIGcHTdn Alirp/h4eEtGe X-Received: by 2002:a17:90b:35ca:b0:312:25dd:1c8b with SMTP id 98e67ed59e1d1-31c2fcb0251mr1322477a91.2.1752052571531; Wed, 09 Jul 2025 02:16:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdfQoEh/GXWJ6Pu0rY5iE3WeMtosEwrdpewcGf70D85+7o6PThtirQuZHfaVGHEd9tQdVP5w== X-Received: by 2002:a17:90b:35ca:b0:312:25dd:1c8b with SMTP id 98e67ed59e1d1-31c2fcb0251mr1322454a91.2.1752052571046; Wed, 09 Jul 2025 02:16:11 -0700 (PDT) Received: from [10.133.33.178] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-31c30067a55sm1502877a91.14.2025.07.09.02.16.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Jul 2025 02:16:10 -0700 (PDT) Message-ID: Date: Wed, 9 Jul 2025 17:16:02 +0800 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 7/8] drm/msm/dp: Retry Link Training 2 with lower pattern To: Konrad Dybcio , Dmitry Baryshkov , dmitry.baryshkov@oss.qualcomm.com Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kuogee Hsieh , Vinod Koul , Kishon Vijay Abraham I , Linus Walleij , Bartosz Golaszewski , quic_lliu6@quicinc.com, quic_fangez@quicinc.com, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-gpio@vger.kernel.org, quic_xiangxuy@quicinc.com References: <20241129-add-displayport-support-for-qcs615-platform-v1-0-09a4338d93ef@quicinc.com> <20241129-add-displayport-support-for-qcs615-platform-v1-7-09a4338d93ef@quicinc.com> From: Xiangxu Yin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Authority-Analysis: v=2.4 cv=P7o6hjAu c=1 sm=1 tr=0 ts=686e335e cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=COk6AnOGAAAA:8 a=M9roUVu_bSbsc9sLP4sA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: ChkNfjsjW14tgplrV65iEnQV7lqEHWlm X-Proofpoint-GUID: ChkNfjsjW14tgplrV65iEnQV7lqEHWlm X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA5MDA4MSBTYWx0ZWRfX/Bz6gsO5DQkR u2/thujRGNDy1V+DdpRPWIiC58d9aolAKsdDDJc7jyYGKUotPTmvw/sXcMrzvTMq2P/aRvQqODm pIxolpJptNLW4CNBZlw2QitHuT1s2Cco54UdOAOKz6t6mxaEXplNbNREmkSvFbMKXX1YvswiC4t HbpsmPcV7yuMEQM8qeBMomQe/e3wiMIUG2rqEbesmLv2hmCtBgMBXOTN6xun80VJPqNDhfwjKLz M6r1HdDhpw/BmxNxlqIEIU1frkQSpivNSzOnXcbwlP6n3bUsdXkqLTvxYhWklIzmyBYY4rJOB6p e+/MNYgRP3YrzygdDK7JfWsF9vCCYt3g0YaBIV1tNgySg2XUvhtpgo/DfJIbU/3gPij4ua5pU9z bs4twZfJua/oCwEU9i9LVBk30OAkjZsYjgeQ5pLZkbwwGaMJRuTQ64ruyIFywG8EV6EkmYKl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-09_02,2025-07-08_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 phishscore=0 bulkscore=0 mlxscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 adultscore=0 mlxlogscore=999 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507090081 On 5/28/2025 4:49 AM, Konrad Dybcio wrote: > On 12/3/24 3:07 PM, Dmitry Baryshkov wrote: >> On Tue, Dec 03, 2024 at 04:13:22PM +0800, Xiangxu Yin wrote: >>> >>> >>> On 11/29/2024 9:53 PM, Dmitry Baryshkov wrote: >>>> On Fri, 29 Nov 2024 at 09:59, Xiangxu Yin wrote: >>>>> >>>>> Add a mechanism to retry Link Training 2 by lowering the pattern level >>>>> when the link training #2 first attempt fails. This approach enhances >>>>> compatibility, particularly addressing issues caused by certain hub >>>>> configurations. >>>> >>>> Please reference corresponding part of the standard, describing this lowering. >>>> >>> Per DisplayPort 1.4a specification Section 3.5.1.2 and Table 3-10, while the standard doesn't explicitly define a TPS downgrade mechanism, it does specify: >> >> Anything in DP 2.1? >> In the DP 2.1 spec, mainly on section '3.6.7.2 8b/10b DP Link Layer LTTPR Link Training Mandates', defined 'LTTPR shall support TPS4'. The other parts seems similar to the 1.4 spec. >>> - All devices shall support TPS1 and TPS2 >>> - HDR2-capable devices shall support TPS3 >>> - HDR3-capable devices shall support TPS4 >>> While these capabilities are explicitly defined DPCD for sink devices, source device capabilities are less strictly defined, with the minimum requirement being support for TPS1 and TPS2. >>> In QCS615 DP phy is only supporting to HBR2, we observed a critical interoperability scenario with a DP->HDMI bridge. When link training at TPS4 consistently failed, downgrading to the next lower training pattern successfully established the link and display output successfully. >> >> Any other driver doing such TPS lowering? Or maybe we should be >> selecting TPS3 for HBR2-only devices? > This logic is porting from qualcomm downstream, For other device, only found in some older Tx chips like i915(intel_dp_training_pattern) used the maximum hardware-supported patterns, but not lowering. According to the description in DPCD table 2-232 003h, From the DP spec perspective, it appears that all supported cases should preferably adopt TPS4, as it is more robust. 'DPRXs should support TPS4 and set this bit, regardless of whether the DPRX supports HBR3 because TPS4 is more conducive to robust link establishment than TPS2 and TPS3. 0 = TPS4 is not supported. 1 = TPS4 is supported (shall be supported for downstream devices with DPCD r1.4, except for eDPRXs).' Although maximum capability of QCS615 is HBR2, but the actual pattern supports TPS4. >From pure design perspective, it would be cleaner to drop this lowering in next patch. > Bump, this patch looks interesting and I'd like to see it revisited if > it's correct > > Konrad