Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1241161imj; Thu, 14 Feb 2019 03:31:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IY1jiiqXkHakOn/krUKocYw61Zrmp+ln40ZT1f9TU1KHmADClapzMlRGqj9rHG0ndquucSD X-Received: by 2002:a65:528c:: with SMTP id y12mr3307446pgp.317.1550143869306; Thu, 14 Feb 2019 03:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550143869; cv=none; d=google.com; s=arc-20160816; b=wJMIu8TgmdeW6KWkc7/2ofsyk6ywzOQ0Sx3r6hqiTCvLbHXWfrcHPLwTfU0cRHPmuq j1qEQw3x0iN54ofvqvP6vWAJ7I9P8fRYmV6X1lTM2wHiVBWWFDVPpKCRwYyJa64IX3gK zY5Byr5r0T8FqewbnbEJmVRZkLr7E2do2cO6gOScrL9sgKKbW6toSQHIDtik3zN+HV3g Xr5Q8N5nvSYWDL2iNmJsVyWGElVEG5WwkRbQ1A16pTMY/QNpN1/4ZoYYARW3ifSraLTi RulXngqRHPSND9IxLLdFZIoZcgeyR/YEc+mELj/iuRSFNftKPhev6cM4csWsCxCEqrP4 sZGg== 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=9BtnZcEGHRKJq1tuMcIPO5jgczSzxDuDOTASQm0fll8=; b=KqWKmgl6LXQvmVaQXF3g7JuyCnIYvLKHb4P0xpuQeEGlp8kljkL+UfdOsDEbULAH7f ceHoS+0Y3kcp8diR1iqJq7PsT00zRTvt/d7r+fMjfdl3sWylgrlkQ+L7I6ySHtPSbsEP MZafysPoGEpzGAA5yeWuB0rrMwvnBtMVi163bMq/gvJjN9hdUUaolbhYx1ZQo8YJtKS8 qul5aWEzM63v+Wwd3z4K5MYEUYH0vImH+iMOBwo97y/A9G/VJja9Ky/+BYhjedm5Dpoa nvJO+DlYz5/ijHkeruZde0FF3KsAfKE5WuLPXexgR7JUANG1/F7JObqqosVerxlIcExz UWRA== 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 d9si2168979pls.412.2019.02.14.03.30.53; Thu, 14 Feb 2019 03:31:09 -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 S2437149AbfBNHBE (ORCPT + 99 others); Thu, 14 Feb 2019 02:01:04 -0500 Received: from bmailout2.hostsharing.net ([83.223.90.240]:42485 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405695AbfBNHBD (ORCPT ); Thu, 14 Feb 2019 02:01:03 -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 bmailout2.hostsharing.net (Postfix) with ESMTPS id 982322800B488; Thu, 14 Feb 2019 08:01:00 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 5262457CE2; Thu, 14 Feb 2019 08:01:00 +0100 (CET) Date: Thu, 14 Feb 2019 08:01:00 +0100 From: Lukas Wunner To: Alex_Gagniuc@Dellteam.com Cc: mr.nuke.me@gmail.com, bhelgaas@google.com, Austin.Bolen@dell.com, keith.busch@intel.com, Shyam.Iyer@dell.com, gustavo@embeddedor.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: pciehp: Do not turn off slot if presence comes up after link Message-ID: <20190214070100.kvikmkkcrp2d32sm@wunner.de> References: <20190205210701.25387-1-mr.nuke.me@gmail.com> <20190209115849.244u67h7wmn3eb7o@wunner.de> <52afa1c45f684dbda6a8771b65583a22@ausx13mps321.AMER.DELL.COM> <20190212083031.2no7mzn5xug7nba3@wunner.de> <20190213083632.GA3387@wunner.de> <205e0fd9995a4f2b80ab370a974b6628@ausx13mps321.AMER.DELL.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <205e0fd9995a4f2b80ab370a974b6628@ausx13mps321.AMER.DELL.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 Wed, Feb 13, 2019 at 06:55:46PM +0000, Alex_Gagniuc@Dellteam.com wrote: > On 2/13/19 2:36 AM, Lukas Wunner wrote: > > > (*) A bit hypothetical: There is no hardware yet implementing the ECN. > > > > Hm, this contradicts Austin Bolen's e-mail of Jan 25 that "Yes, this > > platform disables in-band presence" (when asked whether your host > > controller already adheres to the ECN). > > Both statements are true. The hardware does indeed disable in-band > presence, in a rudimentary way that is not compliant with the ECN -- it > doesn't implement the bits required by the ECN. Ugh, can a BIOS update make those machines compliant to the ECN or do we need a quirk specifically for them? > > Polling PDS in > > pcie_wait_for_link() or disabling either PDC or DLLSC if in-band presence > > is disabled seems simpler to reason about. > > pcie_wait_for_link() is generic PCIe layer. I don't think mixing hotplug > concepts is a good layering violation. The function used to live in pciehp_hpc.c, but commits 9f5a70f18c58 and f0157160b359 moved it to generic code to allow code sharing with the DPC driver. That's the only reason it's in generic code AFAICS. > >> in-band PD disable (what's a good acronym for that, BTW?) > > > > I don't know, maybe inband_presence_disabled? > > PCI_EXP_SLTCAP2_IBPD ? Yes, something like that. It should match the spec, which I have no access to. Thanks, Lukas