Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4291961ybg; Mon, 21 Oct 2019 06:50:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWqpez30+MnEZMensBEl/ZhhLX0I/Q3uMx845bHIR63SQucHtpoDXaumIad8pDB3DtOiLe X-Received: by 2002:a50:ec03:: with SMTP id g3mr25052484edr.83.1571665800530; Mon, 21 Oct 2019 06:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571665800; cv=none; d=google.com; s=arc-20160816; b=JmqgvNvCU/Dvuk1MXQbjDOWBiPYVdjsp2vfagvuoO8OxOt6DeRRH7gpyutKTeREV72 7ngroq5EzUd0jX2DDWMrPS7xdiWIUysK9s2PV9SMz9x5DZevGL4O+w5nqAe6AzidQg29 b9ddqjTyQRC8aL9nb5oGSCZmHQUp8VFKGmQDdz0NFaHOS4jI6UNFdZa7z+tz2cCTJZXp ZOxm7FYY9gRWPeK0tT21SsfFTUBwBC4XUq3N6N6py02iX9a76X0o6mXA4pMQbaH5G4AE VdpykpakS8WpzqK+m7pfLK8ctEDs5ldoPPXPIitlS+UVeYpFp7wcoSaNlHxR0UvmxEi2 uAGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kDQPgImSiBrTAm6FqTLOAPf9oL3eLh5+yAxSRploo78=; b=TkPkqAG19Pj5KiOvaRgPAKoTpD9RzH9/qYB8HWf3LUPh9RzXj9uADW4AiPhMepnsE/ 11Ab+aDyzfYmZ3b6dS/WTcteDStgscoCl0/o2SKZeAhtMNgmlPcRQwI935p1koIMyp+E 3gzExbMbQlaFDEOU3QYEhmMhWgOdvxa3P//+xuzHqSbrGDuQ23dyE88f26JPdTUbe2Hx 8PJWGbREOCSyjZEdRItpw/1wEmxbU6WHO/+XK3Col8jIVWT+u9PjB5kuTAS8610ac9WE Dm1nJvIo7184swkA/R0v3k1wYfGLGBaxfDuyCo49B8ztsk6Jr8koN2TeRobeY2e6mCNI kpLg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gf2si4496626ejb.393.2019.10.21.06.49.37; Mon, 21 Oct 2019 06:50: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729050AbfJUNre (ORCPT + 99 others); Mon, 21 Oct 2019 09:47:34 -0400 Received: from mga11.intel.com ([192.55.52.93]:50225 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728083AbfJUNre (ORCPT ); Mon, 21 Oct 2019 09:47:34 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Oct 2019 06:47:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,323,1566889200"; d="scan'208";a="209446839" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.157]) by fmsmga001.fm.intel.com with SMTP; 21 Oct 2019 06:47:30 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 21 Oct 2019 16:47:29 +0300 Date: Mon, 21 Oct 2019 16:47:29 +0300 From: Mika Westerberg To: Stuart Hayes Cc: Bjorn Helgaas , Austin Bolen , keith.busch@intel.com, Alexandru Gagniuc , "Rafael J . Wysocki" , Andy Shevchenko , "Gustavo A . R . Silva" , Sinan Kaya , Oza Pawandeep , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de Subject: Re: [PATCH v3 3/3] PCI: pciehp: Add dmi table for in-band presence disabled Message-ID: <20191021134729.GL2819@lahna.fi.intel.com> References: <20191017193256.3636-1-stuart.w.hayes@gmail.com> <20191017193256.3636-4-stuart.w.hayes@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191017193256.3636-4-stuart.w.hayes@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 03:32:56PM -0400, Stuart Hayes wrote: > Some systems have in-band presence detection disabled for hot-plug PCI > slots, but do not report this in the slot capabilities 2 (SLTCAP2) register. > On these systems, presence detect can become active well after the link is > reported to be active, which can cause the slots to be disabled after a > device is connected. > > Add a dmi table to flag these systems as having in-band presence disabled. > > Signed-off-by: Stuart Hayes > --- > drivers/pci/hotplug/pciehp_hpc.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c > index 02eb811a014f..4d377a2a62ce 100644 > --- a/drivers/pci/hotplug/pciehp_hpc.c > +++ b/drivers/pci/hotplug/pciehp_hpc.c > @@ -14,6 +14,7 @@ > > #define dev_fmt(fmt) "pciehp: " fmt > > +#include > #include > #include > #include > @@ -26,6 +27,16 @@ > #include "../pci.h" > #include "pciehp.h" > > +static const struct dmi_system_id inband_presence_disabled_dmi_table[] = { > + { > + .ident = "Dell System", > + .matches = { > + DMI_MATCH(DMI_OEM_STRING, "Dell System"), Sorry if this has been discussed previously already but isn't this going to apply on all Dell systems, not just the affected ones? Is this the intention?