Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1273890lqa; Mon, 29 Apr 2024 03:56:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfLFoBa+Ffx5PwoMklHUwdc9e9kPTfkILP1XWFEjeRZmRnGJEQ3wbnYvh9KOKzAYXNUF56vvyly8uGgBu5TxtDsLr63leIc9rqVxNo8w== X-Google-Smtp-Source: AGHT+IHVzrdKsQf8dndBMTGG7eTivdYF9xo6UQZ0HZUjHqXtIOoJjr4ojsUTFWmlK9P0fpi0yExk X-Received: by 2002:a50:d69a:0:b0:56d:c928:ad76 with SMTP id r26-20020a50d69a000000b0056dc928ad76mr4561705edi.26.1714388160122; Mon, 29 Apr 2024 03:56:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714388160; cv=pass; d=google.com; s=arc-20160816; b=dh2XkqoS+BWV4r2iB1bhBzxXxQOqytkzacT5tiJwkMOMwROSOGU9JkrjbVGAcQqwNi DL4hBQxWrxS6EJ/X5kXto5QMlQpoO2Hgv7HRfGs/R/23/BBKjYZzIDG9kKvEctUVgBSF itNEo5m9lU0079YXCA2Fubz3sfCRFeKc7I5yqtKiTmFwqd2zpEpLiSIYLGGk6vok6H5d FEkFm6uc3fEFT9arEGDd7jKrMtazMioqKMjXFK24SqvoFwb9Q1Usc3lB4XXZcblz+QuC p4D64iI+/NDQ3VfnedRjhPREfO2e+pARBAQO7hBlG4gWRdSqLjCkM6IbgakzcSmd8DOq qDRg== 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=HK9OBY6JCsI5PbvjejB+IUXQa8uw72iX0OVXzGaQJV4=; fh=y4xc2zu4CkKhlq8xo2RPBfTCeG28Ai2Ha+I8cb1o3fc=; b=rYxbMGirMEWNwWtQpA54AUunJqbNwQ8a6njCBl9kF1Njpzz2UkKUsTGIMgyEcGJ+fX 4lkO2oTFRv/ikfIBzpmWdF9fmkqqmT7sIa+jBDK+rUQFfwXq4PJnHH8iq1Wf5slP99Xn ddRH6mYWDAI2KSby43o+UTROqMSbG0L7Ei1Toxzvj54lpfT9wNB5xgIT1at5e3e89ja/ 14FFs5bxh2C4D55leSBAvjuENT5urhL6INfAdrnf3nHzkaqcuZRfhKarzCd6Kp3tdd5x 3bFMSw4YfCMYvjBgZSZthd/AocfyDjibe4P2UHKGq54MEme3LXnPm/F+1DGhhOO0nMa0 MlUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RqN72Smo; 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-162105-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z3-20020a50cd03000000b00571e13d19c6si12598565edi.353.2024.04.29.03.56.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 03:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162105-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RqN72Smo; 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-162105-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162105-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D65591F2383B for ; Mon, 29 Apr 2024 10:55:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B58563BB43; Mon, 29 Apr 2024 10:55:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RqN72Smo" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 267633987C for ; Mon, 29 Apr 2024 10:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714388147; cv=none; b=dVBcylr1H9gfgtsbAlZgamnYbC5R3EdHqxQYmhzpxq5dtBPTVQaE6njBXb+zW/DU1LkrNeN1g0Ipx4XbytCSuM0vS0nb3wRPeCkojZENixug0pC8Wtx7DySaJ4AD8Dh50dUR1iJ6dx3rd3G2LvHbLT1OImGuaMLnqVZy5XHJtOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714388147; c=relaxed/simple; bh=Xpupn6nv6f2q38+tmYSrohtAxHhfoWPOabgy2X+P2HM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=eegfEIWqYmO+J3qEHZGlUaltpYl7HJHElfEwaDLosYaQ5zqgMvdlw0c1uHS+eM2x6kPbXsB+VlE38x8JA4O1rwZbP25jplzR7pal5fLb5sAL8bfq7X6pw68PzUpsH9SVj5NzDALWBhf7nczKY9tMkdNkNFP0GflwXvZpydvT6U4= 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=RqN72Smo; arc=none smtp.client-ip=209.85.219.170 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-f170.google.com with SMTP id 3f1490d57ef6-dc6dcd9124bso4144281276.1 for ; Mon, 29 Apr 2024 03:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714388144; x=1714992944; 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=HK9OBY6JCsI5PbvjejB+IUXQa8uw72iX0OVXzGaQJV4=; b=RqN72Smo87boybYk0biU491UJ2hX+RJHRb0epw9NuEPoXPbZy+O/dcrX2UQzwz8zfn 22unEBQRlyVVqSgIQ/HEephQ9WNkxmNkLm8v2VzY5JUlHFujea//EyDoUTY6m0hgFpJD vSixFTitHZPDDzbd/I3UGA4l0UoHZjBbeZbI0FbsSwFOjZJImU4hDUfDlniXwaeSsrJ1 NdQQjLtv7e/TT8Norxfk8IVQsMmxpYgXr6BpoPtQQ1Iqb2cQXmjWc98pYN0UPW96r8G6 8dKBcsZvFHCValowyiSrTJAnLiJnSU138DJr9MctjH2udQl5ua90RDaXiVV6R7kX0Xaw IZLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714388144; x=1714992944; 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=HK9OBY6JCsI5PbvjejB+IUXQa8uw72iX0OVXzGaQJV4=; b=JBbWQP4r7iN9UonkvGHnGmMinJeYjqQVs/F5NwEkI2yUC/gOE5oF0a+JmUbVeao2vS X/Py++rh2wjMEzeQI85qLe2tnhKIZ57zINoi6BJrS/cD/dyu5xxnTAXmhJqTwDurxRzU vkrPmFm8n896QnYlax+syLjzzCRpM43XW+UjPvhGQjiePRjUTelNTXIIUhl+Qg3BEcQo 4egtC2WjxQ15PK0ewNIct1mil4NSjCsSz2jqozM08tlqcCgw7c8zV8guV60rfIj0nYHc 2WfYFUP/yAU0zSXrUkq9K0wb5qneAO0vJ9vila8byPy1rVuqkFQ+TqM+H01K7PJpyExd y8rg== X-Forwarded-Encrypted: i=1; AJvYcCWX22KN8UHNCX6lEudqsy8Y/1+SeTx0MpIliZ9xkRukjP/15x1+4e/DTo3/0mGvkYBS/vGg8S07QWDauxh6EtcEWanXLLJ4dGfLXRYf X-Gm-Message-State: AOJu0Yx1vJtLUexSii3oLX8xf62fu7XaZkWygncISa6bmI4VBG/dBi/2 YDu44oT5ynQGiUy5jqfgegx/6UvBmCOV95SEmZPXPrm+Nm8Op9TYMnez9wlab4hL2J5f1EHAxfo BlRaIqMYdr9uhk55nxUVw3YeD1yEv8p+ZRavd0g== X-Received: by 2002:a25:ae18:0:b0:de5:5d4b:1632 with SMTP id a24-20020a25ae18000000b00de55d4b1632mr9731287ybj.60.1714388144152; Mon, 29 Apr 2024 03:55:44 -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> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 29 Apr 2024 13:55:32 +0300 Message-ID: Subject: Re: [PATCH v3 6/7] phy: qcom-qmp-pcie: add support for ipq9574 gen3x2 PHY To: Varadarajan Narayanan Cc: "Alex G." , 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 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? > > 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