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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FC38C04AB4 for ; Fri, 17 May 2019 10:46:13 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 744C32087B for ; Fri, 17 May 2019 10:46:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="R6RUDRe4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 744C32087B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4554hd5nczzDqSk for ; Fri, 17 May 2019 20:46:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=linaro.org (client-ip=2607:f8b0:4864:20::144; helo=mail-it1-x144.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="R6RUDRe4"; dkim-atps=neutral Received: from mail-it1-x144.google.com (mail-it1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4554fw444YzDqRf for ; Fri, 17 May 2019 20:44:38 +1000 (AEST) Received: by mail-it1-x144.google.com with SMTP id e184so11245523ite.1 for ; Fri, 17 May 2019 03:44:38 -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=XrK1b7wNGXEu4ePE0JhrD5j1MhNBZuIbei4kObjrD9P2nINBBLqCHzP0ZwA6yimJ2b Z/CqMtR5kKhMS+mUO6QbZJR01jQfUBeNW4kTXg/RQONqGoK5ndAWFFOqlfaJ6VafPgWe dfaqbkcWp/wuBduhJMVxLeYApCull+dhL9X/pjEHWcz8iHeH/Fo60xXJXbOhW7/aiPs5 hyBcbj6TlrSmqMpvFcRgwlew/7zqYAsPXSaGAj4bDLF1QEJMYVRxe6QIUPDkmm19EfL0 65soXYpe79REDMBBzBS/6jJDiFhL1ZhET7G79RNw7qgLAgo+gPJKlWzBA1pzHU2EkXnE Uq3A== X-Gm-Message-State: APjAAAU/NnPuIphDmqbiPrVgaOcS5nibAq5NfgdFcnWOzp/ZMImQBPaK vz3/FyXRL5tJ+d5WowGHUXjKnKMCjbgqKdPzsDfDEw== X-Google-Smtp-Source: APXvYqx3JP27Nk1tvOQBMDUThEQjHMC4TS5L3KtmWKuKzLoARJahORDrcr3fbLBY/dMbMzQj6L5PkULqhdgPoVo6Vr4= 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Roy Zang , Lorenzo Pieralisi , Xiaowei Bao , DTML , gregkh , Shawn Lin , Philippe Ombredanne , Mingkai Hu , Linux Kernel Mailing List , Kishon , "M.h. Lian" , Rob Herring , Linux ARM , linux-pci , Bjorn Helgaas , Shawn Guo , Leo Li , linuxppc-dev , Kate Stewart Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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.