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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 15F53C47E48 for ; Thu, 26 Sep 2019 08:49:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E87FF222C3 for ; Thu, 26 Sep 2019 08:49:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729854AbfIZItD (ORCPT ); Thu, 26 Sep 2019 04:49:03 -0400 Received: from foss.arm.com ([217.140.110.172]:42610 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbfIZItD (ORCPT ); Thu, 26 Sep 2019 04:49:03 -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 2D1901000; Thu, 26 Sep 2019 01:49:02 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 785163F67D; Thu, 26 Sep 2019 01:49:01 -0700 (PDT) Date: Thu, 26 Sep 2019 09:49:00 +0100 From: Andrew Murray To: Rob Herring Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Heiko Stuebner , Karthikeyan Mitran , Shawn Lin , Thomas Petazzoni , Toan Le , Will Deacon , Ryder Lee , Michal Simek , linux-rockchip@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, Linus Walleij , Ray Jui , Hou Zhiqiang , Simon Horman , linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Scott Branden , Gustavo Pimentel , rfi@lists.rocketboards.org, linux-renesas-soc@vger.kernel.org, Tom Joseph , Jingoo Han , Ley Foon Tan Subject: Re: [PATCH 00/11] PCI dma-ranges parsing consolidation Message-ID: <20190926084859.GB9720@e119886-lin.cambridge.arm.com> References: <20190924214630.12817-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190924214630.12817-1-robh@kernel.org> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org On Tue, Sep 24, 2019 at 04:46:19PM -0500, Rob Herring wrote: > This series moves the DT 'dma-ranges' parsing into common helpers > utilizing a resource list. In the process of doing this, I noticed > several cases where pci_parse_request_of_pci_ranges() could be used so > I converted those drivers first. The last 5 patches make the actual > change to use the common 'dma_ranges' resource list. There's no > (intended) functional change in this series though I'm also working on > a separate series to improve the handling of 'dma-ranges' and dma > masks. > > pci-rcar-gen2 is the only remaining driver doing its own dma-ranges > handling as it is still using the old ARM PCI functions. Looks like it > is the last one (in drivers/pci/). It also seems that pcie-tango is using of_pci_dma_range_parser_init and so parsing dma-ranges. Though it's using the dma_ranges for a slightly different purpose. Thanks, Andrew Murray > > Compile tested only. > > Rob > > Rob Herring (11): > PCI: aardvark: Use pci_parse_request_of_pci_ranges() > PCI: altera: Use pci_parse_request_of_pci_ranges() > PCI: mediatek: Use pci_parse_request_of_pci_ranges() > PCI: versatile: Enable COMPILE_TEST > PCI: versatile: Use pci_parse_request_of_pci_ranges() > PCI: of: Add inbound resource parsing to helpers > PCI: ftpci100: Use inbound resources for setup > PCI: v3-semi: Use inbound resources for setup > PCI: xgene: Use inbound resources for setup > PCI: iproc: Use inbound resources for setup > PCI: rcar: Use inbound resources for setup > > drivers/pci/controller/Kconfig | 2 +- > .../pci/controller/dwc/pcie-designware-host.c | 3 +- > drivers/pci/controller/pci-aardvark.c | 58 ++--------------- > drivers/pci/controller/pci-ftpci100.c | 29 ++++----- > drivers/pci/controller/pci-host-common.c | 2 +- > drivers/pci/controller/pci-v3-semi.c | 40 +++++------- > drivers/pci/controller/pci-versatile.c | 62 ++++-------------- > drivers/pci/controller/pci-xgene.c | 33 ++++------ > drivers/pci/controller/pcie-altera.c | 38 +---------- > drivers/pci/controller/pcie-cadence-host.c | 2 +- > drivers/pci/controller/pcie-iproc-platform.c | 1 + > drivers/pci/controller/pcie-iproc.c | 63 +++---------------- > drivers/pci/controller/pcie-mediatek.c | 47 +++++--------- > drivers/pci/controller/pcie-mobiveil.c | 4 +- > drivers/pci/controller/pcie-rcar.c | 48 ++++++-------- > drivers/pci/controller/pcie-rockchip-host.c | 3 +- > drivers/pci/controller/pcie-xilinx-nwl.c | 2 +- > drivers/pci/controller/pcie-xilinx.c | 2 +- > drivers/pci/of.c | 44 ++++++++++++- > drivers/pci/pci.h | 8 ++- > include/linux/pci.h | 2 + > 21 files changed, 162 insertions(+), 331 deletions(-) > > -- > 2.20.1 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Murray Subject: Re: [PATCH 00/11] PCI dma-ranges parsing consolidation Date: Thu, 26 Sep 2019 09:49:00 +0100 Message-ID: <20190926084859.GB9720@e119886-lin.cambridge.arm.com> References: <20190924214630.12817-1-robh@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20190924214630.12817-1-robh@kernel.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Rob Herring Cc: Heiko Stuebner , Karthikeyan Mitran , linux-pci@vger.kernel.org, Shawn Lin , Ryder Lee , Matthias Brugger , Thomas Petazzoni , Toan Le , Will Deacon , Lorenzo Pieralisi , Michal Simek , linux-rockchip@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, Linus Walleij , Ray Jui , Hou Zhiqiang , Simon Horman , linux-mediatek@lists.infradead.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Scott Branden , Gustavo Pimentel , rfi@lists.rocketboards.orgl List-Id: linux-rockchip.vger.kernel.org On Tue, Sep 24, 2019 at 04:46:19PM -0500, Rob Herring wrote: > This series moves the DT 'dma-ranges' parsing into common helpers > utilizing a resource list. In the process of doing this, I noticed > several cases where pci_parse_request_of_pci_ranges() could be used so > I converted those drivers first. The last 5 patches make the actual > change to use the common 'dma_ranges' resource list. There's no > (intended) functional change in this series though I'm also working on > a separate series to improve the handling of 'dma-ranges' and dma > masks. > > pci-rcar-gen2 is the only remaining driver doing its own dma-ranges > handling as it is still using the old ARM PCI functions. Looks like it > is the last one (in drivers/pci/). It also seems that pcie-tango is using of_pci_dma_range_parser_init and so parsing dma-ranges. Though it's using the dma_ranges for a slightly different purpose. Thanks, Andrew Murray > > Compile tested only. > > Rob > > Rob Herring (11): > PCI: aardvark: Use pci_parse_request_of_pci_ranges() > PCI: altera: Use pci_parse_request_of_pci_ranges() > PCI: mediatek: Use pci_parse_request_of_pci_ranges() > PCI: versatile: Enable COMPILE_TEST > PCI: versatile: Use pci_parse_request_of_pci_ranges() > PCI: of: Add inbound resource parsing to helpers > PCI: ftpci100: Use inbound resources for setup > PCI: v3-semi: Use inbound resources for setup > PCI: xgene: Use inbound resources for setup > PCI: iproc: Use inbound resources for setup > PCI: rcar: Use inbound resources for setup > > drivers/pci/controller/Kconfig | 2 +- > .../pci/controller/dwc/pcie-designware-host.c | 3 +- > drivers/pci/controller/pci-aardvark.c | 58 ++--------------- > drivers/pci/controller/pci-ftpci100.c | 29 ++++----- > drivers/pci/controller/pci-host-common.c | 2 +- > drivers/pci/controller/pci-v3-semi.c | 40 +++++------- > drivers/pci/controller/pci-versatile.c | 62 ++++-------------- > drivers/pci/controller/pci-xgene.c | 33 ++++------ > drivers/pci/controller/pcie-altera.c | 38 +---------- > drivers/pci/controller/pcie-cadence-host.c | 2 +- > drivers/pci/controller/pcie-iproc-platform.c | 1 + > drivers/pci/controller/pcie-iproc.c | 63 +++---------------- > drivers/pci/controller/pcie-mediatek.c | 47 +++++--------- > drivers/pci/controller/pcie-mobiveil.c | 4 +- > drivers/pci/controller/pcie-rcar.c | 48 ++++++-------- > drivers/pci/controller/pcie-rockchip-host.c | 3 +- > drivers/pci/controller/pcie-xilinx-nwl.c | 2 +- > drivers/pci/controller/pcie-xilinx.c | 2 +- > drivers/pci/of.c | 44 ++++++++++++- > drivers/pci/pci.h | 8 ++- > include/linux/pci.h | 2 + > 21 files changed, 162 insertions(+), 331 deletions(-) > > -- > 2.20.1 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 645C0C432C2 for ; Thu, 26 Sep 2019 08:50:22 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 32A02222BE for ; Thu, 26 Sep 2019 08:50:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rUZAtVXf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 32A02222BE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=porKnfNVJakXg+Yf07b1eTCh77/CnU4Ia65Ihr4t/2g=; b=rUZAtVXfQln+Hi XjNI/eKZuWYucWvXnGn5HWrCUaFq4mxJCRAtR77n4MvT8HEVONdTUFn2+i0HVijIqcRFyZzYZb7fn yDGkG5ihRR4Qcnv6tWRRwxWY9L4Dgf8g/Zid3MS++Kt1s/uOhv96hO9WPvC03DDkyYL/KRSZAY5HP lW2XTtiVSYjyubO2QXycieMFi81PWX6Qm/Ftq4afCEcRf7QZFBLARG0wCoo7KwXB2giT7HyMaKeiq HmyDQAh6ZF8ZnRAVQf35RzMY+4QYu3fZ10IsSlak0hysOEAIv3Cppge6+BgG7uNKiQma3FgJH5d8M NvFBgR16kUH50tWkzisA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDPTT-0001W0-NY; Thu, 26 Sep 2019 08:50:07 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDPSQ-0001Mk-OZ; Thu, 26 Sep 2019 08:49:11 +0000 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 2D1901000; Thu, 26 Sep 2019 01:49:02 -0700 (PDT) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 785163F67D; Thu, 26 Sep 2019 01:49:01 -0700 (PDT) Date: Thu, 26 Sep 2019 09:49:00 +0100 From: Andrew Murray To: Rob Herring Subject: Re: [PATCH 00/11] PCI dma-ranges parsing consolidation Message-ID: <20190926084859.GB9720@e119886-lin.cambridge.arm.com> References: <20190924214630.12817-1-robh@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190924214630.12817-1-robh@kernel.org> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190926_014904_685560_D39186C9 X-CRM114-Status: GOOD ( 17.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , Karthikeyan Mitran , linux-pci@vger.kernel.org, Shawn Lin , Ryder Lee , Matthias Brugger , Thomas Petazzoni , Toan Le , Will Deacon , Lorenzo Pieralisi , Michal Simek , linux-rockchip@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, Linus Walleij , Ray Jui , Hou Zhiqiang , Simon Horman , linux-mediatek@lists.infradead.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org, Scott Branden , Gustavo Pimentel , rfi@lists.rocketboards.org, linux-renesas-soc@vger.kernel.org, Tom Joseph , Jingoo Han , Ley Foon Tan Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 24, 2019 at 04:46:19PM -0500, Rob Herring wrote: > This series moves the DT 'dma-ranges' parsing into common helpers > utilizing a resource list. In the process of doing this, I noticed > several cases where pci_parse_request_of_pci_ranges() could be used so > I converted those drivers first. The last 5 patches make the actual > change to use the common 'dma_ranges' resource list. There's no > (intended) functional change in this series though I'm also working on > a separate series to improve the handling of 'dma-ranges' and dma > masks. > > pci-rcar-gen2 is the only remaining driver doing its own dma-ranges > handling as it is still using the old ARM PCI functions. Looks like it > is the last one (in drivers/pci/). It also seems that pcie-tango is using of_pci_dma_range_parser_init and so parsing dma-ranges. Though it's using the dma_ranges for a slightly different purpose. Thanks, Andrew Murray > > Compile tested only. > > Rob > > Rob Herring (11): > PCI: aardvark: Use pci_parse_request_of_pci_ranges() > PCI: altera: Use pci_parse_request_of_pci_ranges() > PCI: mediatek: Use pci_parse_request_of_pci_ranges() > PCI: versatile: Enable COMPILE_TEST > PCI: versatile: Use pci_parse_request_of_pci_ranges() > PCI: of: Add inbound resource parsing to helpers > PCI: ftpci100: Use inbound resources for setup > PCI: v3-semi: Use inbound resources for setup > PCI: xgene: Use inbound resources for setup > PCI: iproc: Use inbound resources for setup > PCI: rcar: Use inbound resources for setup > > drivers/pci/controller/Kconfig | 2 +- > .../pci/controller/dwc/pcie-designware-host.c | 3 +- > drivers/pci/controller/pci-aardvark.c | 58 ++--------------- > drivers/pci/controller/pci-ftpci100.c | 29 ++++----- > drivers/pci/controller/pci-host-common.c | 2 +- > drivers/pci/controller/pci-v3-semi.c | 40 +++++------- > drivers/pci/controller/pci-versatile.c | 62 ++++-------------- > drivers/pci/controller/pci-xgene.c | 33 ++++------ > drivers/pci/controller/pcie-altera.c | 38 +---------- > drivers/pci/controller/pcie-cadence-host.c | 2 +- > drivers/pci/controller/pcie-iproc-platform.c | 1 + > drivers/pci/controller/pcie-iproc.c | 63 +++---------------- > drivers/pci/controller/pcie-mediatek.c | 47 +++++--------- > drivers/pci/controller/pcie-mobiveil.c | 4 +- > drivers/pci/controller/pcie-rcar.c | 48 ++++++-------- > drivers/pci/controller/pcie-rockchip-host.c | 3 +- > drivers/pci/controller/pcie-xilinx-nwl.c | 2 +- > drivers/pci/controller/pcie-xilinx.c | 2 +- > drivers/pci/of.c | 44 ++++++++++++- > drivers/pci/pci.h | 8 ++- > include/linux/pci.h | 2 + > 21 files changed, 162 insertions(+), 331 deletions(-) > > -- > 2.20.1 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel