Received: by 10.192.165.148 with SMTP id m20csp5407327imm; Wed, 9 May 2018 04:42:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrhjyQpF8bpl9u18JO3vTCJeCdQ3PnibUTPV3REtF0NAs9iL9PuFkRQ6eVkWyFtsSf4AWx0 X-Received: by 2002:a65:5244:: with SMTP id q4-v6mr35404721pgp.201.1525866127724; Wed, 09 May 2018 04:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525866127; cv=none; d=google.com; s=arc-20160816; b=JGse2b3kafngEgVJ21bE+pYNPeT8+vS4SbQo0NJlGgXRnklBEPhgWaOGgk6kAJQGvX 5wnVtsGKItNDQjozjXFZQVzGUyTpO5pKwgY/oFTtflKVYmtBJL3t87gfN9k/EDYJHOqx rfKRM0Q8Zgdw06bRFEgk0xLTt067y2ITNJzPm3KGBqi1VVpN5bnaOZLiMHbMCRViTrx5 FI0rrV3QH6/iV3fTbZPiitVeRfuTac//bvC71OpD6sXky0be1dBlg2H4bLlWlPf4tJmB KG/yKGgUkpjBajPAE/F8YXTWfq8v3zC7xDSpOskmIUQHa7SfmVseqcdEzyTkLRxatz2o utDg== 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:arc-authentication-results; bh=S2HOT6gdJ25TsN3Qb4F16NtKZ5UOQL/V91AxeHZZc6M=; b=1FQi4g48uknJc6HeJXqORZzFEknQzJCtliacdiRXZm49Ja5mb/DqwQBEe0tqoNlpHb cZfKQgv0S2tf9anEHOR/0cM8Eb/sH76lMEkbUUtiFK5XSz08QXVzjqZHciGj4PKpZ2gr 1bSkYGB1hGqgITvQOtTt85/N91WWXXB6XvrtkBi/k3x3KkDiZ9uuVr0CF0+iAYJ1gB8J irMVwaNwEw4NIJRLj2/3X2CgwPnj50ncGng9dDcTNbkw+QWU/qgUa0OpQ+RyrOrL8Nau sPZiw97I7tdzZG7WuL/FTRlVqvnmD/8uQfh7I+c0BH+m5eoqHkQ7ZtP1Aqs1THJHcLGI SPCA== 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 v4-v6si11715677plo.526.2018.05.09.04.41.53; Wed, 09 May 2018 04:42:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934331AbeEILl1 (ORCPT + 99 others); Wed, 9 May 2018 07:41:27 -0400 Received: from bmailout2.hostsharing.net ([83.223.90.240]:34551 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933832AbeEILl0 (ORCPT ); Wed, 9 May 2018 07:41:26 -0400 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 823A82806574A; Wed, 9 May 2018 13:41:24 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 205324ABC6; Wed, 9 May 2018 13:41:24 +0200 (CEST) Date: Wed, 9 May 2018 13:41:24 +0200 From: Lukas Wunner To: Bjorn Helgaas Cc: Paul Menzel , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sinan Kaya Subject: Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago) Message-ID: <20180509114124.GA20639@wunner.de> References: <8770820b-85a0-172b-7230-3a44524e6c9f@molgen.mpg.de> <20180427192207.GG8199@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180427192207.GG8199@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 02:22:07PM -0500, Bjorn Helgaas wrote: > Sinan mooted the idea of using a "no-wait" path of sending the "don't > generate hotplug interrupts" command. I think we should work on this > idea a little more. If we're shutting down the whole system, I can't > believe there's much value in *anything* we do in the pciehp_remove() > path. > > Maybe we should just get rid of pciehp_remove() (and probably > pcie_port_remove_service() and the other service driver remove methods) > completely. That dates from when the service drivers could be modules that > could be potentially unloaded, but unloading them hasn't been possible for > years. Every Thunderbolt device contains a PCIe switch with at least one (downstream) hotplug port, so pciehp_remove() is executed on unplug of a Thunderbolt device and the assumption that it's unnecessary simply because it's builtin isn't correct. Thanks, Lukas