Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3732691pxb; Tue, 17 Nov 2020 01:56:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxivImnx9i+yUM5Rp+bxh3AVNcKKgCrzjjuOdrBBfryTdsyOJFyjjv/OYY+3018CDzkxxzD X-Received: by 2002:a17:906:1fc9:: with SMTP id e9mr18155754ejt.319.1605606972883; Tue, 17 Nov 2020 01:56:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605606972; cv=none; d=google.com; s=arc-20160816; b=gslrkdP2YZmWHjgaZg9hgD4IAByfCkG/y9HpNyN8zcl4Kao7Me4P5L5BzHT0ICEayV nROLEcI4O6K+CE2zhR+yGd2Vk5P8fqE8yZYyP7lAGWKdH6S7nx53cvCviC73yd4q7RPI RFhCUqsQsKsARgC1ETVGp2bvpvNAnBBSbvD8TIDHHlAHBNbbnrI3GTiJR+fl5tdqa5Ty vtwKZXMosUEC1zLIcLv5MnueUqtt1C9l5jq2fiFTaAw0o7rXN0cfd89orUqqmhs1QHSd PGX/AhH7vlErktaG48lFoa+hSW7JPdzpUtSBp2h9T5XJpQ4LUceInrEIkWCLhkHgZLaP xzzg== 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=w88X9FArUN9Ckqzryj/SEcOf2eejeb528XBdbye6pQE=; b=LO5GRF0ggK0DxevEg3x9KAezViazI/pNUpL426ncG3y3/Mr1Sjou2nVkXwNv28Rkwi eNULV7YC1ztskYI/y6uT74NuhmpSXeTrwrbxW6VgPZrpKHhnTSF85+TLz1M5Kz+IcbxZ GhVIUAFizv7eUbeihFprwNFLt8Tk7z3sb3PwVpt7yFga0WLV1h4NSc9u8kxJYvG0k3Qi KoWATaEv6HxalHWTzepjg+MEVDM9zDeItYGE6q4w9fFyW9048TyrkaV0xnFxK7z49AZJ ACQT/gfoj5/LBlklNWNrKj5//LdU72P1rG+wIjD2cmIoRbGRbWfgZPEG9fGxFLBKPLa+ lehA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="zSRv/+sh"; 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 dx6si13275070ejb.698.2020.11.17.01.55.50; Tue, 17 Nov 2020 01:56:12 -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="zSRv/+sh"; 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 S1727677AbgKQJxw (ORCPT + 99 others); Tue, 17 Nov 2020 04:53:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbgKQJxv (ORCPT ); Tue, 17 Nov 2020 04:53:51 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6765C0613CF; Tue, 17 Nov 2020 01:53:51 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605606830; 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=w88X9FArUN9Ckqzryj/SEcOf2eejeb528XBdbye6pQE=; b=zSRv/+sh88Dr/9rk83MdKS6DgvvEHpDnOQI56HgqewdzAknFs2efNxcR65h4YMsxaGcpK7 gH3ikqXPE9y85lFTK/k080y7gE9CGp1EH4LTE/imwJuLN7ZV9I43/iinHvcjMbdI6SaVS1 2a+cB3WfHEkM6T3A1lvCqVLgt3mCSVRZUAntkbkq+oGyXzA45k3JOA0uPfBuBSBkFAkV3Z GGxS3A2FKc5sslgWbRqR0tI+AZDV2Ad8D3gBEOZ+glgJyGHYdo0iqwEVMx7qp9zW2RAoQC EIHKhV+/iUGMOdEtZZxR6UJyfI0PW53BpC+LpJXa1I4GLgm3n8qZF1ewD8ix3Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605606830; 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=w88X9FArUN9Ckqzryj/SEcOf2eejeb528XBdbye6pQE=; b=nZwJf4bFj/fTcUvLbJX3tMEZeH04pRYlzZCgpjdvmfWziaeYnqbVXpXy88KSEJnqy8Ny0W ugc7/yMp0qHYPzAw== To: "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: <87h7poeqqn.fsf@x220.int.ebiederm.org> References: <20201117001907.GA1342260@bjorn-Precision-5520> <87h7poeqqn.fsf@x220.int.ebiederm.org> Date: Tue, 17 Nov 2020 10:53:49 +0100 Message-ID: <873618xqaa.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 Mon, Nov 16 2020 at 19:06, Eric W. Biederman wrote: > Bjorn Helgaas writes: > My two top candidates are poking the IOMMUs early to shut things off, > and figuring out if we can delay enabling interrupts until we have > initialized pci. Keeping interrupts disabled post PCI initialization would be nice, but that requires feeding the whole init machinery through a shredder and collecting the bits and pieces. > Poking at IOMMUs early should work for most systems with ``enterprise'' > hardware. Systems where people care about kdump the most. The IOMMU IRQ remapping part _is_ initialized early and _before_ interrupts are enabled. 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. This one is not going to be turned off because the IOMMU error interrupt handler will handle each of them and tell the core code that everything is under control. As I explained several times now, the only way to shut this up reliably is at the source. Curing the symptom is almost never a good solution. Thanks, tglx