Received: by 10.192.165.148 with SMTP id m20csp4243203imm; Mon, 30 Apr 2018 14:38:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFEbZKwXfkIIWFd6kd/VZbhBv0jiDl/lL6ySY2ZTF+iykGUivPOFEsMg8ZcrSnNEms2fLe X-Received: by 2002:a63:b406:: with SMTP id s6-v6mr11450501pgf.334.1525124338598; Mon, 30 Apr 2018 14:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525124338; cv=none; d=google.com; s=arc-20160816; b=oqylFEh8nhIuwkLlHUWBkU5twuNuWaKs8Cf4GEXbtsiH/BCIXTAq/hsVq1UP97MlmK 181xbU/3IoG8Fkk/6YIzJs2C9Kn4fuLpp5mGYGSK80tL2jbyZiHjg38O5nnQCiL+RsUR f8yhF9yQFrlA5ATHVMh1JkVHtrHyOJqbHAPCxtZXABRJPGkLtgNr9tVkV/2Ivgx/2VDf rPl/tfYh5cGhCqgPDaO0QmvSY9H2RcyyVslfsJq3bSan363YcN6hxjluRxcSVZxa/Lvu FuKSyoSiLvW4BAHD4jYCpESo8uwpoztMpV440NFCeTZkFPNI8ZxNzcVBfnhVv2Zqhold OBzA== 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=RiVOVPc6ELnly33SKoefcdoswb0qvEYwyVJ2UNueo/Y=; b=AQuoe1kMuoKRIVZJPk3nlPge8RHf6JrWo+xkdfm6e+ivJ0Api+jm42BDAIguAJurHz ymlK5K5ax0h/S3B2jRV4JaYyshzYRezXdvWMR8XuXunqIbiQPBSV6LtkcW5lVh5j5hwR ngpmqEhLEUfpCAnjPI/A3bV/2ecMP3gZyH8lzdt9e3VvIGGn9g23wsIW5GPnxzAR/fY6 jA1+RiB8enTFfWAe9ImWE8P1XbIxBF5ln30SBje6wGE98eQ05IdWEw6inNLT9bL0eRs2 bFifa2z2gG7zHcqkF/aYw+bo8gEiNuzOiD/8YS/beldO8pePlrUzMfB7JEp+sBQxp9c+ 052w== 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 x9-v6si8324360plv.159.2018.04.30.14.38.43; Mon, 30 Apr 2018 14:38:58 -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 S1755102AbeD3Vib (ORCPT + 99 others); Mon, 30 Apr 2018 17:38:31 -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 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 413962800B1C8; Mon, 30 Apr 2018 23:38:27 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id D98FA80037; Mon, 30 Apr 2018 23:38:26 +0200 (CEST) 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 Precedence: bulk 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