From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755160AbeD3Vic (ORCPT ); Mon, 30 Apr 2018 17:38:32 -0400 Received: from bmailout2.hostsharing.net ([83.223.90.240]:51133 "EHLO bmailout2.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbeD3Vi3 (ORCPT ); Mon, 30 Apr 2018 17:38:29 -0400 Date: Mon, 30 Apr 2018 23:38:26 +0200 From: Lukas Wunner To: Sinan Kaya Cc: Bjorn Helgaas , Paul Menzel , Dave Young , linux-pci@vger.kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, 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: <20180430213826.GA6046@wunner.de> 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> <20180430211740.GG95643@bhelgaas-glaptop.roam.corp.google.com> <7285da70-2c3e-c3b7-62e1-fdbb55a77729@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7285da70-2c3e-c3b7-62e1-fdbb55a77729@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 30, 2018 at 05:27:32PM -0400, Sinan Kaya wrote: > On 4/30/2018 5:17 PM, Bjorn Helgaas wrote: > How about remove() only if MSI is disabled? Most root port interrupts > are MSI based anyhow. I think the code is perfectly fine as it is and doesn't need to nor should be modified. We should just add a quirk for this particular chipset that it doesn't support Command Completed interrupts (if that's what's broken). In the case of Thunderbolt controllers, the first few had the NoCompl bit set incorrectly in config space and Intel hardware engineers confirmed the error. These or similar oddities may occur with more chipsets, so I propose moving existing quirks to a separate file, thereby avoiding that they clutter generic code. The blinkenlights feature added with commit 576243b3f9ea is a similar quirk that could be moved to a separate pciehp_quirks.c file. Thanks, Lukas