Received: by 10.192.165.148 with SMTP id m20csp5491233imm; Wed, 9 May 2018 06:01:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoyBSvAvbhq+mShpZnCPvZcC2lEdNoSb2NMc7ppPepq41OaoUZ110QFmlv/iEAdUxnYnPxy X-Received: by 2002:a17:902:d687:: with SMTP id v7-v6mr45278798ply.201.1525870877188; Wed, 09 May 2018 06:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525870877; cv=none; d=google.com; s=arc-20160816; b=eRNhvbaty6nTh5GaWKXh8Q+6/6DrwgmoYfHoirXagqvprNAbSE6oTdM4VeAZ7w8NIh /L6L9kRai65ZqGlIPL0RgUqOR2BwOlBYB2dp3sbHGof4N7Y8s+goz8ogNbnRQmEfggDb 1TKGXR/eSCQf1jexXcNulGOpPy6tmU4lH07U0NncWPtZGfe6jFcI2Alir3IEH7e1A73p /KIZwnKWkoMzzjd5yJFwl22CuG0WSsPYumTAVButlNGmrt47Vu73nqP5J4Zapy6tjf2X 06LUCoY4HygRRx1ns1Ny52CHigSrnhCIQZ1xg8XswtlV5G/l8Ye9RJD1kG1lLbTWQqH8 THgg== 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:arc-authentication-results; bh=REQguLm9Wc1/RJNkYi7BxsZ+soNjii0M1N45Nov3w7M=; b=YRgl1RxzcDAKIAZQ4dkUYzQnWawCDHTvjztz5LkopjmOBQJw3k/C51uR8blAgEQIDY xQVYoSnmMxBKcgtAPUZhl9/+iljYiiKjQKX4buXHTy7WnN3R7c70nYZIT7AICtwWwtYb cJzHoyqgVGBpxzUYty2rJMekMVM0Idzk2XpDTvcv/QP15w/rqXmkJ4Q923hedDfTHSOH zNnfPDknxY/9mhkl+ldDyi0pO+mFu9sbZlE3zJxb2ijb/3CYn9Y/ctHv/BVol9HW0tpE Ovgj6o4USUFwBXrZ46T3oob78dta/23c9Ppi8KADFE1PdvW8iWgQLMsimr+Mr/ay8XqV ndaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fNUKXPA8; 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 c76-v6si21323557pga.156.2018.05.09.06.01.01; Wed, 09 May 2018 06:01:17 -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=fNUKXPA8; 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 S934801AbeEIM54 (ORCPT + 99 others); Wed, 9 May 2018 08:57:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:41046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934328AbeEIM5z (ORCPT ); Wed, 9 May 2018 08:57:55 -0400 Received: from localhost (50-81-62-164.client.mchsi.com [50.81.62.164]) (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 62D0B2183D; Wed, 9 May 2018 12:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525870674; bh=jIbozrhxJU9zo2yn4AdcLuVMXMn2I3vMaCQVe1LlSyA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fNUKXPA8Qdrt8uvL2MXuIc2arv2pPUtFN90jtExywyiBAOOQsR+Zg7+NcotXUTxgS LuzaA1SFP/8XKLDEsU6tFDhPVccVMbvnsdChZXzMrf9+pCkBWbGUT+KDSdPm/BzuUz rXgxp0WRoWmkdsOGTcY0ChHy9bLFUiFKLBlaGXOg= Date: Wed, 9 May 2018 07:57:52 -0500 From: Bjorn Helgaas To: Lukas Wunner 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: <20180509125752.GA234395@bhelgaas-glaptop.roam.corp.google.com> References: <8770820b-85a0-172b-7230-3a44524e6c9f@molgen.mpg.de> <20180427192207.GG8199@bhelgaas-glaptop.roam.corp.google.com> <20180509114124.GA20639@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509114124.GA20639@wunner.de> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 01:41:24PM +0200, Lukas Wunner wrote: > 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. I agree that simply being builtin isn't a sufficient argument for getting rid of pciehp_remove(). But if we do need pciehp_remove(), we should be able to make a rational case for why that is. If we're about to turn off the power, it's not obvious why we would need to deallocate memory, remove sysfs stuff, etc. If we need to configure the hardware to make it easier for a kexec'd kernel, that's a possible argument but we should make it explicit. Bjorn