Received: by 10.192.165.148 with SMTP id m20csp4228249imm; Mon, 30 Apr 2018 14:18:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpo7ZenHcU9QV2I2N8W0bP5WuTWLCD43koS+5KzZFlcAbqcUSzpCWM71sCpsy8Ti5MTrn69 X-Received: by 2002:a17:902:6b47:: with SMTP id g7-v6mr13818691plt.251.1525123088371; Mon, 30 Apr 2018 14:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525123088; cv=none; d=google.com; s=arc-20160816; b=sBCOyrVNbbc5O1Mt787nIHyrOP+VB9N3OdHa+JcV0wP6zZb4s0TDreEI+B7m5xl3Dg fdzM+nhhKN0h+EFvYstTCqCSoikXkjqG6Gpu/8rtfq0BLpx+F0j3LxKDr/Kpr6mGTIJt 6YtTPL0aq+ljmkspthSuyQx4pvW1e6cmCl9K9596QK8qxQdRsRyBjGpJvzd7ZHb3lT99 J4NZoKiYaZBMhzSv9odfZi7C4yPjbPyuwb3ReVSCqnslh6zEpsCvbqJcbMh/EnFtG18A YcWluLzOR1HM1Zc8S5qgIxd0fCQmBHvye60qLROXHlnogThze/ofEx6lHbTS4ER9lSbx bDjw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dmarc-filter :arc-authentication-results; bh=pbaF73WGzlG32HI36TW8fVWkSRKk5LQqvZMgpavXf/w=; b=dYUbAqBmeLwUtJ7daLLkHZayg2ab01e9YrjpCagEv08/hdPeu4jTMLIm2rlGKGtQhA EL3CbAvkaHhNY4eF4JE8YRU2zF4XTkcahBYcE7TrcmxJOnDd62C8QLZQ58IekT5MEgBE zagZ5r7SMeLHc7abLEsZLHEyDb9DVOpmiDecIdT+vgQoEFM29CH/Nd9BUn8tGf5Uq98y 6fuYl37WyZnuAKKJqQKhi2YLWkIcCytJVtJFSzii5S+yptm1u/qbSxnPPgIcGMWNYlch m8jlKr57hXoROblBFtWKZjuA2WL8GChjMv0RH3ZmuHBXHJ27Mn2eOPWpij2k3+Wsr9B3 7ZyA== 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 f18si6163611pff.208.2018.04.30.14.17.53; Mon, 30 Apr 2018 14:18:08 -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 S1755190AbeD3VRo (ORCPT + 99 others); Mon, 30 Apr 2018 17:17:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:52742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755151AbeD3VRn (ORCPT ); Mon, 30 Apr 2018 17:17:43 -0400 Received: from localhost (unknown [69.71.5.252]) (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 9DDC4229E6; Mon, 30 Apr 2018 21:17:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DDC4229E6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Mon, 30 Apr 2018 16:17:40 -0500 From: Bjorn Helgaas To: Sinan Kaya Cc: Paul Menzel , Dave Young , linux-pci@vger.kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Lukas Wunner , Eric Biederman , Bjorn Helgaas , Vivek Goyal Subject: Re: pciehp 0000:00:1c.0:pcie004: Timeout on hotplug command 0x1038 (issued 65284 msec ago) Message-ID: <20180430211740.GG95643@bhelgaas-glaptop.roam.corp.google.com> References: <8770820b-85a0-172b-7230-3a44524e6c9f@molgen.mpg.de> <20180427192207.GG8199@bhelgaas-glaptop.roam.corp.google.com> <20180427211255.GI8199@bhelgaas-glaptop.roam.corp.google.com> <20180428005620.GB1675@dhcp-128-65.nay.redhat.com> <20180428011845.GC1675@dhcp-128-65.nay.redhat.com> <3ebc908fb196168bf0373875ffc5679e@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Mon, Apr 30, 2018 at 04:48:15PM -0400, Sinan Kaya wrote: > Bjorn, > > On 4/28/2018 9:03 AM, okaya@codeaurora.org wrote: > >> Hmm, if it is the remove() method then kexec does not use it.? kexec use > >> the shutdown() method instead.? I missed this details when I replied. > > > > Portdrv hooks up remove handler to shutdown. That's why remove is getting called. > > What should we do about this? > > Since there is an actual HW errata involved, should we quirk this > root port and not wait as if remove/shutdown doesn't exist? I was hoping to avoid a quirk because AFAIK all Intel parts have this issue so it will be an ongoing maintenance issue. I tried to avoid the timeout delays, e.g., with 40b960831cfa ("PCI: pciehp: Compute timeout from hotplug command start time"). But we still see the alarming messages, so we should probably add a quirk to get rid of those. But I haven't given up on the idea of getting rid of the pciehp_remove() path. I'm not convinced yet that we actually need to do anything to shut this device down. I don't like the assumption that kexec requires this. The kexec is fundamentally just a branch, and anything we do before the branch (i.e., in the old kernel), we should also be able to do after the branch (i.e., in the kexec-ed kernel). > Paul, > You might want to file a bugzilla so that we can keep our debug > efforts out of this list.