Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1775104yba; Fri, 17 May 2019 05:16:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4eoJhB+7NIw8bTb/grkXYHP1k8z7FBgNDG0mp8hgqEBfptHHQ6rk9V0zYSFJYIf7PU8Yw X-Received: by 2002:a63:4952:: with SMTP id y18mr13341056pgk.144.1558095416766; Fri, 17 May 2019 05:16:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558095416; cv=none; d=google.com; s=arc-20160816; b=f8EXFxY2OAmxYq8j7BRfhgvVGxrd+MDMVnTNGu0dLphF9KP1VjTvj+54xpwk1RXTao VuOOpHpO2IK/MNbZFH3LvuBMsmEai3fu3mqdV/+FklYdUDkCrcMOYtuGsh1Talffs2o/ kw30PSBCPdiKAS+J2v6G189T+LymqrOLBfWUVEfJgHNddVGDCQUN2L7bHDkDCncZh1RF +WR8+dP1GBipWviWqGMSUhzkjUmGOD9UvHdhmSD8CPjsLAexcBJnuLAMZCd7hj/K60sm YgI9yyAQmSocWPYfQX0wAtQqCiGqqADmDr+oRODsVlH2qXUvjIHWBWCXbic76I8YjyRS hR+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ae6y0KuXzMG1pHLjgX5VAMMTwD/mpdbSQHyUYqpGa1Y=; b=ZkQAly8cPyAGKYNu7zPUqvFYQfYznPrX+C9EMzALOxils49hxSibCsy+8URP5l/S+6 qHNHifXUfo2+xGrJ2W3HmZ/2KPeD4H9I/88ula+t65tgC47Tx1geoR81/05Dpq8F7HQ2 LxG9iTIdTD83DVPed8JSlNyXzLlxIlIgv5AjSQcp5qZDu0RTfiMGbjGSPCgk5qIRKBgR 3QizE92S3dBDReKS1ZA9Nk92CGB8oxY2U1QrEpxplv/XXXQ+z2yVlxKm4uO4IZBgfukL cImJnRJqBD4i4ppFu26h4IBhIo2qgc4/UThnVw/5RevuOQraXsgIM4WYdcaIK4l0F2xy sd2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R6RUDRe4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si8689818pfb.172.2019.05.17.05.16.41; Fri, 17 May 2019 05:16:56 -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; dkim=pass header.i=@linaro.org header.s=google header.b=R6RUDRe4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728349AbfEQKog (ORCPT + 99 others); Fri, 17 May 2019 06:44:36 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:36036 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728193AbfEQKog (ORCPT ); Fri, 17 May 2019 06:44:36 -0400 Received: by mail-it1-f196.google.com with SMTP id e184so11245524ite.1 for ; Fri, 17 May 2019 03:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ae6y0KuXzMG1pHLjgX5VAMMTwD/mpdbSQHyUYqpGa1Y=; b=R6RUDRe47ZibIlkhxQWfsIgH9dt5pFYOUAFW/3Asfdh4QE7ekEXvUMeji89niTUt1k ThSHvMS8k3bXzi1VUy39vktMv6CElxov+TYUYhnWCWo/JeHIl+5X5uTCE/JPXOr9SNxF itX9zP/rxln7zlf7HwFmVYDMS5/xp2TFIkV0GGNN+/7PfpTnpEPE+hJBb0z/BNOLkuD8 fM8SBe/WyYf0Wg2moOirFS03wLy6/d548Y2nMjbiOokDeRXQUbUn7dr6gtDP/bnIa6mx aaatnT+JDGwhVfUdZh/oAQz/iZ67xf1VLuE9Sq/dNCVBEWfSOEzycF2eMKOKgKqVT9/q Fw2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ae6y0KuXzMG1pHLjgX5VAMMTwD/mpdbSQHyUYqpGa1Y=; b=a2//Ysxixb3FAr0TKNJnvuUHd+KgzfzSC0Tp+j7y73V1kxfY8YQDYI4pNt1j4PcjjY EdTaAds2xKe063T5aGpIJaKqnZkF5EyraCaS608T7pKIn6mPHGrQUlXyZi2vXWB1XXri Yh5sGrHgKY4JglI1TFYlHDgvyWPPc7BTx8vQAF13lEVcJG8SXBQLbWq8Y6XWRAOHZjtz ngiL3l8BYuTqPnIKvaxY78/o2MG0e6pzwoWv8uJxLAk4/3BOMXdVEW/GPOk03prY2xG3 9OKRxe5tFp/gMCIunU29zngrxcZ6wyqiIuBY7n+fQjZuY2OSw+Ll9fNHx00KztbPeCep bJ2w== X-Gm-Message-State: APjAAAUT04V4HGdZnrEMEXtK85dt+eKwMniYAd5LKL3fyC5OASifsRbm RQcVNTO1EypSKZz63EI772AegWYcUvs1VOSf+MFPig== X-Received: by 2002:a02:1dc7:: with SMTP id 190mr34241024jaj.62.1558089874890; Fri, 17 May 2019 03:44:34 -0700 (PDT) MIME-Version: 1.0 References: <20190515072747.39941-1-xiaowei.bao@nxp.com> <20190515072747.39941-2-xiaowei.bao@nxp.com> In-Reply-To: From: Ard Biesheuvel Date: Fri, 17 May 2019 12:44:22 +0200 Message-ID: Subject: Re: [EXT] Re: [PATCH 2/3] arm64: dts: ls1028a: Add PCIe controller DT nodes To: Arnd Bergmann Cc: Xiaowei Bao , Mark Rutland , Roy Zang , Lorenzo Pieralisi , DTML , gregkh , Kate Stewart , linuxppc-dev , linux-pci , Linux Kernel Mailing List , Kishon , "M.h. Lian" , Rob Herring , Linux ARM , Philippe Ombredanne , Bjorn Helgaas , Leo Li , Shawn Guo , Shawn Lin , Mingkai Hu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 May 2019 at 10:59, Arnd Bergmann wrote: > > On Fri, May 17, 2019 at 5:21 AM Xiaowei Bao wrote: > > -----Original Message----- > > From: Arnd Bergmann > > On Wed, May 15, 2019 at 9:36 AM Xiaowei Bao wrote= : > > > Signed-off-by: Xiaowei Bao > > > --- > > > arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 52 ++++++++++++++= ++++++++++ > > > 1 files changed, 52 insertions(+), 0 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/ar= m64/boot/dts/freescale/fsl-ls1028a.dtsi > > > index b045812..50b579b 100644 > > > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > > > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > > > @@ -398,6 +398,58 @@ > > > status =3D "disabled"; > > > }; > > > > > > + pcie@3400000 { > > > + compatible =3D "fsl,ls1028a-pcie"; > > > + reg =3D <0x00 0x03400000 0x0 0x00100000 /* = controller registers */ > > > + 0x80 0x00000000 0x0 0x00002000>; /* co= nfiguration space */ > > > + reg-names =3D "regs", "config"; > > > + interrupts =3D , /* PME interrupt */ > > > + ; /* aer interrupt */ > > > + interrupt-names =3D "pme", "aer"; > > > + #address-cells =3D <3>; > > > + #size-cells =3D <2>; > > > + device_type =3D "pci"; > > > + dma-coherent; > > > + num-lanes =3D <4>; > > > + bus-range =3D <0x0 0xff>; > > > + ranges =3D <0x81000000 0x0 0x00000000 0x80 0x= 00010000 0x0 0x00010000 /* downstream I/O */ > > > + 0x82000000 0x0 0x40000000 0x80 0x40= 000000 0x0 0x40000000>; /* non-prefetchable memory */ > > > > Are you sure there is no support for 64-bit BARs or prefetchable memory= ? > > [Xiaowei Bao] sorry for late reply, Thought that our Layerscape platfor= m has not added prefetchable memory support in DTS, so this platform has no= t been added, I will submit a separate patch to add prefetchable memory sup= port for all Layerscape platforms. > > Ok, thanks. > > > Of course, the prefetchable PCIE device can work in our boards, because= the RC will > > assign non-prefetchable memory for this device. We reserve 1G no-prefet= chable > > memory for PCIE device, it is enough for general devices. > > Sure, many devices work just fine, this is mostly a question of supportin= g those > devices that do require multiple gigabytes, or that need prefetchable mem= ory > semantics to get the expected performance. GPUs are the obvious example, > but I think there are others (infiniband?). > Some implementations of the Synopsys dw PCIe IP contain a 'root port' (within quotes because it is not actually a root port but an arbitrary set of MMIO registers that looks like a type 01 config region) that does not permit the prefetchable bridge window BAR to be written (a thing which is apparently permitted by the PCIe spec). So while the host bridge is capable of supporting more than one MMIO BAR window, the OS visible software interface does not expose this functionality In practice, it probably doesn't matter, since the driver uses the same iATU attributes for prefetchable and non-prefetchable windows, but I guess 1 GB of MMIO BAR space is a bit restrictive for modern systems.