Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4416750img; Tue, 26 Mar 2019 09:01:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIvSJIrtRnaJISHVAqwP8GPAsEO02LbY3YSdbWFAtbp/zEpnr7WXUfQubSWrnzNXlGPkCo X-Received: by 2002:a62:1147:: with SMTP id z68mr29225737pfi.215.1553616075215; Tue, 26 Mar 2019 09:01:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553616075; cv=none; d=google.com; s=arc-20160816; b=DjpiFznqT1RNgHGJ+SvZuDuM4zKcd21UBCAh7MZPgEJblmwNdriz6m6MlQjTaZ/H38 TTSVyLsFvLVbPxXpIND1e4uiRyagrCnIBPS1f4+9zAoWhz/uNb4pGFtQrhYPeWVuqCxy gsq9bUOTODo2iX8e/e+qsENm7goOkwKh0PaSKu7Rm8iSNOyKAJBc/lA9Icck1j8tt2FF HtIm4+A78U4d0CX1OecblK0j7dy77eQwjA27hBhVhbDUO9gnFhqdG17n37ZQXGi2JlXN GM7Vhk2mlC9aebMWJcyhMIcEgty6++XSstdsXQlJbLD3WWR3aOMjb7jEVXa0/MGd4ooG gHfQ== 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=Wgs2IfshnGnMgW6WWGic3OPcqvwNCOSqYQcmTIgY9vw=; b=QQSjNgjHPaywu5vTqR42RV7xTM8zU4M9blIOFxNksuyHr+ZwBgyBL9cg9N4JSZqisW Uya9HUzYquwcagVMyJlvfeyiPaSccDb+sMSbkUShs9DUCoBvoa0F3/otN5e27GHlqm5i eHaLaXdg3rJ/UR6hMqaxOEHKlbnX8QSf/42D0Hh8fs9w7Wnll6ORd3StwHAIWO42IZeZ hC2bZnokCKJq8Pv/kg0lHyfLYCcL6GBsrHIT5hMJlkRekh3HfEW7rFGyj3wUvWpsjG09 x/OJ+wNjFpdCZaFB4F0K79fWGE1/XxDJNf3AOqSSdvJQB6f69uQLQf+BnVUyf3QipN3E FtFg== 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 d22si5451324pls.435.2019.03.26.09.00.59; Tue, 26 Mar 2019 09:01:15 -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 S1732105AbfCZP6r (ORCPT + 99 others); Tue, 26 Mar 2019 11:58:47 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39016 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfCZP6r (ORCPT ); Tue, 26 Mar 2019 11:58:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 464001596; Tue, 26 Mar 2019 08:58:46 -0700 (PDT) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E6143F614; Tue, 26 Mar 2019 08:58:43 -0700 (PDT) Date: Tue, 26 Mar 2019 15:58:37 +0000 From: Lorenzo Pieralisi To: David Woodhouse Cc: Jonathan Chocron , linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, vaerov@amazon.com, benh@kernel.crashing.org, alisaidi@amazon.com, zeev@amazon.com, ronenk@amazon.com, barakw@amazon.com, Gustavo Pimentel , Zhou Wang Subject: Re: [PATCH v2] PCI: al: Add Amazon Annapurna Labs PCIe host controller driver Message-ID: <20190326155837.GA8820@e107981-ln.cambridge.arm.com> References: <1553512040-4453-1-git-send-email-jonnyc@amazon.com> <1553594455-30436-1-git-send-email-jonnyc@amazon.com> <20190326121727.GA4171@e107981-ln.cambridge.arm.com> <07838dad0e0cdb14c42080ef19c11829f72c8814.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07838dad0e0cdb14c42080ef19c11829f72c8814.camel@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 01:24:41PM +0000, David Woodhouse wrote: > On Tue, 2019-03-26 at 12:17 +0000, Lorenzo Pieralisi wrote: > > [+Zhou, Gustavo] > > > > On Tue, Mar 26, 2019 at 12:00:55PM +0200, Jonathan Chocron wrote: > > > Adding support for Amazon's Annapurna Labs PCIe driver. > > > The HW controller is based on DesignWare's IP. > > > > > > The HW doesn't support accessing the Root Port's config space via > > > ECAM, so we obtain its base address via an AMZN0001 device. > > > > > > Furthermore, the DesignWare PCIe controller doesn't filter out > > > config transactions sent to devices 1 and up on its bus, so they > > > are filtered by the driver. > > > All subordinate buses do support ECAM access. > > > > > > Implementing specific PCI config access functions involves: > > > - Adding an init function to obtain the Root Port's base address > > > from an AMZN0001 device. > > > - Adding a new entry in the mcfg quirk array > > > > > > Co-developed-by: Vladimir Aerov > > > Signed-off-by: Jonathan Chocron > > > Signed-off-by: Vladimir Aerov > > > Reviewed-by: Benjamin Herrenschmidt > > > Reviewed-by: David Woodhouse > > > > Review tags should be given on public mailing lists for public > > review and I have not seen them (they were already there in v1) so > > you should drop them. > > We did that internally. You really don't want me telling engineers to > post to the list *first* without running things by me to get the basics > right. Not to start with, at least. Hi David, I am obviously in favour of internal review and I do not question it was carried out internally, I just kindly ask developers to drop review tags given internally when going to public mailing lists - I understand it is churn for you but I prefer them to be given explicitly. Thanks ! Lorenzo > Reviewed-by: David Woodhouse > > > > > Changes from v1: > > > - Fix commit message comments (incl. using AMZN0001 > > > instead of PNP0C02) > > > - Use the usual multi-line comment style > > > > > > MAINTAINERS | 6 +++ > > > drivers/acpi/pci_mcfg.c | 12 +++++ > > > drivers/pci/controller/dwc/Makefile | 1 + > > > drivers/pci/controller/dwc/pcie-al.c | 93 ++++++++++++++++++++++++++++++++++++ > > > include/linux/pci-ecam.h | 1 + > > > 5 files changed, 113 insertions(+) > > > create mode 100644 drivers/pci/controller/dwc/pcie-al.c > > > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > > index 32d444476a90..7a17017f9f82 100644 > > > --- a/MAINTAINERS > > > +++ b/MAINTAINERS > > > @@ -11769,6 +11769,12 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/pci.git/ > > > S: Supported > > > F: drivers/pci/controller/ > > > > > > +PCIE DRIVER FOR ANNAPURNA LABS > > > +M: Jonathan Chocron > > > +L: linux-pci@vger.kernel.org > > > +S: Maintained > > > +F: drivers/pci/controller/dwc/pcie-al.c > > > > I do not think we need a maintainer file for that see below, and > > actually this quirk should be handled by DWC maintainers since it is a > > DWC quirk, not a platform one. > > Many of the others already have this, it seems. > > It's also fine to drop it, and include it when we add the rest of the > Alpine SOC support and a MAINTAINERS entry for that. >