Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5864115ybp; Tue, 15 Oct 2019 06:16:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPtlVH6F/AghDvTtQCnrq9DAw3S6gVJixj9e4zZ36Joe0eERFNi0wV8pBLp8Lcwc7Z1xIq X-Received: by 2002:a17:906:80cd:: with SMTP id a13mr34563992ejx.12.1571145360320; Tue, 15 Oct 2019 06:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571145360; cv=none; d=google.com; s=arc-20160816; b=Q/IN9dzWKJKMutXGYTF/tA7xmzC19w+fkdECeal/NlBrgm2JFE+Wlu4B9c3eb/pftU DgeE8Pio0CEhfDPQgZXc1hWDt9YuIdcGdGymeqV9P66C1yN4wYPZV8ZcGB2LdBm3HgNf E3pQAGZYYo3vPm9kxx/wjktCqKaLLg6XL2tmo1bFxd3LZfssZi3r6HJ7mcCcDanOXry4 8VY6dbtRZwlTRUJVXVOlGhKcpA62UJ/L5aGyODnVxMq9I0i+wTjbb9SBRkUwE254fHvC cAE91SAG7m471fBdL0dniY6OabVN+Nw+QMZdcb1GoZavRM/9UA7gBnVHarIZu+0dF+7Y urYA== 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=MUJWPvMKfnI82MIYmQDgT9h5SmNrqfJz/5EBKBCIJAk=; b=mcHK/BWVWhRjGiQ2werdAG1rhDv/PdtoX9Xz3HpR1kK28KdWP11edVdsJAiD+zFxBk NH5S/GKmZVKc3qG9QdzUhloykN0u34q2RdSnVYmq4neSi/HnUqn/5zB2otmtpdP1duds yiIR8m6E+zsjDx22BmDjJBkDHI7fCj3ApxEl/XcAN1JW4splZhdtEWgzmSW5z+wYqnIv m4/qW7fabegacYKel7ugdMhWg6pTr5uThCeHFE8MEFvoH+4ZKcf1IRADP0t40N1r2Eds CkIMBCmFxI63o5SFs7ChI0jQnK/t61S3j6aDc6KP/9lkNHjkR7/V4o5MZRB/t24nrrP5 czFw== 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 h14si16615664edk.315.2019.10.15.06.15.34; Tue, 15 Oct 2019 06:16:00 -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 S1731176AbfJONO1 (ORCPT + 99 others); Tue, 15 Oct 2019 09:14:27 -0400 Received: from foss.arm.com ([217.140.110.172]:38626 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729551AbfJONO1 (ORCPT ); Tue, 15 Oct 2019 09:14:27 -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 8E359337; Tue, 15 Oct 2019 06:14:26 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C1A333F718; Tue, 15 Oct 2019 06:14:24 -0700 (PDT) Date: Tue, 15 Oct 2019 14:14:19 +0100 From: Lorenzo Pieralisi To: Neil Armstrong Cc: khilman@baylibre.com, kishon@ti.com, bhelgaas@google.com, andrew.murray@arm.com, linux-amlogic@lists.infradead.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, yue.wang@Amlogic.com, maz@kernel.org, repk@triplefau.lt, nick@khadas.com, gouwa@khadas.com Subject: Re: [PATCH v2 0/6] arm64: dts: meson-g12: add support for PCIe Message-ID: <20191015131419.GA12343@e121166-lin.cambridge.arm.com> References: <20190916125022.10754-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190916125022.10754-1-narmstrong@baylibre.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 16, 2019 at 02:50:16PM +0200, Neil Armstrong wrote: > This patchset : > - updates the Amlogic PCI bindings for G12A > - reworks the Amlogic PCIe driver to make use of the > G12a USB3+PCIe Combo PHY instead of directly writing in > the PHY register > - adds the necessary operations to the G12a USB3+PCIe Combo PHY driver > - adds the PCIe Node for G12A, G12B and SM1 SoCs > - adds the commented support for the S922X, A311D and S905D3 based > VIM3 boards. > > The VIM3 schematic can be found at [1]. > > This patchset is dependent on Remi's "Fix reset assertion via gpio descriptor" > patch at [2]. Merged in pci/meson; however, I am not sure what should be done on Remi's patch, I would like to queue it up too otherwise it looks to me that merging this series is not right. Lorenzo > This patchset has been tested in a A311D VIM3 and S905D3 VIM3L using a > 128Go TS128GMTE110S NVMe PCIe module. > > For indication, here is a bonnie++ run as ext4 formatted on the VIM3: > ------Sequential Output------ --Sequential Input- --Random- > -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- > Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP > 4G 93865 99 312837 96 194487 23 102808 97 415501 21 +++++ +++ > > and the S905D3 VIM3L version: > ------Sequential Output------ --Sequential Input- --Random- > -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- > Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP > 4G 52144 95 71766 21 47302 10 57078 98 415469 44 +++++ +++ > > Changes since v1 at [3]: > - Collected Andrew's and Rob's Reviewed-by tags > - Added missing calls to phy_init/phy_exit > - Fixes has_shared_phy handling for MIPI clock > - Add comment in the DT concerning firmware setting the right properties > - Added SM1 Power Domain to PCIe node > > [1] https://docs.khadas.com/vim3/HardwareDocs.html > [2] https://patchwork.kernel.org/patch/11125261/ > [3] https://patchwork.kernel.org/cover/11136927/ > > Neil Armstrong (6): > dt-bindings: pci: amlogic,meson-pcie: Add G12A bindings > PCI: amlogic: Fix probed clock names > PCI: amlogic: meson: Add support for G12A > phy: meson-g12a-usb3-pcie: Add support for PCIe mode > arm64: dts: meson-g12a: Add PCIe node > arm64: dts: khadas-vim3: add commented support for PCIe > > .../bindings/pci/amlogic,meson-pcie.txt | 12 +- > .../boot/dts/amlogic/meson-g12-common.dtsi | 33 +++++ > .../amlogic/meson-g12b-a311d-khadas-vim3.dts | 25 ++++ > .../amlogic/meson-g12b-s922x-khadas-vim3.dts | 25 ++++ > .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 + > .../dts/amlogic/meson-sm1-khadas-vim3l.dts | 25 ++++ > arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 4 + > drivers/pci/controller/dwc/pci-meson.c | 132 ++++++++++++++---- > .../phy/amlogic/phy-meson-g12a-usb3-pcie.c | 70 ++++++++-- > 9 files changed, 292 insertions(+), 38 deletions(-) > > -- > 2.22.0 >