Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2388331rda; Wed, 25 Oct 2023 00:52:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1RjBiw6PF3Q3RVAX5RL05/xB8vIZPXNYgFtfWLD0LBogjvsE9/yz5cqGxeYr1utuSsnwV X-Received: by 2002:a9d:7483:0:b0:6c0:79ed:be35 with SMTP id t3-20020a9d7483000000b006c079edbe35mr12628076otk.24.1698220367549; Wed, 25 Oct 2023 00:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698220367; cv=none; d=google.com; s=arc-20160816; b=NLOxDKolGtcUK4KD+hoTdkOcuJyYIrXeK8Kvw6zDXsTW9GB1tJ7dTy3T1VGy53BuFL JQCFttrUcfmkoWk8fCdoIry1du3Buykc9uCzl6ejfsXIM08rxJ5dkaec6zAGjzGnxn1d JH4iB5gBtISURq7TSz1gQUC0lttYXHwoVbHCl1lK/YtVvoeMXZgBGfm1LQHe2Z7LtjSE ZrLv+AbDSb+0hr043afogrgXDpuMOgeYjvn1kwDQLNK5dmVbhCs+PFVpBSDfQptV0Pgf jG1XNxrhjQ5OXKkfuX7w4PZhtkjA6AMjfHvUybf0H9FY6X71oGqx9vGAYk92vHidBkGL FNVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N8Pmwhxo/yPczWMr/jlWg1aqcVF3Viz8kfdpRWwS1do=; fh=qE5lXD52G+b5zJBgFlQ6HJ0ifwxpo26SZjgZ8HA51IA=; b=wcvDNe9ZDCCy45RSsuoTP233UpUpxKEAsGPeHzgqV+ts1cnwhsCSTiQODD24pdpDqz 15I1+bCe4zSx76eB65zS1t0qtAbi6sCGKGZGdW+Hv49g0lgH9HbGw35ynFEvBv6CNs7z QiKV4OFx7mw8v3uhhtxUeysUujoMNMsleD9W4Ld7t7qjCH+YliYziP7eO5ZRK0OP0/56 2wjcrq6DkdcEGyFmEY/B6RvrOFkGfCcaxJaa9xfr2uvEbZS8oAtaZQUipcQcp3FnJOhK bQOE5d+32vf61AHK4eYqtEYSQ8LTsRV+yiP6+tAhEkTGnv/SvoPkX0m7XZlMDEO+3Y5X Nj7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Au1eplrq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y1-20020a0def01000000b005a4f6575a70si10851129ywe.62.2023.10.25.00.52.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:52:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Au1eplrq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B2B57801D585; Wed, 25 Oct 2023 00:52:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232720AbjJYHwk (ORCPT + 99 others); Wed, 25 Oct 2023 03:52:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231467AbjJYHwj (ORCPT ); Wed, 25 Oct 2023 03:52:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C04FDE; Wed, 25 Oct 2023 00:52:36 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93E63C433C7; Wed, 25 Oct 2023 07:52:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698220355; bh=AjvHbivfFAj4feaP3aHyTgho0kLeTTMjqn0xHKJqObY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Au1eplrqt71V0W8QiBWNe2G4Yt1Oo5Nwe1X9M5FenWXHtTYUyb207aW2LFGcyCWhS zV7j5ngxfjrhePd3EDD3Jm+6rbJM4NaiyRax0zGFz4DBTz+PHXLLknRC2YjWVpJ3Oy jXEp0aJZYsV8DWK0QjVwU1724Ebqkh7EtBUXSTt7FTqH4r8c7cl33Osn2PGke1fPtn LXj9gnwfXVYYHR9uRm8ne146V2qe1GEJ+lrc+a5S49DyJncP47JS5D87NUURR60Mzn hbNMX2JBySi4GYlW9fExrNPnywHtX69EINNWbSk+YzS7o4Tnyl81i4FMjg4bcz4fKS b0ZDKaaj0dTTw== Date: Wed, 25 Oct 2023 13:22:24 +0530 From: Manivannan Sadhasivam To: Mrinmay Sarkar Cc: agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Kishon Vijay Abraham I , Vinod Koul , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-phy@lists.infradead.org Subject: Re: [PATCH v3 5/5] arm64: dts: qcom: sa8775p: Add ep pcie0 controller node Message-ID: <20231025075224.GB3648@thinkpad> References: <1697715430-30820-1-git-send-email-quic_msarkar@quicinc.com> <1697715430-30820-6-git-send-email-quic_msarkar@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1697715430-30820-6-git-send-email-quic_msarkar@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 00:52:42 -0700 (PDT) On Thu, Oct 19, 2023 at 05:07:10PM +0530, Mrinmay Sarkar wrote: > Add ep pcie dtsi node for pcie0 controller found on sa8775p platform. > It supports gen4 and x2 link width. Due to some stability issue in > gen4 enabling gen3 as of now. > > Signed-off-by: Mrinmay Sarkar > --- > arch/arm64/boot/dts/qcom/sa8775p.dtsi | 48 +++++++++++++++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > index 13dd44d..2aa7383 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi > @@ -3714,4 +3714,52 @@ > > status = "disabled"; > }; > + > + pcie0_ep: pcie-ep@1c00000 { > + compatible = "qcom,sa8775p-pcie-ep"; > + reg = <0x0 0x01c00000 0x0 0x3000>, > + <0x0 0x40000000 0x0 0xf20>, > + <0x0 0x40000f20 0x0 0xa8>, > + <0x0 0x40001000 0x0 0x4000>, > + <0x0 0x40200000 0x0 0x100000>, > + <0x0 0x01c03000 0x0 0x1000>, > + <0x0 0x40005000 0x0 0x2000>; Can we sort the reg entries? > + reg-names = "parf", "dbi", "elbi", "atu", "addr_space", > + "mmio", "dma"; > + > + clocks = <&gcc GCC_PCIE_0_AUX_CLK>, > + <&gcc GCC_PCIE_0_CFG_AHB_CLK>, > + <&gcc GCC_PCIE_0_MSTR_AXI_CLK>, > + <&gcc GCC_PCIE_0_SLV_AXI_CLK>, > + <&gcc GCC_PCIE_0_SLV_Q2A_AXI_CLK>; > + > + clock-names = "aux", > + "cfg", > + "bus_master", > + "bus_slave", > + "slave_q2a"; > + > + interrupts = , > + , > + ; > + > + interrupt-names = "global", "doorbell", "dma"; > + > + interconnects = <&pcie_anoc MASTER_PCIE_0 0 &mc_virt SLAVE_EBI1 0>, > + <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_PCIE_0 0>; > + interconnect-names = "pcie-mem", "cpu-pcie"; > + > + iommu-map = <0x0 &pcie_smmu 0x0000 0x1>, > + <0x100 &pcie_smmu 0x0001 0x1>; I think I recommended using "iommu-map" instead of "iommus" property. But looking at it again, I think it is fine to use just "iommus" property as the SID will be associated with the EP directly. Unless you want to have different SID for each function. > + > + resets = <&gcc GCC_PCIE_0_BCR>; > + reset-names = "core"; > + power-domains = <&gcc PCIE_0_GDSC>; > + phys = <&pcie0_phy>; > + phy-names = "pciephy"; > + max-link-speed = <3>; Please add a comment here that you are limiting the Gen speed due to stability issues. Like, max-link-speed = <3>; /* FIXME: Limiting the Gen speed due to stability issues */ > + num-lanes = <2>; Can you check if the controller is cache coherent? If so, we should add "dma-coherent" property. - Mani > + > + status = "disabled"; > + }; > }; > -- > 2.7.4 > -- மணிவண்ணன் சதாசிவம்