Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4114543pxb; Tue, 17 Nov 2020 11:38:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy00nMoycYmrn2O10N1PllBO/DyHQNowPmMemwC0XxMJ5tr5mobvumdxkyRxZufNBQWcksr X-Received: by 2002:a17:906:a194:: with SMTP id s20mr17696995ejy.95.1605641913258; Tue, 17 Nov 2020 11:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605641913; cv=none; d=google.com; s=arc-20160816; b=MOzsm2gmQkI/t2i6pCXtqXySEo4/R+ywPgIo8Q9zELwRP3Iu9zLnTwYrZd4XPtf3Dg Tf/bV1X6WjH1xTphucQKWlVvz6C39diNyRZrkmvFhTbw5Mr6DrGquNN/YiZCvAARK5nJ 4LAGSdlfA2EOYrM11jpW3+I76WkLMNFXNrwM2oS+erHtzGO90FBwpZHbsAhZDNh6/AUP fmuYY+vc23P+m5XX4vL9bFmALpX870y7VmCZ4xk4F7dVTkyVDHoPOtFB0c/Ai0JNwURj 7T3dHnQ0JiqCUXO0aN6IeuGnZddEpihpatLgOKUcfc5B+11WSoBgoIdOQ8hIbnH7wrsk f15Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=zPOq2Gof25KoyGTbil/CYi0lyxMBn0WxrZqz+oT1E5A=; b=BmZ80aV4oIolTgdxvZAGSOXkHsCVlq5o62ouGiQu9/ksnEgkg1Xiko/nqQqsNllELo xIBKorhc+ML9KzVd2/jEM7w7WfIkAn+xMSi6vlDPFRLIfVIVoK1khMgGyYATqN85nwwt 9zJnR/Qaazmtgg3PvMtHHhlueLgxXpVCCAFYDmd13nPk31Ubc3NWCpUOTVVxMjn24r1C 2+aPS2+o1cvJGEupWUoLDy25OV4gb4f/PWjUyzjMi/nHs8faEq3WAP9Jt6FTewmSdW8H kmfvMBDTHA/5IlMWC7j/y4cJXl6zdK2FS4U55miLNEazEgMCb62RgclDEZ3ldu6sBQAF LgxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PQPRExsK; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si3776358ejz.363.2020.11.17.11.38.10; Tue, 17 Nov 2020 11:38:33 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PQPRExsK; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729715AbgKQTe0 (ORCPT + 99 others); Tue, 17 Nov 2020 14:34:26 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:50236 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbgKQTeZ (ORCPT ); Tue, 17 Nov 2020 14:34:25 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605641663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zPOq2Gof25KoyGTbil/CYi0lyxMBn0WxrZqz+oT1E5A=; b=PQPRExsKgi88p9KsUpyG9up506cAUOROacfRqMm62eqdoAvUKx6i7yr+Yp3eZtfo1xWdBk pUuw2OHDqm+vX9HTNAjal5MUuOF2sBs2M5/0JkLsdzpYxbkbz6bXMrGZyjSm2kkATLdOBY HYcuiVNlNHjIChCDf4gtFy0dpBbBDuO+DpKqHVUGrbWPTvPWabxVU7so4G0Gt6lV8WFtom Jo+MYPrgKPZLLuhkDERYqXDmmGF29Exte52haBdjBv5Zw5Bp5dT5IjAd7C+OEGgr85+fvQ T0jTpKf++eb3tkq4jPfViasWN/08q54fAT0lFEE1u8JqETnvOrR52LhSQtE0Rw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605641663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zPOq2Gof25KoyGTbil/CYi0lyxMBn0WxrZqz+oT1E5A=; b=/SsNrCoqoGbx8Sxq048YeIHsiS2Dnfzgqok1cMtqOL8LNNePCmP53qWrQT6beORsfmlCKB cucJM1rH7pGwCcDw== To: David Woodhouse , "Eric W. Biederman" , Bjorn Helgaas Cc: "Guilherme G. Piccoli" , lukas@wunner.de, 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, bp@alien8.de, bhelgaas@google.com, Guowen Shan , "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 In-Reply-To: References: <20201117001907.GA1342260@bjorn-Precision-5520> <87h7poeqqn.fsf@x220.int.ebiederm.org> <873618xqaa.fsf@nanos.tec.linutronix.de> Date: Tue, 17 Nov 2020 20:34:23 +0100 Message-ID: <87wnyjwzeo.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 17 2020 at 12:19, David Woodhouse wrote: > On Tue, 2020-11-17 at 10:53 +0100, Thomas Gleixner wrote: >> But that does not solve the problem either simply because then the IOMMU >> will catch the rogue MSIs and you get an interrupt storm on the IOMMU >> error interrupt. > > Not if you can tell the IOMMU to stop reporting those errors. > > We can easily do it per-device for DMA errors; not quite sure what > granularity we have for interrupts. Perhaps the Intel IOMMU only lets > you set the Fault Processing Disable bit per IRTE entry, and you still > get faults for Compatibility Format interrupts? Not sure about AMD... It looks like the fault (DMAR) and event (AMD) interrupts can be disabled in the IOMMU. That might help to bridge the gap until the PCI bus is scanned in full glory and the devices can be shut up for real. If we make this conditional for a crash dump kernel that might do the trick. Lot's of _might_ there :) Thanks tglx