From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0734C3DA4A for ; Thu, 8 Aug 2024 05:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:CC:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=zEomHmpR9gxi8kjhdkOQJXfsQe2MvwI9u3nUs24Eb98=; b=n8zG8vkY1xifmJd163X0sldCoD lACcmvolweIDptdq4nILcrEPOMOKbi1SJNkENi3tW0LytrCjzk5ABYNKoCQ0AfQuofJBaJtjvy7cN RxZnEcFkFjTLBH2CbY/WcWQdqcY+9gE20VMYvmn9shpqwbcBJ3g2e1hw5+YnluUoRQE3ChMwdy5rp bcFZv7k98OAuJABEHR873hXo+FPExMgxfKjbbayiR3nptr19d+6+ceS2vk7VYXVNQAtq5T5Ke0vnh vUGyguvYLDRIS1N/9Or5C6YkiVMhA59/9eXOJBsPPFExxSglRrYwc3XNwWnOxoTBxuVvheCKeCkbs MdkyX57g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbvJC-000000075oV-0iTg; Thu, 08 Aug 2024 05:03:30 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbvIc-000000075k8-2kcM for linux-arm-kernel@lists.infradead.org; Thu, 08 Aug 2024 05:02:56 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47852maX011078; Thu, 8 Aug 2024 00:02:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1723093368; bh=zEomHmpR9gxi8kjhdkOQJXfsQe2MvwI9u3nUs24Eb98=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=sVl/MG5PVv1mChj9mnFix0T+UYm4j3Qu5e6QrRGwmQsz4OCew7AJuge+bMcM102eM 4g/au3lqY1ngI9EbQK3Xlb5H86adTh8aYqBjhm3LKPn2CM0JKtZdDGzqoKc6ZEZURQ MnBXsPBWMwOyKkTnWlaBC8Bjbsc/D0y70DrfLtRc= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47852mRN009075 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Aug 2024 00:02:48 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 8 Aug 2024 00:02:48 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 8 Aug 2024 00:02:48 -0500 Received: from localhost (uda0492258.dhcp.ti.com [10.24.72.81]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47852lfS042333; Thu, 8 Aug 2024 00:02:47 -0500 Date: Thu, 8 Aug 2024 10:32:46 +0530 From: Siddharth Vadapalli To: Nishanth Menon , Manorit Chawdhry CC: Siddharth Vadapalli , , , , , , , , , Subject: Re: [PATCH] arm64: dts: ti: k3-j784s4-evm: Use 4 lanes for PCIe0 on EVM Message-ID: References: <20240720110455.3043327-1-s-vadapalli@ti.com> <20240807132847.3qca5ijdwsasdf4y@legroom> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240807132847.3qca5ijdwsasdf4y@legroom> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_220254_811278_5750D1C3 X-CRM114-Status: GOOD ( 19.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Aug 07, 2024 at 08:28:47AM -0500, Nishanth Menon wrote: > On 16:34-20240720, Siddharth Vadapalli wrote: > > The PCIe0 instance of the PCIe controller on J784S4 SoC supports up to 4 > > lanes. Additionally, all 4 lanes of PCIe0 can be utilized on J784S4-EVM > > via SERDES1. Since SERDES1 is not being used by any peripheral apart > > from PCIe0, use all 4 lanes of SERDES1 for PCIe0. > > > > Fixes: 27ce26fe52d4 ("arm64: dts: ti: k3-j784s4-evm: Enable PCIe0 and PCIe1 in RC Mode") > > Signed-off-by: Siddharth Vadapalli [...] > > serdes1_pcie0_link: phy@0 { > > reg = <0>; > > - cdns,num-lanes = <2>; > > + cdns,num-lanes = <4>; > > #phy-cells = <0>; > > cdns,phy-type = ; > > - resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>; > > + resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>, > > + <&serdes_wiz1 3>, <&serdes_wiz1 4>; > > }; > > OK - I see the reason why > https://lore.kernel.org/all/20240807132054.jcz5fdokc5yk3mbo@entrust/ > was missed. > > Please sync with Manorit to make sure we sequence these correctly - > looks to me that this fixup needs to get in first? have you also checked > up on AM69-SK ? J784S4 SoC has 4 instances of PCIe -> PCIe0, PCIe1, PCIe2 and PCIe3. All 4 instances have been described in k3-j784s4-main.dtsi. Of the 4 instances PCIe0 and PCIe1 are brought out on J784S4-EVM. Therefore, k3-j784s4-evm.dts enables only PCIe0 and PCIe1. This patch allocates all 4 lanes of SERDES1 to PCIe0 on J784S4-EVM since no other peripheral is sharing SERDES1 with PCIe0. On AM69-SK, all 4 lanes of SERDES1 have correctly been assigned to PCIe0, due to which no fix is required. J742S2 SoC has 2 instances of PCIe -> PCIe0 and PCIe1. They have the same connections w.r.t. SERDES as J784S4 SoC i.e. PCIe0 -> 4 Lanes of SERDES1 PCIe1 -> 2 Lanes of SERDES0 So PCIe2 and PCIe3 have to be removed from k3-j784s4-j742s2-main-common.dtsi in the patch by Manorit at: https://lore.kernel.org/r/20240731-b4-upstream-j742s2-v3-4-da7fe3aa9e90@ti.com/ and added in k3-j784s4-main.dtsi similar to the "c71_3: dsp@67800000" node. The changes made by this patch (assigning all 4 lanes of SERDES1 to PCIe0) will be applicable to J742S2-EVM as well. Regards, Siddharth.