Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp116524lqm; Tue, 30 Apr 2024 15:00:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW76e7hgQSC9+vH0kDbUCaSr5EiPu9lPqkO1sdTl+qphyovz2ZstHTYEoVqOFdzy+kNp5pxa8yIAYUL3wV8AQQFT6oNW9O0GltKTmSw5w== X-Google-Smtp-Source: AGHT+IGxZ2q2eIMNMpLv00/NlA/yXusIUgGNgiDjN1rQ1C+WYojLLfnsSIfHzrjir8DBMIvTIcQz X-Received: by 2002:ae9:ee13:0:b0:790:eb7d:dde with SMTP id i19-20020ae9ee13000000b00790eb7d0ddemr518702qkg.52.1714514405790; Tue, 30 Apr 2024 15:00:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714514405; cv=pass; d=google.com; s=arc-20160816; b=P3u7XXHCAt9fLwUuScjp1rCd8kgRxMIeSpCfaGdGcNGAyu6wlvdF5G/VjIEsJ4ysE1 UOKaUiCXUMrkGiGX9g3gCbrBEcfk+HLMY6L+gBJtvBDH7Cf8ThkfDGLOegrENndaqsNp dLrqijnM8lBZ8ml5HT04eCEDqkoxenV1ZnPgoHcSm4LBK3qOIH6+yi7dcfKI9RU6zov6 dHK/APLaJlUehQOfNtKE1+1+pBq60t492yJ3KDl/qNFzYQJP7/ucM98sxtoNUGXuvRhf COYHu6dH+t8QgfJUUqRpogXlxUkmcO/johZmiHU9rsDuztwFrPPq4PZmqe7cbURAh0ft jNQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=aitWmRcAVpn7HzPwQhTVKeFU7re+mCUC33ppmlezlfs=; fh=b7Vj1CFeYl2YsaeKrTkalbM3t+G02Zguje+YOJkSxaY=; b=X506geXiZj3fKHfToQ1jCLfAoLZavz3i+cNvDTmx0UqbqRHne+61EVXRN0aZB1r1fl KlyubcAZOlV9yv4vkz0rIT3DGqYi8CxADkM0bX3ZAlDjLEByvOHr4dNxyqZRsY3S2SLQ iiP7QzFwIN9Mb4vh8xt5PcQUO3QYat8ZrF7BBZmup1VsARf8EvVU3Gzfr2vsEbOVZ6Fc Wcs74EO4Frpu8S28/KC7DILBleSCyYQayaeRkurfw+JcxoF/rUthAgEAHj5Akn0u/Gju KeXp42b7tmkrvoxx0nsCq4cKdpxPvFueIHNLWwrNvro8KPo4Fc5OhWSgJuGSGxmh5nd0 VNqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AmnQ+JW9; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j4-20020ae9c204000000b0078825f3c45fsi28102929qkg.137.2024.04.30.15.00.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 15:00:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AmnQ+JW9; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164764-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A84A1C22986 for ; Tue, 30 Apr 2024 22:00:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 169FC1BF6CB; Tue, 30 Apr 2024 21:59:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AmnQ+JW9" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33CA51BED8F for ; Tue, 30 Apr 2024 21:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714514393; cv=none; b=SowWmjiT9RubzaNAhxLI04aLGYdL3NXu/p4O7LUr4Vw1AVZ7mvmGNN1rgiCTiuwuTnedqsi1T9MQSDnMp0aQMmuzhWN7/rMSuvYg0YWfEIlOxDu1q4ZdsvdlPo3aq+5hJr2KpD1PRQoZWEdO+Ph/YEypLvzCE44HwZj941cLRM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714514393; c=relaxed/simple; bh=WjMKI4UZslQKccmIJplzRTJDSbleSPr2wCt6aMSDOzM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YzYagf28hXScUt7YstaENwc7fjO9mmXgdQnrgD5EHhmUWEShDqERgoeSlev77NJEvPBkTxiNmzjqGHeh4sWY2Fr9cBm11Fon2szn1/C8WyieSdqko8xyH3IZXAoAPzok/2oSXVffMVpiWlvlUAFiaMfzktksc+J7EZMbn2acCjY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=AmnQ+JW9; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-de5a7b18acdso5757888276.3 for ; Tue, 30 Apr 2024 14:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714514389; x=1715119189; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aitWmRcAVpn7HzPwQhTVKeFU7re+mCUC33ppmlezlfs=; b=AmnQ+JW9Y+6at3/PERebiBD14XIGrSas2RWW/gb6Q7I31NlM7RM6z7evFSZR03Tj5g hbVKbbIk9OR8N4fHbxPpP4zdqUaGGViAJ12N1tnScolB21twraj7bdzRZY3CGGwIFWLs ZW4ferFC5t656guOxx3ZwZoHhJf828/677rDtIhwtqrTXivlGfxPO1oQ8lxtNedgRAO3 1/+p4pBm7+rzMX+kXP3rgnRDROxzNq8MJDwTRyLtmiJHSCRgT8Qp9/yfOh3MtrxubET1 Ck/C+IGh2ZfXsiAv8BuvVoNSiuqw9h2ZSlYMizymqcsTIbgT5/741R1rYoZwnIP9v+/u nxng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714514389; x=1715119189; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aitWmRcAVpn7HzPwQhTVKeFU7re+mCUC33ppmlezlfs=; b=qe3VMnCd7qjYWGMvYN+C/m9G999ISBYIGyVUV54c/fUIlLS4kDcqQCIQYwl1GtWJUf a9MZUIN1lOvzIC+Z0lSQQlmwQ4gZ3XvZ618pF8+PpvACcWvRxKKL3soioRtTU6w5J6gv 8nCXJh3eNRd/ttmf72nuMuaTcEbPf77//t/+Iz6uJGM8MoL0oGQlSykIsdRqiyl18tFm Q9TN7VXSqRN1gZW50nI8ge605bwRXpTS5hQmU0yFIv4FAt1h3HQSmQZV3jhETRh4iQEh Eudj8CJ6j1wDDC77mCSeryuBdbRhcoM21Jv14NEVhm9ow4BTSI+k5LepS9nhXnb/+DYg A2JA== X-Forwarded-Encrypted: i=1; AJvYcCWlnCRwciPM6RBxNmF62xvikiVecUBGZF6DLfrWY+iyGJdwBDod2yCftdcodW2UcddIJZrUCKV0MA/KxJoNrffySK8Tp+5aucMFnObn X-Gm-Message-State: AOJu0YwdLtv7OrH9Pz6AuUgh6XzOBEZVrSlIfQHR3Xj7QE0rj7HrrZGX /HJwRzSH9plfSQUdl+EAxAI9V6+46zvZ+ysXGv9EY/0hw7xPJTZ1fopRwmSuQprjXYNtfyCkQLI cicY+TGeUs3tF/agOkpZuW+kNUeg/GDFZp67BTg== X-Received: by 2002:a25:907:0:b0:dcc:9e88:b15 with SMTP id 7-20020a250907000000b00dcc9e880b15mr878986ybj.41.1714514389105; Tue, 30 Apr 2024 14:59:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240415182052.374494-1-mr.nuke.me@gmail.com> <20240415182052.374494-7-mr.nuke.me@gmail.com> <6726fa2b-f5fe-10fb-6aab-f76d61f0b3cd@gmail.com> <4a7b1e1d-ac68-4857-8925-f90c9e123fd1@gmail.com> <9d9c569b-2e9c-4fd3-9a1a-50f198bd0884@gmail.com> In-Reply-To: <9d9c569b-2e9c-4fd3-9a1a-50f198bd0884@gmail.com> From: Dmitry Baryshkov Date: Wed, 1 May 2024 00:59:37 +0300 Message-ID: Subject: Re: [PATCH v3 6/7] phy: qcom-qmp-pcie: add support for ipq9574 gen3x2 PHY To: mr.nuke.me@gmail.com Cc: Varadarajan Narayanan , Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Michael Turquette , Stephen Boyd , Manivannan Sadhasivam , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 1 May 2024 at 00:51, wrote: > > On 4/30/24 1:31 AM, Varadarajan Narayanan wrote: > > On Mon, Apr 29, 2024 at 01:55:32PM +0300, Dmitry Baryshkov wrote: > >> On Mon, 29 Apr 2024 at 09:20, Varadarajan Narayanan > >> wrote: > >>> > >>> On Wed, Apr 17, 2024 at 12:50:49AM +0300, Dmitry Baryshkov wrote: > >>>> On Wed, 17 Apr 2024 at 00:25, Alex G. wrote: > >>>>> > >>>>> Hi Dmitry, > >>>>> > >>>>> On 4/15/24 16:25, mr.nuke.me@gmail.com wrote: > >>>>>> > >>>>>> > >>>>>> On 4/15/24 15:10, Dmitry Baryshkov wrote: > >>>>>>> On Mon, 15 Apr 2024 at 21:23, Alexandru Gagniuc > >>>>>>> wrote: > >>>>>>>> > >>>>>>>> Add support for the gen3x2 PCIe PHY on IPQ9574, ported form downstream > >>>>>>>> 5.4 kernel. Only the serdes and pcs_misc tables are new, the others > >>>>>>>> being reused from IPQ8074 and IPQ6018 PHYs. > >>>>>>>> > >>>>>>>> Signed-off-by: Alexandru Gagniuc > >>>>>>>> --- > >>>>>>>> drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 136 +++++++++++++++++- > >>>>>>>> .../phy/qualcomm/phy-qcom-qmp-pcs-pcie-v5.h | 14 ++ > >>>>>>>> 2 files changed, 149 insertions(+), 1 deletion(-) > >>>>>>>> > >>>>>>> > >>>>>>> [skipped] > >>>>>>> > >>>>>>>> @@ -2448,7 +2542,7 @@ static inline void qphy_clrbits(void __iomem > >>>>>>>> *base, u32 offset, u32 val) > >>>>>>>> > >>>>>>>> /* list of clocks required by phy */ > >>>>>>>> static const char * const qmp_pciephy_clk_l[] = { > >>>>>>>> - "aux", "cfg_ahb", "ref", "refgen", "rchng", "phy_aux", > >>>>>>>> + "aux", "cfg_ahb", "ref", "refgen", "rchng", "phy_aux", > >>>>>>>> "anoc", "snoc" > >>>>>>> > >>>>>>> Are the NoC clocks really necessary to drive the PHY? I think they are > >>>>>>> usually connected to the controllers, not the PHYs. > >>>>>> > >>>>>> The system will hang if these clocks are not enabled. They are also > >>>>>> attached to the PHY in the QCA 5.4 downstream kernel. > >>>> > >>>> Interesting. > >>>> I see that Varadarajan is converting these clocks into interconnects. > >>>> Maybe it's better to wait for those patches to land and use > >>>> interconnects instead. I think it would better suit the > >>>> infrastructure. > >>>> > >>>> Varadarajan, could you please comment, are these interconnects > >>>> connected to the PHY too or just to the PCIe controller? > >>> > >>> Sorry for the late response. Missed this e-mail. > >>> > >>> These 2 clks are related to AXI port clk on Aggnoc/SNOC, not > >>> directly connected to PCIE wrapper, but it should be enabled to > >>> generate pcie traffic. > >> > >> So, are they required for the PHY or are they required for the PCIe > >> controller only? > > > > These 2 clks are required for PCIe controller only. > > PCIE controller need these clks to send/receive axi pkts. > > Very interesting information, thank you! > > Dmitry, In light of this information do you want me to move these clocks > out of the PHY and into the PCIe controller? That's what I was thinking about. > > Alex > > > Thanks > > Varada > > > >>>>> They are named "anoc_lane", and "snoc_lane" in the downstream kernel. > >>>>> Would you like me to use these names instead? > >>>> > >>>> I'm fine either way. > >>>> > >> > >> > >> > >> -- > >> With best wishes > >> Dmitry -- With best wishes Dmitry