Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1226262pxb; Sun, 19 Sep 2021 10:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy85HDZh61DQGFSyg/hrTt4G3Sxv2VTJC8WbFBx048DKPK/li2ONm/ExvYIy+ZNuhUzF7Fi X-Received: by 2002:a6b:fd05:: with SMTP id c5mr15999123ioi.102.1632070887618; Sun, 19 Sep 2021 10:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632070887; cv=none; d=google.com; s=arc-20160816; b=m8PqluFY11f7lCMXI4dIyFWbD+MBqZ458ugQqQpF0ym4mKklxOWbq2cprHTxPDSzaA tIpmSyQc71q1f1SojIRxix4Yx0QXAkAPcy9pPvM6yi853DWVbIydGWpsdw5n1I4ha1c5 mXaRuaYSaPMP7uVMJ+KmtnpSKxipQ+hMdeTUmL9315F1v0K8OmAzs3o0aQYfRikN9RkJ 2QgKX0l6/u0PxvN0sX6rTGrfr6l6FEv5zfceo5Gt2Vwk21eA0COG/Fz8sIAqF0Y/LaY1 G3zcVws8VQJhrQfvQwu5asWZahDv9LA6pEgt65fXj43WWXxvMkzE/ZKIGE7mswkFHeix m9KA== 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 :references:message-id:subject:cc:to:from:date; bh=7aLbPCIW6xnEopVOXJLiUCcKrY8Dk3FFj4ZlgUKl83s=; b=cu9JuGZm8iBvpTInGrVk+0xQkh9//cAPYO5z0EKN/a67Lhpr37HIdyIaHbJZYX4oFu koHV/8GzoTnw6PmRQy6cvTL+fgna9mjyujCjolwZ4G/ojBuudYxwWlLTPsuk8Z5CjEV0 IIg7sf61b9arErTlyX+0x0Enk8rXl+N4CviX8XbUj4A6xiCQr5466RsUWSEf2QYkcSL4 52Q28HUCckqEZTkMC2mgGwedcX9CN94VxIyptLrcavRhd1moIxE9ImAp04P3bYfCTfwe aPhuXBIpa4Uma04O871xHjaK7eMQplZja5UvTJ/JE7ZF0t5ohVcRdCh/zGv7TBHxkMiN 5IFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si11826362ioh.98.2021.09.19.10.01.13; Sun, 19 Sep 2021 10:01:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234976AbhISMDn (ORCPT + 99 others); Sun, 19 Sep 2021 08:03:43 -0400 Received: from rosenzweig.io ([138.197.143.207]:46608 "EHLO rosenzweig.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbhISMDf (ORCPT ); Sun, 19 Sep 2021 08:03:35 -0400 Date: Sun, 19 Sep 2021 07:39:32 -0400 From: Alyssa Rosenzweig To: Marc Zyngier Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Bjorn Helgaas , Rob Herring , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Stan Skowronek , Mark Kettenis , Sven Peter , Hector Martin , Robin Murphy , kernel-team@android.com Subject: Re: [PATCH v3 00/10] PCI: Add support for Apple M1 Message-ID: References: <20210913182550.264165-1-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210913182550.264165-1-maz@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for giving this another push, the changes look great. The series is Tested-by: Alyssa Rosenzweig On Mon, Sep 13, 2021 at 07:25:40PM +0100, Marc Zyngier wrote: > I have resumed my earlier effort to bring the Apple-M1 into the world > of living by equipping it with a PCIe controller driver. Huge thanks > to Alyssa Rosenzweig for kicking it into shape and providing the first > two versions of this series. > > Much has changed since v2[2]. Mark Kettenis is doing a great job with > the binding [0], so I have dropped that from the series, and strictly > focused on the Linux side of thing. I am now using this binding as is, > with the exception of a single line change, which I believe is a fix > [1]. > > Supporting the per-port interrupt controller has brought in a couple > of fixes for the core DT code. Also, some work has gone into dealing > with excluding the MSI page from the IOVA range, as well as > programming the RID-to-SID mapper. > > Overall, the driver is now much cleaner and most probably feature > complete when it comes to supporting internal devices (although I > haven't investigated things like power management). TB support is > another story, and will require some more hacking. > > This of course still depends on the clock and pinctrl drivers that are > otherwise in flight, and will affect this driver one way or another. > I have pushed a branch with all the dependencies (and more) at [3]. > > * From v2 [2]: > - Refactor DT parsing to match the new version of the binding > - Add support for INTx and port-private interrupts > - Signal link-up/down using interrupts > - Export of_phandle_args_to_fwspec > - Fix generic parsing of interrupt map > - Rationalise port setup (data structure, self discovery) > - Tell DART to exclude MSI doorbell from the IOVA mappings > - Get rid of the setup bypass if the link was found up on boot > - Prevent the module from being removed > - Program the RID-to-SID mapper on device discovery > - Rebased on 5.15-rc1 > > [0] https://lore.kernel.org/r/20210827171534.62380-1-mark.kettenis@xs4all.nl > [1] https://lore.kernel.org/r/871r5tcwhp.wl-maz@kernel.org > [2] https://lore.kernel.org/r/20210816031621.240268-1-alyssa@rosenzweig.io > [3] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=hack/m1-pcie-v3 > > Alyssa Rosenzweig (2): > PCI: apple: Add initial hardware bring-up > PCI: apple: Set up reference clocks when probing > > Marc Zyngier (8): > irqdomain: Make of_phandle_args_to_fwspec generally available > of/irq: Allow matching of an interrupt-map local to an interrupt > controller > PCI: of: Allow matching of an interrupt-map local to a pci device > PCI: apple: Add INTx and per-port interrupt support > arm64: apple: t8103: Add root port interrupt routing > PCI: apple: Implement MSI support > iommu/dart: Exclude MSI doorbell from PCIe device IOVA range > PCI: apple: Configure RID to SID mapper on device addition > > MAINTAINERS | 7 + > arch/arm64/boot/dts/apple/t8103.dtsi | 33 +- > drivers/iommu/apple-dart.c | 25 + > drivers/of/irq.c | 17 +- > drivers/pci/controller/Kconfig | 17 + > drivers/pci/controller/Makefile | 1 + > drivers/pci/controller/pcie-apple.c | 818 +++++++++++++++++++++++++++ > drivers/pci/of.c | 10 +- > include/linux/irqdomain.h | 4 + > kernel/irq/irqdomain.c | 6 +- > 10 files changed, 925 insertions(+), 13 deletions(-) > create mode 100644 drivers/pci/controller/pcie-apple.c > > -- > 2.30.2 >