Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1658054rdb; Thu, 25 Jan 2024 02:13:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPpOGFuWqbi2byuFLa+MLBlv3FPcHrY7exv1XowWn83uY76tJyejog89ICLA3+JKaSSvw2 X-Received: by 2002:a05:6359:4282:b0:176:2340:70be with SMTP id kp2-20020a056359428200b00176234070bemr1023254rwb.43.1706177617169; Thu, 25 Jan 2024 02:13:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706177617; cv=pass; d=google.com; s=arc-20160816; b=w6pMWTCN7Ya1ggMrfCEUFzjjneoc1bmr2bhPeDUMDcpdkZ4jsFYan7NXKIDWkDtDaF 9MEbEb8kpYaSV0362EmaoE8z6HA8DH4miKC6BhctDgNOxEapVEQw2bMy8SIEdRnLYBzn nLo4kxxllY5J0P7ENiNrm7MiSnmaBfc5CTTH/yXujQw4tNoOr1BPCPiPkpy8aSiIY4i5 7y34luHs508lVpzKJ11vBc2g37kzE9IBSth6bUs7xla+CnGoevKeK5n5CiWPvJmpZqWO PbKwASqJ6vNaHEr1/rQmZ9iJf+Ke1SySIGe8Sm7qboeHUpZ74AU9yuHceb7yfN80BA1Z TAlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/Lmt658XHei/YTYu+MA0LY9n7IDvawBEOz497OhPBCk=; fh=Q6F0w1UJ4hys+0l88lLsh4QQve3EEzWKqoc+7hHuWM0=; b=SeCWP6O6SJoq6kUquv7OYk2DJsHSvhwOGSH4Qaz4KOULchFq6AqHL1xipHhrrpthNC eB8nFV2oc9Uwhy9NYDFasSX/bfnINfh7i4+2O/CVLn4l3Co4z1vupWSztYiRYN7AYJhb dzTsmYY3fOA13P3ITBxn6Dl2zKbdqojBWMD1jB4ggGB2b6R4BkxCYc1OO20q07VycwDq v8QqMW+UXlDW12VXgJ5sWQa/EmLHodXjhyH5QO6CfzxOLKR7MLy0vrteIVT6LwUrchb1 vMVI3JxeuejooxBUyRmY/Ld6xOUnQeiceR19t28NeBZuTKQmTaEYTKi0tPV5IKTZKKTi BMCA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="HDuo/eue"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-38368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38368-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m62-20020a625841000000b006d9b327f2d8si15090436pfb.74.2024.01.25.02.13.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:13:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="HDuo/eue"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-38368-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38368-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B89D929372D for ; Thu, 25 Jan 2024 10:13:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9168F1CA82; Thu, 25 Jan 2024 10:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="HDuo/eue" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 DDF771BDCE; Thu, 25 Jan 2024 10:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706177608; cv=none; b=LWAYuuEyy8suLQhO3MgY4oxIVfcLtALZTi1JDI2UZ3777vb1ldqsqkauORupu8LZrJxN0G0VZIKWUXn++1hhm5Q7Wa5/NVklO74JaPgoqVEYoiD7g1Pu7uvNL1AmHagGjla3o4pFE/LiKbT6Yyn8qUBG8bUiAjcruZLO+C4kxp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706177608; c=relaxed/simple; bh=19wsUBvWr9AyJ8rEvzCJlZcAgDpfrwMvGtsNo6lA6Nc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=byZdVPL+70z9sM5wl2/NF45nxQyGW+8EAgwxQO6X1WeqUXCPTAeNyDzlpcry6PPj3miVn7jvnutt+dRoNMPZ0EVSwMxijIsVLWIkWmP+RLiwNtIUA3AgxyO42+AOmMbGar9UGdJmH9I5o0JjvCXV7D+9ZQWduKd5OGblt/6huM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=HDuo/eue; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40P31JFo006530; Thu, 25 Jan 2024 10:13:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=/Lmt658XHei/YTYu+MA0LY9n7IDvawBEOz497OhPBCk=; b=HD uo/eueXSHH/+6KL4HzvFfvIthBKNZus1t3Uj5Hlafpd4Ubmo7FmoDnXyZpyQXKka TUJGu9gIXXyVNVlm4dLpnZUdrnRWs9X69U+nO1kt/tSMG8AxfO+kzQcTHaEHKuRS 4dHbUZLb4FIjpnFpH4qnKjXIUGhst26lCnY6j60gqZn2r6F/rs5vlyZDgftSF6Kj +obAQT/17/cY6bDuxqQ76ZcDuWDPDhvIvnL/w6HR30K8FwCKcacJLM6/vP44Qcpw VMW/sF/gm+3k5ijvx8VkMQ7mdF0LTejLVzeSQZy+hIuBGxaj7mXJm4RIswHJQH/b Ms7QQW5/xsRXkPJoEE3g== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vufc80va1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 10:13:16 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40PADFmK002157 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 10:13:15 GMT Received: from [10.239.34.220] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 25 Jan 2024 02:13:12 -0800 Message-ID: Date: Thu, 25 Jan 2024 18:13:10 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] phy: qcom: qmp-pcie: Update PCIe PHY settings for SM8550 Content-Language: en-US To: Konrad Dybcio , , , , , CC: , , , , References: <1703742157-69840-1-git-send-email-quic_qianyu@quicinc.com> <0a3f486d-0135-454e-9da6-b888e516a39e@quicinc.com> From: Qiang Yu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: y9RrHQIh0438GnlteZ4yndHiNo-vDIH0 X-Proofpoint-GUID: y9RrHQIh0438GnlteZ4yndHiNo-vDIH0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-25_05,2024-01-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 suspectscore=0 bulkscore=0 spamscore=0 priorityscore=1501 mlxscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=642 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250069 On 1/25/2024 5:51 PM, Konrad Dybcio wrote: > > > On 1/25/24 08:53, neil.armstrong@linaro.org wrote: >> On 25/01/2024 03:59, Qiang Yu wrote: >>> >>> On 1/24/2024 4:58 PM, neil.armstrong@linaro.org wrote: >>>> On 28/12/2023 06:42, Qiang Yu wrote: >>>>> Align PCIe0/PCIe1 PHY settings with SM8550 latest PCIe PHY Hardware >>>>> Programming Guide. >>>>> >>>>> Can Guo (1): >>>>>    phy: qcom: qmp-pcie: Update PCIe1 PHY settings for SM8550 >>>>> >>>>> Qiang Yu (1): >>>>>    phy: qcom: qmp-pcie: Update PCIe0 PHY settings for SM8550 >>>>> >>>>>   drivers/phy/qualcomm/phy-qcom-qmp-pcie.c             | 20 >>>>> ++++++++++++++------ >>>>>   drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v6.h      | 2 ++ >>>>>   drivers/phy/qualcomm/phy-qcom-qmp-pcs-pcie-v6_20.h   | 2 ++ >>>>>   drivers/phy/qualcomm/phy-qcom-qmp-pcs-v6_20.h        | 1 + >>>>>   .../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v6_20.h   | 2 ++ >>>>>   5 files changed, 21 insertions(+), 6 deletions(-) >>>>> >>>> >>>> - On SM8550-HDK: >>>> # lspci >>>> 0000:00:00.0 PCI bridge: Qualcomm Device 0113 >>>> 0000:01:00.0 Network controller: Qualcomm Device 1107 (rev 01) >>>> 0001:00:00.0 PCI bridge: Qualcomm Device 0113 >>>> 0001:01:00.0 Non-Volatile memory controller: Phison Electronics >>>> Corporation E12 NVMe Controller (rev 01) >>>> >>>> >>>> # lspci -nvv >>>> 0000:00:00.0 0604: 17cb:0113 (prog-if 00 [Normal decode]) >>>>         LnkCap:    Port #0, Speed 8GT/s, Width x2, ASPM L0s L1, >>>> Exit Latency L0s <4us, L1 <8us >>>>         LnkSta:    Speed 5GT/s, Width x2 >>>> 0001:00:00.0 0604: 17cb:0113 (prog-if 00 [Normal decode]) >>>>         LnkCap:    Port #0, Speed 16GT/s, Width x2, ASPM L0s L1, >>>> Exit Latency L0s <4us, L1 <8us >>>>         LnkSta:    Speed 8GT/s, Width x2 >>>> >>>> Tested-by: Neil Armstrong # on SM8550-HDK >>>> >>>> - On SM8550-QRD: >>>> # lspci >>>> 00:00.0 PCI bridge: Qualcomm Device 0113 >>>> 01:00.0 Network controller: Qualcomm Device 1107 (rev 01) >>>> >>>> # lspci -nvv >>>>         LnkCap:    Port #0, Speed 8GT/s, Width x2, ASPM L0s L1, >>>> Exit Latency L0s <4us, L1 <8us >>>>         LnkSta:    Speed 5GT/s, Width x2 >>>> >>>> Tested-by: Neil Armstrong # on SM8550-QRD >>>> >>>> Thanks, >>>> Neil >>> >>> Hi Neil, >>> >>> Thanks for testing this patch. I verified on aim300, did not see >>> speed downgrade. Let me have a try on HDK8550. >> >> I haven't seen speed downgrade either on the HDK8550 > > I'm guessing the 5 GT/s link goes to the Wi-Fi chip, which may > be negotiating a lower PCIe gen in order to save power. > > Konrad Hi Konrad,Neil. OK, I see. I misunderstood. Thanks.