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 9F6A4244670 for ; Wed, 9 Jul 2025 09:16:14 +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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5697nfV4031807 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-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47pw7qu016-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-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3132c0c961cso1575992a91.2 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=Y9YLf79Bu/7N8U+fmlrtQl51Q4PrTsZHVVCOq3rTu0+AwlzEVD6uP/LaJI0fPKZFkN aSpKOcvkA1qbgt8iy1aTryJ4vFL2mD/B7isUvqYktJ4fRI0lzjJ44yXEscTxnobiS0ew 0d6zypwUto9Ffk7cii1cDe8Tb3i7Sq2fdo0YaMCFw5dtCV0x9sbD8NXQUNYmcQCa0LUT dVqm3jx9PfSpc+A+wjRw1Ox02dQjfJw//JlzeoFzDwdLKHtC9Zhls1JHdB1NhiJzhjyw n680XKzSEiV7wC1qCtE65lxhSjSvKDfW3D+n5Ur2A2zR/McvGeAxAsNsO+VHOOaIqEhm +sfw== X-Forwarded-Encrypted: i=1; AJvYcCXqouUlZ+chTkbIPHHRDMIA/QUW8xC0uJXdUML4oeD1gNsEWM+d9ejXR3l0jDPrE7cX9grjdaloLLb8@vger.kernel.org X-Gm-Message-State: AOJu0YyVaXDkTsmoMK1eUhlo0Mg09BeUzn2u7czH7vrFrK8tGH9I7BR/ 0j9auv9c72u2qNfU2Xu9cgFdBVTVZuRtrzFxtTvnuns11TQmWqcgOVpuPLT6lFLtc+i0xwVOdr1 bBf9cuZHS6e2tOgOOKF+GGOgL8V5VlCpxk7SUYV8Mh4g9iUMCKMN9qqXlhaVtcUBi X-Gm-Gg: ASbGncv8S1adUBLrbqtu52m1WY0Sui6dGDj+jN6qOz0G16E+Oh0B+CwKnAEGUfCCcbY fS8qY+TvklGi5nvFC1Wjt3QymBDv2Uf6bpafcOT02wcQGxSocLvTFQruHxhoZtUnhR39xf09Uup 293anjVZLLqyQpjNKlxg74wJ6WmxShu8kM4Yx0DIIn5GO1ysyChwjhKQtSX9rlXZxUP+YXMIUFM o2kMEDP/qsTBiJ0wTnBjCNFGLZevAvMC1GKpatNfGjgLwCm1QWvurbmYWhSxppWU+AYgPyCcDIS b9en4ba8qjs+Ir23yp0Rw2TpX6+PJFOcg/60fnGSThgNmyAzE3ogSIqXcHMle3/WgTXXrTNNFgj x5EAtH+KlxLz5 X-Received: by 2002:a17:90b:35ca:b0:312:25dd:1c8b with SMTP id 98e67ed59e1d1-31c2fcb0251mr1322485a91.2.1752052571534; 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-gpio@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-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzA5MDA4MyBTYWx0ZWRfX5ESGBaVitL6r PZbqsXUGx/aYhccVfbimAQdRLnAI7hlaYfzR2eSe4Aa/NsHsqVzBmc8OAQkL0NiX6aAoiD7d0+O M9ipqNNTLaA9VmuR+90qftCMR2VVVmZEbIDdtsheGc9/XrFZyHKGi5xqBV+RitgW2p7MIYQ5IAD bRTl3++CyjavFylRA8+tT722hosrVprS1oVTnEnHujJGfInvjAS8uzUPI6GzFfVOtfwQcd2Eeeu EaXLH+eHwQtYyoOg2edsIWG1NMl+sj75hMB7TQ1Mr6Ey3TyHfo9TaiTjopYwqpgMsONxHKh0ZJO +m6V4PrG6STttyf32Ee0Aoz7jqSidt2lZNHWcEsOsdxahsXnIsfyNJJC9XQlqDTNloEHd/OGZfG +Oj+h6N4vziCwen/bEaer3NbKTbqCdraYzv1KeV+UaL5Jf/TU5ygznMTLtCjKAmhPdOIm4HF X-Proofpoint-GUID: I2f3Hbox8H971R9_ECUv6po0mHE4wvZt X-Proofpoint-ORIG-GUID: I2f3Hbox8H971R9_ECUv6po0mHE4wvZt X-Authority-Analysis: v=2.4 cv=SOBCVPvH c=1 sm=1 tr=0 ts=686e335d cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=COk6AnOGAAAA:8 a=M9roUVu_bSbsc9sLP4sA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 a=TjNXssC_j7lpFel5tvFf:22 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 clxscore=1015 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxlogscore=999 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507090083 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