Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp211078imp; Wed, 20 Feb 2019 23:20:52 -0800 (PST) X-Google-Smtp-Source: AHgI3IYMpxSRHFKN0p1DdjnXGPfVFaykN8l0ecdZrNXlQYlQYQnXB5ySW5pVNQY0yhoIvFvy6Gv3 X-Received: by 2002:a63:4a0a:: with SMTP id x10mr16646503pga.325.1550733652640; Wed, 20 Feb 2019 23:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550733652; cv=none; d=google.com; s=arc-20160816; b=D8d7koBp2EhAp0Tl7WCORkq+xBWHi+0EurT/UxYBk68J4ufYQRL8utHWq3SlQGkTb4 jvhnQd8eFATtPqG+5pjY67QyvThsgLGqTxZyoe3/Ou5j4Q0rgEoSNJGKAK6kny3CVDnD HkvJBU3JWrGrBEpHw5bqha6vXNY/eVyAMsVgdiOyxgdy3CoJ1heZ+rV/sIMlQwWosFrz RdCkjenImfek9D4/J0H4MvVVTfH6hb4NcH8mQiN/sIy66AFYIM5MX+1HDQMSXiIUfUjD BO2R6HYQVHLTKCe4GttlQC6MUkNcYn7/l51ZpnT49brWC529HH22LPoJBBTHbCClbWgR mWwg== 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=WR6OkBGvFYpXcsgeWwXt1lDDPqE4RsgGTzlcoXNDveA=; b=W/ZEkeO+gSloHVgmRRE348OQfjOefAQnes/llXZnuZTjRwwGy4ZYxWagrR7EarkXf0 YmbBP47CBq27JiXi+u8QKOZRW4Cv/MBNXYCLQnFHT+mc3oLuEpqrPdH2EajRGNmjnpBT l9QpXuZwAB4aviOotkCBkm7+q1mi/uqSGVcHV/loG+LkCSjIvllcfuXoRbcJLbhIPdJy cB3iCii1y6QgMDeZJW21c6y7xXzkyVPUSknUs5fccf9xU9yEFaWqbSPGVXHx6hZt+z73 f9rBkzUTcp+BTg52TQ+yEL7RxOPbiHrmmrpfcVZC4mgVRLnblbZHnWXw2WA1V5XNWOOQ PZwA== 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 x8si21173247plv.137.2019.02.20.23.20.37; Wed, 20 Feb 2019 23:20:52 -0800 (PST) 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 S1726871AbfBUHTt (ORCPT + 99 others); Thu, 21 Feb 2019 02:19:49 -0500 Received: from bmailout3.hostsharing.net ([176.9.242.62]:59349 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbfBUHTs (ORCPT ); Thu, 21 Feb 2019 02:19:48 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 845DF100DA1B1; Thu, 21 Feb 2019 08:19:46 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 3896BCC6BB; Thu, 21 Feb 2019 08:19:46 +0100 (CET) Date: Thu, 21 Feb 2019 08:19:46 +0100 From: Lukas Wunner To: Alexandru Gagniuc Cc: bhelgaas@google.com, austin_bolen@dell.com, alex_gagniuc@dellteam.com, keith.busch@intel.com, Shyam_Iyer@Dell.com, okaya@kernel.org, linux-pci@vger.kernel.org, "Rafael J. Wysocki" , Andy Shevchenko , Mika Westerberg , Oza Pawandeep , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC v2 1/4] PCI: hotplug: Add support for disabling in-band presence Message-ID: <20190221071946.poqwdilfijpafhvb@wunner.de> References: <20190220012031.10741-1-mr.nuke.me@gmail.com> <20190220012031.10741-2-mr.nuke.me@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190220012031.10741-2-mr.nuke.me@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 07:20:27PM -0600, Alexandru Gagniuc wrote: > @@ -846,6 +846,9 @@ struct controller *pcie_init(struct pcie_device *dev) > if (pdev->is_thunderbolt) > slot_cap |= PCI_EXP_SLTCAP_NCCS; > > + if (pdev->no_in_band_presence) > + ctrl->inband_presence_disabled = 1; > + > ctrl->slot_cap = slot_cap; > mutex_init(&ctrl->ctrl_lock); > mutex_init(&ctrl->state_lock); The above hunk belongs in patch 4. > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -413,6 +413,7 @@ struct pci_dev { > unsigned int non_compliant_bars:1; /* Broken BARs; ignore them */ > unsigned int is_probed:1; /* Device probing in progress */ > unsigned int link_active_reporting:1;/* Device capable of reporting link active */ > + unsigned int no_in_band_presence:1; /* Device does not report in-band presence */ > unsigned int no_vf_scan:1; /* Don't scan for VFs after IOV enablement */ > pci_dev_flags_t dev_flags; > atomic_t enable_cnt; /* pci_enable_device has been called */ Same here. Thanks, Lukas