Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp504482pxb; Fri, 15 Apr 2022 04:59:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvPpIsKbmXcZw1lrjCNnbjWBtRygrv53d/5+QFruhtLwaOItB9sIGRoiQV/Q8v8S8j4K6n X-Received: by 2002:a05:6402:18:b0:410:86cd:9dce with SMTP id d24-20020a056402001800b0041086cd9dcemr7868956edu.70.1650023946814; Fri, 15 Apr 2022 04:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650023946; cv=none; d=google.com; s=arc-20160816; b=Z+WFsEBI6ql7wubtJ1Qkxl6brSCB+LhgaY6sxAaQ98Ici4oW6o2ironamaix91RITe Ic221v6py5J6dTF6FiuqDMcMcLV7xCG4C/Pkdr0AVwD8U6xL6/kkxKtxMgF8pyfwK14X 9LRDHCxsGW8Eml2PIlAqVLvJL6SOzVK7Rk77nhmdEctK0mMb0KYfCMQXXt9y0Zye54jN iSdbG+lUo8cgkg2JcBbIwqd72wj+R4wIrpBtgN3mCBEX7yLgkWHr8Fmyh91kT0l7Ek8C tvoV+TjERp7x18r2j+cdbL4/jH41LUgQDjZQ6hBpMmsPPc67dLkSFzmZivZRUgJVH2Bs zfZw== 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-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=UUBcbay0cLcTPEwYbe+oBIXXdxSRhkMOn3Sgl/OPzOs=; b=xDqofYEr/L4/AhabGbBkZVo0D0oJir8B/QywEP6VHz+YaWc/S02BYRNUWSt/2l2vXy QznMRWIK3XMFPsf8KGcjfUk4p96pHAht6OnuwJiYGbdjwibFLwpZHDtEHwKuxIHuo3KY POEuMv0lqdfBmc2Bh76DvwtR7fpeC/bLv4+Mcw8prPxBFnuGU4SzM2U+NfpCdtma85SO c1zyos80euzZ/CnDKwdZ+tM85vu9M/2Wrb8oqDEtMnh9QuoWNHAVpzSLTucZsBvwp5jM RTf6d+qsUB41uGUaq6nnGhwTk579I0bLcgiw5S2OqLREYdMu2jP78NkSTTq34/7kFaIY mcvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qlqZnMvO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020aa7d311000000b004228e2aa4a6si642133edq.425.2022.04.15.04.58.40; Fri, 15 Apr 2022 04:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qlqZnMvO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345721AbiDNTnC (ORCPT + 99 others); Thu, 14 Apr 2022 15:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345798AbiDNTmp (ORCPT ); Thu, 14 Apr 2022 15:42:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21C9B49FBD; Thu, 14 Apr 2022 12:40:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B1D7961DF9; Thu, 14 Apr 2022 19:40:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C62E0C385A1; Thu, 14 Apr 2022 19:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649965218; bh=VhIo5zoKkNLmMaQV6qXIkHE2FIUbCi00PmoyQe9eHpw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=qlqZnMvO27lGJle6LAb52uCOq6TnKoo+7vlwx+15HTq6j4K2xSaJ2fJsrqDeTuNKn Q+2NraIbrwVDYVpH59ClklZ6EoEMIJQuelB+KXJKCdlREfJwbUaeX6weDlmdhcs6qL ng2MhT1b8nM/UpgUigg6haFROAvMEsXGMGu2DKXuc13O2LQHDztogsrtRptutIYcn4 +eiH/PLthKez9NVoaPRCQsBGR83LGeeXJLtrDNIU7gOiyvP1I5w5EGa9ycvSOOXNEx AZ5qHV4lEXbQVhHOn1nxYarxVF8YZ59cff0uPVD95Y34TtLqQ0EsLg2ThQBmbsMnQ0 oTi1dx7D3qq0g== Date: Thu, 14 Apr 2022 14:40:16 -0500 From: Bjorn Helgaas To: Li Yang Cc: Bjorn Helgaas , Hou Zhiqiang , Rob Herring , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/4] dt-bindings: pci: layerscape-pci: define AER/PME interrupts Message-ID: <20220414194016.GA764042@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220311234938.8706-5-leoyang.li@nxp.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Fri, Mar 11, 2022 at 05:49:38PM -0600, Li Yang wrote: > Different platforms using this controller are using different numbers of > interrupt lines and the routing of events to these interrupt lines are > different too. So instead of trying to define names for these interrupt > lines, we define the more specific AER/PME events that are routed to > these interrupt lines. > > For platforms which only has a single interrupt line for miscellaneous > controller events, we can keep using the original "intr" name for > backward compatibility. > > Also change the example from ls1021a to ls1088a for better representation. > > Signed-off-by: Li Yang > Reviewed-by: Rob Herring 1) Please pay attention to your subject lines and make them match. In this series you have: dt-bindings: pci: layerscape-pci: Add a optional property big-endian dt-bindings: pci: layerscape-pci: Update the description of SCFG property dt-bindings: pci: layerscape-pci: Add EP mode compatible strings for ls1028a dt-bindings: pci: layerscape-pci: define AER/PME interrupt Note that all are capitalized except "define AER/PME interrupt". 2) Also capitalize "AER" in the comment below so it matches usage in the commit log and the property descriptions. 3) This diff is HUGE because you replace a bunch of tabs with spaces. That seems like a pointless change, but if you want to do it, at least do it in a separate patch all by itself that *only* changes tabs to spaces. Then we'll be able to see what actually happened in the patch that adds the properties. This has already been merged, so unless you need to update this series for some other reason, these are just tips for the future. > --- > .../bindings/pci/layerscape-pci.txt | 58 ++++++++++--------- > 1 file changed, 32 insertions(+), 26 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt > index 8fd6039a826b..ee8a4791a78b 100644 > --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt > +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt > @@ -31,8 +31,14 @@ Required properties: > - reg: base addresses and lengths of the PCIe controller register blocks. > - interrupts: A list of interrupt outputs of the controller. Must contain an > entry for each entry in the interrupt-names property. > -- interrupt-names: Must include the following entries: > - "intr": The interrupt that is asserted for controller interrupts > +- interrupt-names: It could include the following entries: > + "aer": Used for interrupt line which reports AER events when > + non MSI/MSI-X/INTx mode is used > + "pme": Used for interrupt line which reports PME events when > + non MSI/MSI-X/INTx mode is used > + "intr": Used for SoCs(like ls2080a, lx2160a, ls2080a, ls2088a, ls1088a) > + which has a single interrupt line for miscellaneous controller > + events(could include AER and PME events). > - fsl,pcie-scfg: Must include two entries. > The first entry must be a link to the SCFG device node > The second entry is the physical PCIe controller index starting from '0'. > @@ -47,27 +53,27 @@ Optional properties: > > Example: > > - pcie@3400000 { > - compatible = "fsl,ls1021a-pcie"; > - reg = <0x00 0x03400000 0x0 0x00010000 /* controller registers */ > - 0x40 0x00000000 0x0 0x00002000>; /* configuration space */ > - reg-names = "regs", "config"; > - interrupts = ; /* controller interrupt */ > - interrupt-names = "intr"; > - fsl,pcie-scfg = <&scfg 0>; > - #address-cells = <3>; > - #size-cells = <2>; > - device_type = "pci"; > - dma-coherent; > - num-lanes = <4>; > - bus-range = <0x0 0xff>; > - ranges = <0x81000000 0x0 0x00000000 0x40 0x00010000 0x0 0x00010000 /* downstream I/O */ > - 0xc2000000 0x0 0x20000000 0x40 0x20000000 0x0 0x20000000 /* prefetchable memory */ > - 0x82000000 0x0 0x40000000 0x40 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ > - #interrupt-cells = <1>; > - interrupt-map-mask = <0 0 0 7>; > - interrupt-map = <0000 0 0 1 &gic GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>, > - <0000 0 0 2 &gic GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, > - <0000 0 0 3 &gic GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>, > - <0000 0 0 4 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; > - }; > + pcie@3400000 { > + compatible = "fsl,ls1088a-pcie"; > + reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */ > + <0x20 0x00000000 0x0 0x00002000>; /* configuration space */ > + reg-names = "regs", "config"; > + interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>; /* aer interrupt */ > + interrupt-names = "aer"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + num-viewport = <256>; > + bus-range = <0x0 0xff>; > + ranges = <0x81000000 0x0 0x00000000 0x20 0x00010000 0x0 0x00010000 /* downstream I/O */ > + 0x82000000 0x0 0x40000000 0x20 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ > + msi-parent = <&its>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0000 0 0 1 &gic 0 0 0 109 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 0 110 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 0 111 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 0 112 IRQ_TYPE_LEVEL_HIGH>; > + iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */ > + }; > -- > 2.25.1 >