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 A782A35E95E for ; Fri, 17 Jul 2026 03:02:29 +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=1784257352; cv=none; b=ZbdhFbEOsuvgeEin4U+msBFJGqjlqEJLF7f1wQRb4YL6rP/3/MZZDmuHUSFWi+V8P6Cxd9BMn9V96Nd46gbX543LQ3Y3CSS1FD/DkOtdXQEYc1eXuH3Yi7mwk72zdbpKrgGOP/Kvq6ijAJCS2RooNcK30efM/KEn6ha6c3H8JmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784257352; c=relaxed/simple; bh=EVFdOQcBCUSWCKMzoYkRLwEZ54RS0XimYZS8kpTkYUQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JH1tsDaHlYywh43iQdy2S+ZnZ9XUTNL4TP8WaYsMl1HCtMxb7z1VPm6ZJYBNYumUd4WKsamVMNzV0yNypiaKa4PaoyKuJhObT3EWnkt/+xezedGWtt1EMPWdifPeOkujGU9SxaEXk+8D5TJKed/G5bzKWffr5jHeeY9DhO1pQks= 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=n+xO3t4q; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=irVNHFx8; 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="n+xO3t4q"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="irVNHFx8" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66GNIHew4023154 for ; Fri, 17 Jul 2026 03:02:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=okulbd00eydxfaiTL/nAM2B3 jvDdNW3YSh5leBM4+pc=; b=n+xO3t4qsPeC6rrx9GgP3CBI1bo01PCVS6kthSLo DuC5FEWWpxyPMvgWVupXD+VuNS1B67YFuUsyQEvVBcgsGseLrkwipaDXPTfbLtCU F946p6LxnHYx/KOYoqqyTBbjGju7onlVLXpC77oDjZzARIdAacepDRGvDnqnN/we wOO03JnYf+v+kIPiX80AKrBz7/MiAeWw7zRX2kJELT84RWUj6RwU8WXQvGY7Oinc Dedayg6y7R6a9rKOeiYyZst2EIHqI/Pt3Pd+t679Inh4DiVAZD9xFVGghvGFA+EA FA3yJj5X4iIyakP2NbDCVNK5zC1tQAdFLzI9wk8fzGXiRg== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ff3u8hrph-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 17 Jul 2026 03:02:27 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-38e4758ab46so587305a91.0 for ; Thu, 16 Jul 2026 20:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784257347; x=1784862147; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=okulbd00eydxfaiTL/nAM2B3jvDdNW3YSh5leBM4+pc=; b=irVNHFx837qfAuyD61dXjxGn3T8QF9CPQNfG0zWmcDv/CKw7160fZSMMBvC0vxzRzk dSdHmGQRkZzxQOsV4MPNPvi4A1mmcb+Ej3r/dEuOd8VOUjj3XIKw4kZUBnBT1rhfVOuk kpseZzlnnWeF+dz8D5Gk6zx9snPsxO1QZh2MqevJrn8i23Q9PapKobJyA1zEctSjaPFt XIaQUNf0ea79IQq6QUIS8e3rxpfBRZ7e0RQy5k6xzLD16jYGgmtXzH1MHBMGLVfqw3tL QrskxqIh+UAgOLLn8PS5eAzKPtfDaFTDtIpbh/2s/TogbIO2b1cXo2BUE8m9QO/YFoVK GhRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784257347; x=1784862147; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=okulbd00eydxfaiTL/nAM2B3jvDdNW3YSh5leBM4+pc=; b=WLkK2oa1uG8uJQMwrdwPZ/83BHiszlKTIzoTMuJh6JTXIcLRG4Au1QnmF0bWCHfG3c 3/3SQvGnwtw5bNbE3xSeWvFT1HnBXgRHAXlTcu1Oi2UH/4toXrGtPF1mT1gfna6EKrhA M3x49sSr/6oJDl+SoOCRyjT3kCHGxQh4AKRjOZtXsG16HrNtkM1727RSYg2LT5LiZlpf aR6c4F041YvT7vvcjWOBjTVqqtqoMwkpicqLV4WSbsE4Fa9MqSdZt/v3miNehZ0xocep NUfzkVJ1RInvrUJ/GR1t//5c9A5JnfcEVpprL5ydaaX1leLcG0mj48+lzuxJ9qazIdqM dkyQ== X-Forwarded-Encrypted: i=1; AHgh+RpEA3YiIXbdTkbtXfKNACRgkje9zynBjYPpAVVLpRXcbdxpJEOW3w6ZoE8Y6bSNe2R/fm+T84tNz/3SkwYi@vger.kernel.org X-Gm-Message-State: AOJu0YzSGkVqmApFH3cJ+OOx5DKe3Pl1jOI+UAsVYq6Cyxz9836rVZgd +C2L3ZTLr9ll4mjxfXjzcvTuCeysA1LbDBfPd+gJiMqtnfbIEjiEfXTvXXArnDyF+R61UyqUgA+ c4UZqjlCvlcrS1xk4xNhGlMVbBLmseX7fFgmqtbAQWWENGRxMcXJ5/lfwbSEvA9ZGCiM0 X-Gm-Gg: AfdE7clwTyVV9nTD6kW8ewAMNkRX1F3+g78uqJm7aSWnyJLrEoNEAB2rEbifPWZSH9F D4Hp172G+C0+JKkTOvbp3ZXZ3VHnAKClgr59/3fk2M4flPf0TqWNL0kusz6XnXuU1d28UoRid3g n+j1fwaSgAsiTDVdj5+4iFVXA8Yn7izoso/1JKOAwhvAbkK/US8Y2AVh3hMwANLLLgsCv044u+C cgra7pWbnOP28IrCxLgyfepk+oXCYT6CPQk62s2pCmBVjrOUubQ3fc2iZ0v2c7qlDBprPLJfjS5 SoKdG2sdF/dU4MH78NeSTI+7xhUF3Gaz31JmKd5W84huy7CvGSDY4ZLffz8FB/7zOoRROnT6HET pw/lEmkpIJtzFYuo6wie+QQ+rDsmK8H9FbK2bZB9O7CZSCbo= X-Received: by 2002:a17:90b:3c43:b0:37f:9ce1:735e with SMTP id 98e67ed59e1d1-38e4b537ddemr669529a91.31.1784257347124; Thu, 16 Jul 2026 20:02:27 -0700 (PDT) X-Received: by 2002:a17:90b:3c43:b0:37f:9ce1:735e with SMTP id 98e67ed59e1d1-38e4b537ddemr669511a91.31.1784257346642; Thu, 16 Jul 2026 20:02:26 -0700 (PDT) Received: from hu-qianyu-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3142a1de21asm1298743eec.23.2026.07.16.20.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 20:02:25 -0700 (PDT) Date: Thu, 16 Jul 2026 20:02:23 -0700 From: Qiang Yu To: Konrad Dybcio Cc: Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v4 9/9] arm64: dts: qcom: glymur: Wire PCIe3a/3b to shared Gen5x8 PHY Message-ID: References: <20260518-link_mode_0519-v4-0-269cd73cc5d1@oss.qualcomm.com> <20260518-link_mode_0519-v4-9-269cd73cc5d1@oss.qualcomm.com> <6802dc29-d783-40df-bbb8-8b2dbd94be29@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Proofpoint-GUID: -8FxkM72EdNmaJeG4lyg5A3YpJDvYwu2 X-Proofpoint-ORIG-GUID: -8FxkM72EdNmaJeG4lyg5A3YpJDvYwu2 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE3MDAyNiBTYWx0ZWRfXzQP07cTR1K/V 6VPIakZzC6t+V7qVwwsZrQTfnEGsekLrF9cBcENRSdA0tyu76FpafTh7CXxonEZz/fXqq7qcUqz 3dTgKQfQwHRtt7wutqIF4kd1vRsxzfQ= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE3MDAyNiBTYWx0ZWRfX/xIKY/MC9nmo pDyd/bdBQZsH75exy848JfZCeZqJ4lyJYL86hJphaBFO6AMUFzNTkGBUBlpryXPc423AcMsBJf3 Un2Ai/0NCsxxnzcXJEoaxImouHWcJmt5ehb0VaZc0g1nmeGXB6Sx7WtbUkZq/Y6nDhPIGguRGh5 CEzFZiBYknwlxTMUwkUnnPHB5TzbDN/knbE/OxsssETGMU98PyRuwgTO2e7Vbi8sWuZAeg6vglX nL45v2HGcpjT/L+sm7+9dCd1NaYyCF3uD9FW81xJ8c4l4B9+ksjXmPOx5pLuTShWW0hOVIB/2u/ MbIBg4k8gFQpx6tAICfhChsvXZ9KJfA/CObMYFveC0NGGg2scEX/ly3zhFdqjNqrEuYhYzRbtT3 yWgk1h38zX9EkJ6Cz3362OJkkamDCjaY9aS9hkCi0pjuE4wGiV5hsPYCvhJiP4iyjVV9IlXoJqU n5AQFQ4AlOObYgNtx2A== X-Authority-Analysis: v=2.4 cv=TL11jVla c=1 sm=1 tr=0 ts=6a599b43 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=kj9zAlcOel0A:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=p66J1l9MvY5bjjRUTH8A:9 a=CjuIK1q_8ugA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-16_08,2026-07-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 clxscore=1015 lowpriorityscore=0 spamscore=0 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607170026 On Fri, Jul 10, 2026 at 03:25:37PM +0200, Konrad Dybcio wrote: > On 7/10/26 3:11 PM, Qiang Yu wrote: > > On Fri, Jul 10, 2026 at 10:44:20AM +0200, Konrad Dybcio wrote: > >> On 7/10/26 4:19 AM, Qiang Yu wrote: > >>> On Mon, Jun 29, 2026 at 11:20:07AM +0200, Konrad Dybcio wrote: > >>>> On 6/29/26 7:05 AM, Qiang Yu wrote: > >>>>> On Wed, Jun 17, 2026 at 01:19:49PM +0200, Konrad Dybcio wrote: > >>>>>> On 5/19/26 7:47 AM, Qiang Yu wrote: > >>>>>>> Glymur PCIe3 uses a single shared Gen5x8 QMP PHY block. Model PCIe3a and > >>>>>>> PCIe3b as consumers of that shared PHY provider instead of separate PHY > >>>>>>> nodes. > > [...] > > >>>>>>> + linux,pci-domain = <3>; > >>>>>>> + num-lanes = <8>; > >>>>>> > >>>>>> Is it fine to keep num-lanes 8 here even for configurations with > >>>>>> bifurcated PHY? > >>>>>> > >>>>>> I would assume so, given essentially this is a x8 host, whose 4 > >>>>>> lanes may simply be effectively NC > >>>>>> > >>>>> Actually, on existing platforms, the PCIe3a and PCIe3b controllers are > >>>>> never enabled at the same time. When PCIe3a is exposed, it is always in an > >>>>> x8 slot. But if we have a x4+x4 platform in future, we can simply override > >>>>> num-lanes to 4 in the board.dts. > >>>> > >>>> My question is whether that will be necessary - if yes, sure, we > >>>> can do it, but if not, we can conclude on this early and not have > >>>> to fight over it in a couple months > >>>> > >>> I think we do need to override it in that case. If both PCIe3a and PCIe3b > >>> are enabled in x4+x4 mode but PCIe3a keeps num-lanes = <8>, userspace > >>> will see an 8-lane slot. If an x8-capable EP is connected to that slot, > >>> both ends will advertise x8 support, but the link is up at x4. That looks > >>> like a genuine bug from the user's point of view. > >> > >> Do we know what's advertised on x86 PCs with bifurcated lanes? > >> > > On QCB, it advertise x8. On CRD, PCIe3a is hidden. > > No no, I meant to ask whether we know what the userspace gets to see on > e.g. an AMD system with a bifurcated slot. I would expect that LnkCap > may report a different value, but not necessarily. I would assume we > should probably mimic whatever that does, unless the spec takes a > stance on what should be done. > I don't have any AMD/Intel hardware with a bifurcated slot at hand, and I couldn't find an lspci example showing what LnkCap reports in that case either, so I can't confirm what x86 does here. But can you elaborate on what is the benefits to set it to 8 in x4+x4 mode? - Qiang Yu