Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2563730pxb; Sun, 15 Nov 2020 09:11:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuAfWqZlpGjFqcLHNWDGV8b0mENaZ85p9lRoTInXEC7x4VaJ8jbKL36/XcN2atZBieCYRC X-Received: by 2002:a17:907:d8b:: with SMTP id go11mr2604175ejc.247.1605460278598; Sun, 15 Nov 2020 09:11:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605460278; cv=none; d=google.com; s=arc-20160816; b=OLsoQ0ami6gJlknTFdbiGUWibEyOaXUsXm5lrDahFFR6aslttp/A6lkHO4NXZWfTR1 TksatLiL4s7l53QieHJdxXooc22ZlHHO7mCDppgZHWh+GTxEPkxLDr8FcTM0/nN+dae6 3XAsP7tYApAiXkZ1j+pOF/qFB/NKEwUlyYp49S7dMerGZvLtUODEEm5NTt/advCYPnXN BVcR7YLLUrvT4qjUw/K8cup3l+088rFCWUKY0ojvBAt7AcpHSDcrISdavKPMqGScMDi6 GK3jSpfzwgrZw+4fagLz/1uizqSw/4d3IE92gwcjmmQS3ycoAur9ZsHl3jtBOQf7C2Fc m5UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Z4tsFKjsx6WPkqwzepgcb/ljp3CDwuWNm2P6FeR5CXw=; b=pDzDgIx4xgdnDrsGfxaosLTmcyRtaUibLAuh1BSEEBnaX2QoQv19vEOJATPt+OqWfy WJEHQa+BEIes2GhtkWUBiSFkmDka0awtSSeOMLDJe2kO8tTc03uJvF1xoVF08rbPWFbH QNGBwsrGFzON0lIWnRU1nBt4NN0D1DpNS/kErbWUifd4XKNd75Xj14qoJv1Ivn+ECba5 53OPyMVvVa+6/6l9AdcQmK8q+Ot0TBrglNPtwXV+8w8hvtm60Arvs3wYk58i8vWhHQ7C XJAHKT8zz2y3UUNbwyk2PseJt4gFchgCCJm9NvW6kQf4RmJVNo1akbDBY2bPaa9sNVnY 1/8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx25si9937792ejb.445.2020.11.15.09.10.53; Sun, 15 Nov 2020 09:11:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727037AbgKORCB (ORCPT + 99 others); Sun, 15 Nov 2020 12:02:01 -0500 Received: from bmailout3.hostsharing.net ([176.9.242.62]:58991 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbgKORCA (ORCPT ); Sun, 15 Nov 2020 12:02:00 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [IPv6:2a01:37:1000::53df:5f1c:0]) (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 bmailout3.hostsharing.net (Postfix) with ESMTPS id 75C88100E2006; Sun, 15 Nov 2020 18:01:58 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 61A271BCF3; Sun, 15 Nov 2020 18:01:58 +0100 (CET) Date: Sun, 15 Nov 2020 18:01:58 +0100 From: Lukas Wunner To: Thomas Gleixner Cc: "Eric W. Biederman" , Bjorn Helgaas , linux-pci@vger.kernel.org, kernelfans@gmail.com, andi@firstfloor.org, hpa@zytor.com, bhe@redhat.com, x86@kernel.org, okaya@kernel.org, mingo@redhat.com, jay.vosburgh@canonical.com, dyoung@redhat.com, gavin.guo@canonical.com, "Guilherme G. Piccoli" , bp@alien8.de, bhelgaas@google.com, shan.gavin@linux.alibaba.com, "Rafael J. Wysocki" , kernel@gpiccoli.net, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, ddstreet@canonical.com, vgoyal@redhat.com Subject: Re: [PATCH 1/3] x86/quirks: Scan all busses for early PCI quirks Message-ID: <20201115170158.GA27152@wunner.de> References: <20201114212215.GA1194074@bjorn-Precision-5520> <87v9e6n2b2.fsf@x220.int.ebiederm.org> <87sg9almmg.fsf@x220.int.ebiederm.org> <874klqac40.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874klqac40.fsf@nanos.tec.linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 15, 2020 at 04:11:43PM +0100, Thomas Gleixner wrote: > Unfortunately there is no way to tell the APIC "Mask vector X" and the > dump kernel does neither know which device it comes from nor does it > have enumerated PCI completely which would reset the device and shutup > the spew. Due to the interrupt storm it does not get that far. Can't we just set DisINTx, clear MSI Enable and clear MSI-X Enable on all active PCI devices in the crashing kernel before starting the crash kernel? So that the crash kernel starts with a clean slate? Guilherme's original patches from 2018 iterate over all 256 PCI buses. That might impact boot time negatively. The reason he has to do that is because the crashing kernel doesn't know which devices exist and which have interrupts enabled. However the crashing kernel has that information. It should either disable interrupts itself or pass the necessary information to the crashing kernel as setup_data or whatever. Guilherme's patches add a "clearmsi" command line parameter. I guess the idea is that the parameter is always passed to the crash kernel but the patches don't do that, which seems odd. Thanks, Lukas