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 679C135C1A9 for ; Tue, 16 Jun 2026 14:14:47 +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=1781619288; cv=none; b=A74uDGrmIP1vTGzMmt4jrF3bCB9En+ygvP/LxKf6UF3plXgvvZXEPfLSFeNgO1lBUkCivCBMgjqK/ds24+jUP9bhBsmHgRKexsfDckBlNc6QwXBBywVHsJKLf5GQ8lb2OiP69P8S64aI8Tl2ffetW0n8319s7fyxZCqjGRCUcbA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781619288; c=relaxed/simple; bh=irl8QxA5C9eS4raapfmrswfr3OhWo1FcTIzj3kwcHHc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=f+BiCHfnqNY0Y26F6M5OoFVuiJk34hLZUIBKWK02OQTIOjMHSmGZ+1Zh6m+i0Vhyfc4OHxgDZiqUecPlW91ip/F4Rxx8mCKkV9hoxVYg+Vc2bmC/c0PHRIBdMMxuUYlkaVVVbxfYid/oLjnTdjjcP+SoHBkBHMgxhWxU9daHBnA= 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=QAM1kyVT; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cUsvkNr8; 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="QAM1kyVT"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cUsvkNr8" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65GE0DSb3364847 for ; Tue, 16 Jun 2026 14:14:46 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= 0hAx854ISARB3ER/A8NJSDIfIV15g1Oji8K44z4BCu0=; b=QAM1kyVTARUAiUx1 HwN+Rt6ZPoLOrdawDoHFv7Fqdc32iTUYp39m0XzMLGHkpcqd0xkq3fZgHcaemSmN ANGPium+D5z1xual38fwaYY0vF/sHhoJ6Qglc3O7zImBcQbIu6aPNpiFueoVY7Wk OhvRw2QYbY6ukTECrhwTWbCr+mxQjrvSgMWy9VEz44c4mV8SVxkLqacih9//O6nh GDzAvqhArXNn/Sg28e/MY+SsHZ0p2+409jVroHjrIULgFyj+hZFtPLzQY3RkPkRL sO9NSscH/uSIWI3FrcEPfDskndnhaRb5hwOjaUv+7ogTIeycvXbhZwIvFzaQBNQr N/5jHA== Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4etx8kav75-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 16 Jun 2026 14:14:46 +0000 (GMT) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-6c7bdde6912so202856137.2 for ; Tue, 16 Jun 2026 07:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781619285; x=1782224085; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0hAx854ISARB3ER/A8NJSDIfIV15g1Oji8K44z4BCu0=; b=cUsvkNr8aM7a+6Sca1olvc/J3uuAVC42YaKvMrAm5oPJ53s2paflvxyf9AAZha1zOe 7fWLGUAxvatzyDgoJ9jM1aFCE9RpJl3JYPJoTKUwRmINMdtpmzTRUSYsyJO+GmWkqiOm zyOlOcA9095VwaWT9TBAK4pnXUHJGyyB5lhb8cp1GA7VX6szrakJdOMxmchvJ/kpLy41 2Phm5+aS7k9H3FRRKqVk2tYaC/dJ3foPTKPdGdYtDFLvJb4aaCOi0FjXMDKKamCHfMqB A9nOPnagJu4PTMqdS00qkzRPdJNhtsBFdgvEHYGXeOahS8ogRXr91waJPUhRoMkMlu22 bT5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781619285; x=1782224085; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc: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; bh=0hAx854ISARB3ER/A8NJSDIfIV15g1Oji8K44z4BCu0=; b=N73yM1e4ncQb49ZemKIlk4sn1q0OikKA6DtJLLczGd3puwVJoOAVZq2ZdHeR3rcCM9 gfkUIKJ6XipdabaMzIcJslft3i5c+OmSAXnXlY59CmVgE25trAuwtLUBFiSAil9DARuS /htrIP1DBQuH9Ajpa0m/1de8hJBmH3zIOdUlveTEBJ0ANjN4I+gWomEhgrnj7IM9YMSY SDTYs8epCYbSvGbdTMlmEUvaZus/4xK9UF4WEoltHk3muask7Oc8iwmrh24PHqUGbaJH rSxRIpH0VNBMRjGNcmherRWTwAIunW+nNagN+wWwKS6zkCLnvKcGAaFDT4AFJ+V4/iBj 42IQ== X-Forwarded-Encrypted: i=1; AFNElJ/thylz3fJ8QQOWX5G32j7Hki8YeUPL3wcAcPfjAsZLnWMRngQDGc1P+V9zE+yzHEcxh+Z5X/o=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3/3TDVe3cbKufkjri1dErhZfvTNDB6yoREsrMHhmboeDZHaTr zVpPOJvoN4y/FF8QdxFnirltAg7E9KwXSfjFXB4Vcjm49BWH0asmXjYf5qe8d0yzGSsdGLmumaD fxS91DeD8cu9bgmK8S8JATxv5ufvdN7jGJfcCL9owilOW7kAMDWxq+OWl5GM= X-Gm-Gg: Acq92OHTNdT78JHC8rat3yyAscIPQQnjd7zJcqIvdacAHdLWj5HfKujPzPRjXHRqJ9Q yNWTmB3lsT05VQeytDcq//PERm5A1d9J9P1w/NiK+SBR9zh+YBLtQ7pAVwIanqSPB2w9RVEefEZ 4dVohyjHShqp1U0nBIq7m0014ABmZHGXVkmX+vYc7CtrHAXsiGBZitfBaOp81ZPZmLvNjXhyoks xI3h4MKzTi22Oulbw0zTB3rE4msnCL9jDEGEk2ZFDebtt6OKnTRIFeAXmRn9eBfwbbfxCRFhY2N 0C3VCdRtX7HD1DXafqdnid6P24HGYQVsEBNj+0vZPNFqoYT1k5zqo2XdCbAFrwoss0LqRCYVa9q fvKcx05VzRojbhcV+mDHEWhNkGUm9TBolIwcM6wwKo/U+3A== X-Received: by 2002:a05:6102:510b:b0:631:4d32:a86 with SMTP id ada2fe7eead31-71e88e3f21emr2770734137.7.1781619285171; Tue, 16 Jun 2026 07:14:45 -0700 (PDT) X-Received: by 2002:a05:6102:510b:b0:631:4d32:a86 with SMTP id ada2fe7eead31-71e88e3f21emr2770699137.7.1781619284575; Tue, 16 Jun 2026 07:14:44 -0700 (PDT) Received: from [192.168.120.170] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bfdb7b6d8c2sm638601966b.38.2026.06.16.07.14.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jun 2026 07:14:43 -0700 (PDT) Message-ID: <50f7eb11-7bac-4d45-9e0a-b209f7e8e9f6@oss.qualcomm.com> Date: Tue, 16 Jun 2026 16:14:39 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 3/9] net: stmmac: qcom-ethqos: fix RGMII_ID mode to use DLL bypass To: Andrew Lunn , Mohd Ayaan Anwar , Bjorn Andersson , Bartosz Golaszewski , Eric Chanudet , Lucas Karpinski , Andrew Halaney Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran , Bjorn Andersson , Konrad Dybcio , Maxime Coquelin , Alexandre Torgue , Russell King , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org References: <20260612-shikra_ethernet-v1-0-f0f4a1d19929@oss.qualcomm.com> <20260612-shikra_ethernet-v1-3-f0f4a1d19929@oss.qualcomm.com> <42355330-c22a-4fce-98ab-dc22b321ff16@lunn.ch> <82705420-771d-41bf-a4d9-ed94dff86ff0@lunn.ch> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <82705420-771d-41bf-a4d9-ed94dff86ff0@lunn.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE2MDE0NSBTYWx0ZWRfX0ljIsTvDMbfQ /ErN1TY1Mlttx1u+qJ2M7HhP19mGJXdnqPGCCoFZHeVk2lvJFDSoQYjgTXtw1WkO+o2g5r/A1Mg NYH2c7vue9Lptk4v5ZCikQlLptOQ8MC0nQEIkZUmoxwn/Dhacy3I/XWVtcIJpTMiDibEef/k1dj bLnh4Fc1MmtWefR2cE2te83d6rEdRiSEbWP2sOWxKJ2qfYVLqX910+yPCQfLFUG0LRBwfpnLlWo N1PTBbWZyI2zcBue6bGHdcsaCvpxJ22AGON/dzQkG5HihTiGIjSIXUw38RlKTnJJsDoHAc0Ym9L PGXBsKpFKRBDDl7OU7kzIkSvcgpS3+77lSdjqnYvQggls+n7qNMnscHVTA1FnmXTjtD2kKjoxqt AGYjMIEQFCSA1Rs1teqhiGA4EWm3tWo3QA9TYo9wEJVaIP0d5q5IWa8qdgsIH5OO2+1cqynNWsf HoLsl8Xonvb3MqMm8zA== X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE2MDE0NSBTYWx0ZWRfX9A+MI1eIjoiO t0e1GR4VqNFDW4GJR23c14tsWcJ85gSlVQrEKtkYxjwFfnlIjPzqS1/fFxF0EdKoRPnF0sgzqQQ RlHd92LmuoES5SODdFbahvec20fSYOQ= X-Proofpoint-ORIG-GUID: 2oCk85WMU_OGY7UCrELEgspMMRMaZStB X-Authority-Analysis: v=2.4 cv=dZawG3Xe c=1 sm=1 tr=0 ts=6a315a56 cx=c_pps a=P2rfLEam3zuxRRdjJWA2cw==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=RaRby332RutXx2QLMF0A:9 a=QEXdDO2ut3YA:10 a=ODZdjJIeia2B_SHc_B0f:22 X-Proofpoint-GUID: 2oCk85WMU_OGY7UCrELEgspMMRMaZStB X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-16_04,2026-06-15_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 suspectscore=0 phishscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606040000 definitions=main-2606160145 On 6/15/26 6:48 PM, Andrew Lunn wrote: > On Mon, Jun 15, 2026 at 09:24:07AM +0530, Mohd Ayaan Anwar wrote: >> Hello Andrew, >> On Thu, Jun 11, 2026 at 10:54:37PM +0200, Andrew Lunn wrote: >>> On Fri, Jun 12, 2026 at 12:06:59AM +0530, Mohd Ayaan Anwar wrote: >>>> When "rgmii-id" is selected the PHY supplies both TX and RX delays, so >>>> the MAC must not add its own. The driver currently falls through to the >>>> generic DLL initialisation path which programs it to add a delay. >>>> >>>> Power down the DLL and set DDR bypass mode for RGMII_ID, then program >>>> the IO_MACRO via a new ethqos_rgmii_id_macro_init() helper. Also fix >>>> ethqos_set_clk_tx_rate() to not double the clock rate in bypass mode at >>>> 100M/10M, and remove RGMII_ID from the phase-shift suppression in >>>> ethqos_rgmii_macro_init() since RGMII_ID no longer reaches that path. >>> >>> I'm curious how this works at the moment? Do no boards make use of >>> RGMII ID? Are all current boards broken? >> >> Searching through the DTS, I found that we have two boards using "rgmii" >> (qcs404-evb-4000.dts and sa8155-adp.dts) and another board using >> "rgmii-txid" (sa8540p-ride.dts). No board which uses RGMII ID. > > So this causes problems. We cannot break existing boards, yet it would > be good to fix the current broken behaviour. These are a funny bunch.. QCS404 is a stuck in a perpetual cycle of "no one has the hardware" and "someone has the hw but zero interest or time". I think we've considered it for removal at one point.. I'm not sure to what degree the two SA8xxx boards are used. They may have been stuck in some sort of a limbo. Maybe Bjorn knows? Also +Cc some of the folks that contributed to them in the past Konrad