Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3514270ybl; Mon, 12 Aug 2019 01:36:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7fkgji9J0k2TQeQ1qpuWsWnaIpOVlde3461icA4ANuQC1Y85VznIVp1Oh/ar8XtBM8gzI X-Received: by 2002:a17:902:1004:: with SMTP id b4mr21330560pla.340.1565599005442; Mon, 12 Aug 2019 01:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565599005; cv=none; d=google.com; s=arc-20160816; b=dtp8HR4BLN3LoFE+b5j+0WeJ1crEQ16Un2SxdEiIcGdSMhiNKAOCu9JZNWHdK3UIt5 irivmj84rkOQ3zTbhnHArirA+WwjSRLV+Ad9R1DE8/8r2cx8aKbFW80vPLo4ncK1CJ7C 18Xlh9h3UY4yqxyOT5fMlt3ceoT61TbpoPrKF1KCMTvKeRXakfBS7dfjAlOQ20elY7pR 10NsIlHIlC0JJo3mAeW0xVlCAe3sI70BxAZu7b8BCc+SoakXp9Y3e0H3zdsg/W9RIojG oZNoVZS4lKcnTYj5ZwX4JaGSBeWzHvu+pE1u/xAH5jO3PVOzJnVkI3q9XrEELOol6kBx hz1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=V9WYO+tvjZRzKKPMyv9pssILCAN66gtCYx+hyS+isKM=; b=JFOWEwXLEgD2aAsBmFV16VCaNPY8uDQYkMppPCpJOPmxEaDudyUN1KX7r/mqWtinrV RibIaBOc2LyJYn8Qm5ibEvKyrIPVWn3f7TisFjr8IO+bmuOaiDPLv/HiGLs8P8IPCuoX OKI+9Rf1gl+cyyB5LV2rfUkdy4vbyJ2wE4RXQxccNJbPqCsYlnFgnxk8moQHX/08X2aQ xa9hFKDvOKwLoqMOHDr30wCbyGZYYsXxq86ET3vV1E1tBNEDDv+ECWPtAIpZ6DRsf5R0 V6Kuc5TbwMnqym/LzzF/OEhNZ8uhZoHONzdNxNbMjaEdo0Mipb5l5d77KaZE4OfbgERJ btdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si65379899pga.117.2019.08.12.01.36.29; Mon, 12 Aug 2019 01:36:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727202AbfHLIft (ORCPT + 99 others); Mon, 12 Aug 2019 04:35:49 -0400 Received: from foss.arm.com ([217.140.110.172]:45112 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbfHLIft (ORCPT ); Mon, 12 Aug 2019 04:35:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1B62C15A2; Mon, 12 Aug 2019 01:35:48 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8E0C03F718; Mon, 12 Aug 2019 01:35:47 -0700 (PDT) Date: Mon, 12 Aug 2019 09:35:46 +0100 From: Andrew Murray To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "gustavo.pimentel@synopsys.com" , "jingoohan1@gmail.com" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "M.h. Lian" Subject: Re: [PATCH 4/4] arm64: dts: fsl: Remove num-lanes property from PCIe nodes Message-ID: <20190812083545.GV56241@e119886-lin.cambridge.arm.com> References: <20190812042435.25102-1-Zhiqiang.Hou@nxp.com> <20190812042435.25102-5-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812042435.25102-5-Zhiqiang.Hou@nxp.com> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 04:22:33AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > On FSL Layerscape SoCs, the number of lanes assigned to PCIe > controller is not fixed, it is determined by the selected > SerDes protocol in the RCW (Reset Configuration Word), and > the PCIe link training is completed automatically base on > the selected SerDes protocol, and the link width set-up is > updated by hardware. So the num-lanes is not needed to > specify the link width. > > The current num-lanes indicates the max lanes PCIe controller > can support up to, instead of the lanes assigned to the PCIe > controller. This can result in PCIe link training fail after > hot-reset. So remove the num-lanes to avoid set-up to incorrect > link width. > > Signed-off-by: Hou Zhiqiang > --- > arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 - > arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 --- > arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 6 ------ > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 3 --- > arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 4 ---- > 5 files changed, 17 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > index ec6257a5b251..119c597ca867 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > @@ -486,7 +486,6 @@ > #address-cells = <3>; > #size-cells = <2>; > device_type = "pci"; > - num-lanes = <4>; > num-viewport = <2>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > index 71d9ed9ff985..c084c7a4b6a6 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi > @@ -677,7 +677,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -704,7 +703,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <2>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -731,7 +729,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <2>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */ > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > index b0ef08b090dd..d4c1da3d4bde 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi > @@ -649,7 +649,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <8>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -671,7 +670,6 @@ > reg-names = "regs", "addr_space"; > num-ib-windows = <6>; > num-ob-windows = <8>; > - num-lanes = <2>; > status = "disabled"; > }; > > @@ -687,7 +685,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <2>; > num-viewport = <8>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x48 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -709,7 +706,6 @@ > reg-names = "regs", "addr_space"; > num-ib-windows = <6>; > num-ob-windows = <8>; > - num-lanes = <2>; > status = "disabled"; > }; > > @@ -725,7 +721,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <2>; > num-viewport = <8>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x50 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -747,7 +742,6 @@ > reg-names = "regs", "addr_space"; > num-ib-windows = <6>; > num-ob-windows = <8>; > - num-lanes = <2>; > status = "disabled"; > }; > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index dfbead405783..76c87afeba1e 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -456,7 +456,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <256>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -482,7 +481,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x28 0x00010000 0x0 0x00010000 /* downstream I/O */ > @@ -508,7 +506,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <8>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > ranges = <0x81000000 0x0 0x00000000 0x30 0x00010000 0x0 0x00010000 /* downstream I/O */ > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > index 64101c9962ce..7a0be8eaa84a 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi > @@ -639,7 +639,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > msi-parent = <&its>; > @@ -661,7 +660,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > msi-parent = <&its>; > @@ -683,7 +681,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <8>; > num-viewport = <256>; > bus-range = <0x0 0xff>; > msi-parent = <&its>; > @@ -705,7 +702,6 @@ > #size-cells = <2>; > device_type = "pci"; > dma-coherent; > - num-lanes = <4>; > num-viewport = <6>; > bus-range = <0x0 0xff>; > msi-parent = <&its>; Reviewed-by: Andrew Murray > -- > 2.17.1 >