Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4240793img; Tue, 26 Mar 2019 05:56:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFx5dHTZlq3GdCg1f8AfY9PDTw/DA5UZLLmc2anxxWcBj7HeOK8mlaHKMxF+Tm5uszBA+y X-Received: by 2002:a63:ee04:: with SMTP id e4mr28730398pgi.310.1553604963272; Tue, 26 Mar 2019 05:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553604963; cv=none; d=google.com; s=arc-20160816; b=BycU/32n6jLFCfwd22qw/zWtGVhSltWjAFmIIMBWtFewTF7TLsScSlMnsexXX/jO5y qzAmAYIREz0VXmV+lqB6XdBmx0KAbmpeoTROkyq3+quWxnagi56Z01DzU5LleRgyLp49 KNBlsManotKuBu17obgSpOvN27rKrtni5qaPxUHOEK7kqoc2QtWNFL0wsFiJ00hnufiT AZ5GYCXIXlLg6fk/V5s3a3tGzBQ1q9FAaDzBtz5j4TjwoX/FAAk8Yh6JQ8B+fXWZxybB AeJpRaKBI646Xpfmmvd2WGWwdMmtpaa8K4p3z51KksGJ/FrXOsZQ+8vERqXYGKaviE++ 9v+A== 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=E1J+G4n6g4xWI+FztacFfd8qWF+WzZ/o3eDNlKJuRds=; b=0PxEng3BllIw3CRvEGhUY6iQcmz2f09BKkrLKuMd/j3PO26KAIEYLBVsDbjCEMN9VV Nj+PpMA1L74yBg02ucw8zcNrkGeujqHa+WDk7WMjywlbjwa3NbfTAkSiBrk5MZ4LbPQs dDY2ThRqQKO0wQPHGhM7HWg5/1ftlr3+reaqWPiNsVoqZNk0Eql+VxtdFnXlh68NJ7yM mVd8Xu46CVsbEApUsQehhY3qGDEsGQ3jgGHpetvUNE/nAkxA0BG+i7KH6KgIP+iSADcx Hpjyo2H2yuBETotNX8gqZUi/rs2oiZRfCX/Z5SaL2JMHqSjuyKT2dQ864QwCaGCYOayq lfOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZshjX7/k"; 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 23si15917469pgc.220.2019.03.26.05.55.47; Tue, 26 Mar 2019 05:56:03 -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="ZshjX7/k"; 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 S1730697AbfCZMzL (ORCPT + 99 others); Tue, 26 Mar 2019 08:55:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:33152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfCZMzL (ORCPT ); Tue, 26 Mar 2019 08:55:11 -0400 Received: from localhost (173-25-63-173.client.mchsi.com [173.25.63.173]) (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 221562070B; Tue, 26 Mar 2019 12:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553604910; bh=zwrszH0q56mIPC28FXfodGT4P/TQFSU0NFXDHwmLx/w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZshjX7/kTWgu3JyqjG2xr7Y8OmvqDo35udLb4fRzMsCvP9EuJvZEJUuivNuC398ws g+m2ztv0y0EWc1BOoKsrZGsB8SFSGUZ7r2Q+z1uLuBE/XiBgAYAEcxRXlS8wbNI2jJ 0Njhf5IUXJcOYfPJtUbGcbblriCvOhWbrOTsrbAY= Date: Tue, 26 Mar 2019 07:55:08 -0500 From: Bjorn Helgaas To: Jonathan Chocron Cc: linux-pci@vger.kernel.org, lorenzo.pieralisi@arm.com, linux-kernel@vger.kernel.org, vaerov@amazon.com, dwmw@amazon.co.uk, benh@kernel.crashing.org, alisaidi@amazon.com, zeev@amazon.com, ronenk@amazon.com, barakw@amazon.com Subject: Re: [PATCH v2] PCI: al: Add Amazon Annapurna Labs PCIe host controller driver Message-ID: <20190326125508.GG24180@google.com> References: <1553512040-4453-1-git-send-email-jonnyc@amazon.com> <1553594455-30436-1-git-send-email-jonnyc@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553594455-30436-1-git-send-email-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 Nits, probably Lorenzo will fix them up unless he sees more substantive things. On Tue, Mar 26, 2019 at 12:00:55PM +0200, Jonathan Chocron wrote: > Adding support for Amazon's Annapurna Labs PCIe driver. Ideally, use "imperative mood", i.e., write it as a command: Add 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. I didn't communicate my point very clearly. The above four lines should either be (1) a single paragraph, wrapped to fill the entire width, or (2) two paragraphs, with a blank line before "All subordinate buses ..." The fact that "... by the driver" ends in the middle of the line suggests that it's the end of the paragraph, but the fact that there's no blank line following suggests that it's not. So it creates an unnecessary hiccup for the reader. > 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 s/mcfg/MCFG/ since "MCFG" is an ACPI table ID, not a word. Bjorn