Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3673917ybe; Sun, 8 Sep 2019 19:26:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhkNf4uns/LFubNFwYM4oJ6pMMJuXrJLFYntonH754W4i2e3tLF/LTp2EDfCgo8H1isDUj X-Received: by 2002:a50:8961:: with SMTP id f30mr21749549edf.144.1567995960855; Sun, 08 Sep 2019 19:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567995960; cv=none; d=google.com; s=arc-20160816; b=ssKIoeQfnzIEXIuLeMOQ+mf968iU0KFsVkS7PJFkmNlDHEjrZPVkR6PJQ75zhke1bs ZsPZxbz8qPIbbKNPmEHO2VgnFItfa2t9AuyYVYeqFINaquJ/uMBkujUWCDmpsUAno8WA jti4mS/KrqJx3CP9fV7xtd8/WC3gBAG6Fg1PIpump70lv4ZiOTrc/qWzpDS2PpTX2aZT 06EXPn1+D6OcqGAn2a1m9cdxvhBUc3Ijz4m1zK5j48Fpvk5kPRifdsqfrFN2l/+fDR4d 6hYh78bpzR6aR/8jH73fOx/Y2zz9oGwaPUXpRUQcQMu/A4R8+DkSuFZScZi9mItFJKZg IBJA== 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:dkim-signature; bh=659UbF703Ke08oxXPbVi5B0O0e3v+sV+Iu3NAad3UAs=; b=sUFHgiWAF1JoY4J1ftp9LF0GZI6qrga3yp79Zr5zKEZpGot76fdKx5UjtIcOBkE8UO TYwQrvSQumwhCDd8ePADeeumAwwad2kaQccSCiPUvaz66EVyuRUc/Na2KuM1wPL8zSpn gTluAFi0ade3iUeJPdCJGMIG+IspyPgRs6p+abiJts2yL/phOjtc9550FXSGxjS9M6LT KexHTz4LhGl341HScbd4KHX5MPcqfGDqDAzA5kn5UpLEhsuE1UM0XhAPIkUIJjMaiTa9 gBuWydOLUh5ISZihDEEOSqWpn0QIIItC0Dv1sgafMOADWFA0kKyk1ls9cG9kuNfQDa0J y9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=h8+E1rWZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si6678947ejb.186.2019.09.08.19.25.37; Sun, 08 Sep 2019 19:26: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; dkim=pass header.i=@kernel.org header.s=default header.b=h8+E1rWZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406746AbfIGQ4C (ORCPT + 99 others); Sat, 7 Sep 2019 12:56:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:53940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404220AbfIGQ4B (ORCPT ); Sat, 7 Sep 2019 12:56:01 -0400 Received: from localhost (110.8.30.213.rev.vodafone.pt [213.30.8.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7B7D621835; Sat, 7 Sep 2019 16:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567875361; bh=5PQmXyEjUUF9AxHPZrmaDK+7Anvek9rSUaMyf2vAAsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h8+E1rWZ6+p1rC5cNfdF0gzTPrfPY/b/PdoQFtV1KnB2A75o/gvBXgEtPHiF3VkSK x42otI3HH0sIhmJGy8Y/AbmxIFHe7QW7nFVDInpIXg4+k/vMCJ/0gLq9S1LCck+FWA wHiGCDqrbHDUvpDgiRZm0i72PAXxRwgS5X1hjYYo= Date: Sat, 7 Sep 2019 11:55:57 -0500 From: Bjorn Helgaas To: Jonathan Chocron Cc: lorenzo.pieralisi@arm.com, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, robh+dt@kernel.org, mark.rutland@arm.com, andrew.murray@arm.com, dwmw@amazon.co.uk, benh@kernel.crashing.org, alisaidi@amazon.com, ronenk@amazon.com, barakw@amazon.com, talel@amazon.com, hanochu@amazon.com, hhhawa@amazon.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 6/7] PCI: dwc: al: Add support for DW based driver type Message-ID: <20190907165557.GO103977@google.com> References: <20190905140018.5139-1-jonnyc@amazon.com> <20190905140144.7933-2-jonnyc@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190905140144.7933-2-jonnyc@amazon.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org s/Add support for DW based driver type/Add Amazon Annapurna Labs PCIe controller driver/ On Thu, Sep 05, 2019 at 05:01:43PM +0300, Jonathan Chocron wrote: > This driver is DT based and utilizes the DesignWare APIs. > > It allows using a smaller ECAM range for a larger bus range - > usually an entire bus uses 1MB of address space, but the driver > can use it for a larger number of buses. This is achieved by using a HW > mechanism which allows changing the BUS part of the "final" outgoing > config transaction. There are 2 HW regs, one which is basically a > bitmask determining which bits to take from the AXI transaction itself > and another which holds the complementary part programmed by the > driver. > > All link initializations are handled by the boot FW. > > Signed-off-by: Jonathan Chocron > Reviewed-by: Gustavo Pimentel > Reviewed-by: Andrew Murray > --- > drivers/pci/controller/dwc/Kconfig | 12 + > drivers/pci/controller/dwc/pcie-al.c | 365 +++++++++++++++++++++++++++ > 2 files changed, 377 insertions(+) > > diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig > index 4fada2e93285..0ba988b5b5bc 100644 > --- a/drivers/pci/controller/dwc/Kconfig > +++ b/drivers/pci/controller/dwc/Kconfig > @@ -256,4 +256,16 @@ config PCIE_UNIPHIER > Say Y here if you want PCIe controller support on UniPhier SoCs. > This driver supports LD20 and PXs3 SoCs. > > +config PCIE_AL > + bool "Amazon Annapurna Labs PCIe controller" > + depends on OF && (ARM64 || COMPILE_TEST) > + depends on PCI_MSI_IRQ_DOMAIN > + select PCIE_DW_HOST > + help > + Say Y here to enable support of the Amazon's Annapurna Labs PCIe > + controller IP on Amazon SoCs. The PCIe controller uses the DesignWare > + core plus Annapurna Labs proprietary hardware wrappers. This is > + required only for DT-based platforms. ACPI platforms with the > + Annapurna Labs PCIe controller don't need to enable this. Interesting. How do you deal with the funky ECAM space on ACPI platforms? Oh, never mind, I see, it's the pcie-al.c ECAM ops quirk that's already in the tree. Bjorn