Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3702982yba; Tue, 7 May 2019 05:52:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxibyd99hyYkph8yhzzXdjJaKk+brCJVooF5JYYE1xvk1OrNL5Z3pek6kGs837FCC4yEOAp X-Received: by 2002:a63:d949:: with SMTP id e9mr14304708pgj.437.1557233520541; Tue, 07 May 2019 05:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557233520; cv=none; d=google.com; s=arc-20160816; b=NWqcOZXcl6dXU5Y8vXtysFmAfdc2scNjYpwua6jnylzjUjVOMgbjOXJgNFmBfS+2ak wjMyTF+IfP4cuTAdz2Ffys0CWVQhqakpZwDLvM2Gtq6DUgCIuJuejt9QsPKA/wYXXTYw amSQtYmb3gy34h53LeGAXfk1UY0UlSlepzvGqMbSl3lcctS4X+3nzOO+L7iUJO4QoLxn OHhOruaWVYzuKdGMl860ic4EVIHTE+iRTRtuEpeYTaox5GzvHq1+KBUySCjbFkfDNdLX A4Hfi/Gl+5HLMVvp2NNopxpL4/ka6e62I40kiNWaHTBuomup+JbbvZpPP2E3R25mQUCa LlzA== 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=Z2z12Gn165P/96Z/+mEWhxDKWXBmqfvOXc8fzpJO8rs=; b=eNtZPQCGxB3uJ5l7dV3ndrSXgQwxzHZkSqnuBcJPjMQ3QZyQw1sw5Y1bzo2LDMlnfo CfuADw+37T/EMwqFVIIYAHXKin8C+FhTAt1F7byW7hnpNzYk7XDlGsTohb7soReKTy8G VmHEwc9hlH0mO/25Cu/uLNQDH7uTNfDeK3lBUe6myUmJI87FUXpMksP5lJBZd1IOzb/8 yvDMZkA1uuFddV3M7OyPyvEop7YmyMGFjBhyZps9C5xNDjILqrg+cxcf9XrarArT0Iyx ZcEfXR14jvN+LhPyum4abLdSWv+YvISrtvD1ni8uENInf4DHp/0PI+2z8ZZPAdAbj2AB hV3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DERnMfiV; 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 t14si1232201pgm.166.2019.05.07.05.51.44; Tue, 07 May 2019 05:52: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=DERnMfiV; 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 S1726731AbfEGMtw (ORCPT + 99 others); Tue, 7 May 2019 08:49:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:35664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbfEGMtv (ORCPT ); Tue, 7 May 2019 08:49:51 -0400 Received: from localhost (173-24-246-231.client.mchsi.com [173.24.246.231]) (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 C4787205C9; Tue, 7 May 2019 12:49:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557233391; bh=ra7tqOS4f+DfaPqJyjodbcdGsIMeXh1kzglL7pZre8M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DERnMfiV/5F1i33PM1E2PdY9rxIepPd+xuFV70+do8LEyO53zDcitWILeCfAYZSLz vTQtUao3vDB3wUcd4vY5Ek6kO5CYC6m57j3COVcilc9iR9O5550VGDTSYgtLwwxWVy TJZVOU4J42Mp+opl6YYXio2Oxf4mf32uXHbROGvY= Date: Tue, 7 May 2019 07:49:48 -0500 From: Bjorn Helgaas To: David Woodhouse Cc: linux-pci@vger.kernel.org, "Chocron, Jonathan" , Lorenzo Pieralisi , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Keith Busch , Sinan Kaya , Lukas Wunner , Frederick Lawler Subject: Re: [PATCH v2 08/13] PCI/portdrv: Simplify PCIe feature permission checking Message-ID: <20190507124948.GC156478@google.com> References: <152062141493.77693.9630397416694091342.stgit@bhelgaas-glaptop.roam.corp.google.com> <152062203293.77693.8159909590216160503.stgit@bhelgaas-glaptop.roam.corp.google.com> <0c7ed46e4a8cf4cea544a7e62c32428b31cdea4e.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c7ed46e4a8cf4cea544a7e62c32428b31cdea4e.camel@infradead.org> 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 On Tue, May 07, 2019 at 01:00:03PM +0100, David Woodhouse wrote: > On Fri, 2018-03-09 at 13:00 -0600, Bjorn Helgaas wrote: > > --- a/drivers/pci/probe.c > > +++ b/drivers/pci/probe.c > > @@ -540,6 +540,16 @@ struct pci_host_bridge *pci_alloc_host_bridge(size_t priv) > > INIT_LIST_HEAD(&bridge->windows); > > bridge->dev.release = pci_release_host_bridge_dev; > > > > + /* > > + * We assume we can manage these PCIe features. Some systems may > > + * reserve these for use by the platform itself, e.g., an ACPI BIOS > > + * may implement its own AER handling and use _OSC to prevent the > > + * OS from interfering. > > + */ > > + bridge->use_aer = 1; > > + bridge->use_hotplug = 1; > > + bridge->use_pme = 1; > > + > > return bridge; > > } > > EXPORT_SYMBOL(pci_alloc_host_bridge); > > Is there a good reason why you've done this only for > pci_alloc_host_bridge() and not also for devm_pci_alloc_host_bridge()? No good reason; I just screwed up. Should be fixed in v5.2 (and marked for stable): https://lore.kernel.org/linux-pci/20190318160718.10925-1-jean-philippe.brucker@arm.com Sorry about that. Bjorn