Received: by 2002:ab2:715a:0:b0:1fd:c064:50c with SMTP id l26csp7342lqm; Mon, 10 Jun 2024 10:54:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5LGjvPqPC00cmyy/Hw3ekZtzcLz82QQYD9W5Se1+b1o2kBdkiHtwwFmB54PDkmPfU6Lnv+DgBRfKs7D+77vhBIkDsrEn21hdAtzzB3Q== X-Google-Smtp-Source: AGHT+IEk53nMQl/U791hIZh8aDeY0YL3iJO88oIWFZ/unG8SzZN1rdkAHDQW4LjUDMFprrdKMyl1 X-Received: by 2002:a05:6214:5912:b0:6b0:724a:6ed9 with SMTP id 6a1803df08f44-6b0724a70f9mr83280226d6.17.1718042082423; Mon, 10 Jun 2024 10:54:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718042082; cv=pass; d=google.com; s=arc-20160816; b=aRGpramcy5QDYP4dXt3DoVT/SkXzD8oC4Yf5DYDE9yC0/MNEa3cXYxmMDOCG9iR+Nn +Vtm53JyTH0Rpj8Q+K47vZmzqiLqN+08UmfhXuryaVekhU5HCkSN0J9ZGCgBQK5EbrPD jt8TuAvqxgwukMli71e0gS4KM8A8T2en+tPjK3+1U/9+wmly5I0fNLjmY3Ppz1c+B366 VDviKqNl/aC1Fu02gvKfV9xiYffg76NKPf/YItomfoWFPR4ZzjStSe/1CV47qpomgh28 07mmK3a/xoNh4qUBDfj4hwX5qUxGFkK8Al09VQFmQ24bCwGe+4qya2pS1LkJhQRhVDmr LkGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=S1A6bSyYUKE7ub19CTSL6odxf97NkLGyn1tNJM5kHd4=; fh=fRWLaYhLm8SDAjuVTgNcMmbypaZMmfy1Z2Sp+KadsbI=; b=cundWtAAfmqWsgyCJxTvvGI0f9OGmMO8svOeoRb583JCuv7VdRP/+fi5ZZ9QB2exVy iVQ51UdnwNrDfmllpSiWSXg70Z1XS5drNYNLZGG587ZDgbxRV0Yfxo7MoubBnF4HrAmA 7Nl3FM5LKGS56oJyW/biy2FrHYHXyVVjkbj5A5afiOQJyh89mK2ngz11q4QQD/Ahllnp uFk6/5Cx68E1jWRGSB1eWqHbwsw/Cn6vQ4XZrdVawPlHAOxeU/0MrAEorYqRuPHLIlrB PduCEvSGOtFJFbqNoStXHFvLfbnl3Ra0fiFpVaTumb9WUCBkbUWIzf94z+HFxXHKyJ9s tUlA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-208682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b07291926asi54639346d6.600.2024.06.10.10.54.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 10:54:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-208682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 A73C11C22290 for ; Mon, 10 Jun 2024 17:54:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0591314D449; Mon, 10 Jun 2024 17:54:23 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 68C4E147C74; Mon, 10 Jun 2024 17:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718042062; cv=none; b=PTo6GWOY1N4C3SILLeGAtlQZuaq/cCkLGmx8fBPRtNmTGUrQAgIJJccVBWHEj+gbUTlBaMxk3n+QcdZawscTjZTzfADm5B9KqDEA3dYgd96w7GC+Jp+Q/GX1tr56En3q4RvknJ4rhcaC7iSq7XJiJQgwAxOit6WynQEJ0UwyVXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718042062; c=relaxed/simple; bh=leKKf29U173teK1FhuP+pu+V4jq3YaQC555HqoGy8Fo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QhlSxc0ePThzxBi61CJgPCjdIKESBfO4KQtbbIAwi9fe57LXgwm23WKgy7eaol5basMHNbZufZNxx1SNboF8Fd3BpyX5XO10hsgfQ4lnaOwfP9jWgn324+6OELOw8xfUKBksrlFkMMhcn5A/JFnc1Iu7pMpILxkrROia2NjmklQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4248FC2BBFC; Mon, 10 Jun 2024 17:54:17 +0000 (UTC) Date: Mon, 10 Jun 2024 23:24:12 +0530 From: Manivannan Sadhasivam To: Devi Priya Cc: Manivannan Sadhasivam , bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH V5 6/6] PCI: qcom: Add support for IPQ9574 Message-ID: <20240610175412.GB7660@thinkpad> References: <20240512082858.1806694-1-quic_devipriy@quicinc.com> <20240512082858.1806694-7-quic_devipriy@quicinc.com> <20240530144730.GG2770@thinkpad> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Jun 10, 2024 at 11:15:55AM +0530, Devi Priya wrote: > > > On 5/30/2024 8:17 PM, Manivannan Sadhasivam wrote: > > On Sun, May 12, 2024 at 01:58:58PM +0530, devi priya wrote: > > > The IPQ9574 platform has 4 Gen3 PCIe controllers: > > > two single-lane and two dual-lane based on SNPS core 5.70a > > > > > > The Qcom IP rev is 1.27.0 and Synopsys IP rev is 5.80a > > > Added a new compatible 'qcom,pcie-ipq9574' and 'ops_1_27_0' > > > which reuses all the members of 'ops_2_9_0' except for the post_init > > > as the SLV_ADDR_SPACE_SIZE configuration differs between 2_9_0 > > > and 1_27_0. > > > > > > Reviewed-by: Dmitry Baryshkov > > > Reviewed-by: Manivannan Sadhasivam > > > Co-developed-by: Anusha Rao > > > Signed-off-by: Anusha Rao > > > Signed-off-by: devi priya > > > --- > > > Changes in V5: > > > - Rebased on top of the below series which adds support for fetching > > > clocks from the device tree > > > https://lore.kernel.org/linux-pci/20240417-pci-qcom-clk-bulk-v1-1-52ca19b3d6b2@linaro.org/ > > > > > > drivers/pci/controller/dwc/pcie-qcom.c | 36 +++++++++++++++++++++++--- > > > 1 file changed, 32 insertions(+), 4 deletions(-) > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > > > index 3d2eeff9a876..af36a29c092e 100644 > > > --- a/drivers/pci/controller/dwc/pcie-qcom.c > > > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > > > @@ -106,6 +106,7 @@ > > > /* PARF_SLV_ADDR_SPACE_SIZE register value */ > > > #define SLV_ADDR_SPACE_SZ 0x10000000 > > > +#define SLV_ADDR_SPACE_SZ_1_27_0 0x08000000 > > > > Can you please explain what this value corresponds to? Even though there is an > > old value, I didn't get much info earlier on what it is. > > The PARF_SLV_ADDR_SPACE_SIZE register indicates the range of RC accesses > to the EP's memory space. Default PoR value is 16MB, which seems to be > sufficient for IPQ9574 SoC. > As per the memory map, the memory space corresponding to each PCIe region is > 128Mb. As the older value corresponds to 256Mb we see PCIe enumeration > failures. What kind of failure? Is it because kernel is trying to allocate memory region > 128MB range? > This register should either be updated to 128Mb(0x8000000) or left at the > PoR value 16Mb (0x1000000). > Ok, so this is essentially the same as the PCI MEM region defined in DT? In that case, this value should be extracted from DT instead of being hardcoded. But PCI MEM region range in DT is low on many platforms. Maybe that's due to all PCIe instances sharing the 256MB range? - Mani -- மணிவண்ணன் சதாசிவம்