Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp300620pxx; Thu, 29 Oct 2020 03:02:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzPrvTPCzTV5ESwtwpEcxcNXCbgmncJACJKb/we2lPQ/EjD5OtkmMPpcpPQhWfd/qcYVTu X-Received: by 2002:a50:e881:: with SMTP id f1mr3145850edn.58.1603965736398; Thu, 29 Oct 2020 03:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965736; cv=none; d=google.com; s=arc-20160816; b=B5XDKseJhmxpcFV6nlCLxXUwERZGmxCj1D/wHVQ6H6hfimJVHXp1QW2CZvasA7DE5z MofWnp7tGOGdzkv244HMzVYjavJfqYFIeEWtXrXE71z9vPACOtLsbduSZw/Du/XPjNaw CKyXj6S0LrmDk48dYK1QKrUzlx5+XtMBCv0cqSTCV+7g8t9MHuDTZ8m+fK2LuZOVqzkj 1B8uQWDG0bZKp66IKwhBrAY1B7K1NM3aW6dBEFe94zL8rENuNdwlJQigKPfsQcBu2JSm JDLCGemsAB8eGZzfvVnUuL/6QYmMvhrRTW3UdcdHhDn2Kbvl2O4XfDrSpggqeA72Mqdy Kb+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hj+EqoJ8khAy+Vvj816RirpNw6YjRUZJZt51nQOVs9A=; b=S6EUGCIDc9diaKr0HAi8tEl/Q8rFNW6lvQH/XH2IUXBRfA1afV/XDwgAXqCDQURcJy euk0pAx4ojiDuqB1PTXMK8YCECJon+z5sMIoJYvXyK3IpGz9wm7B8YFsTM4vIGtMu0Au HCfp5aK54HyeBcj7gsYbUdOkGcLEZYCqpHIaRbV+y/i+EI3pyGtd2Cg3jqKN8MltnEGW IQJrylGhTuzi+YVfr3VBU0HVnoYXSIcdtn22qX07S4beWu99/CcBL67VkeXZkNBJzkjh PCzdXqaRe41O61LMhbwOU6sbAvYy8hxWI9Ir6tbY6pdF9HfNvr9khjEK9kEIYNtDA1Cf xEAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="WDaDEm/H"; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si1596735edy.511.2020.10.29.03.01.54; Thu, 29 Oct 2020 03:02:16 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="WDaDEm/H"; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388674AbgJ2Aha (ORCPT + 99 others); Wed, 28 Oct 2020 20:37:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730542AbgJ2Agm (ORCPT ); Wed, 28 Oct 2020 20:36:42 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2632C0613CF; Wed, 28 Oct 2020 17:36:41 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id h21so1520475iob.10; Wed, 28 Oct 2020 17:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hj+EqoJ8khAy+Vvj816RirpNw6YjRUZJZt51nQOVs9A=; b=WDaDEm/HR31rW3seXD21SpWBhLX18ll6nk59wfAMrgPjv7+fXCXdYMu+bbxwtZD3IH reCyayIdO360QckMZOp7SrTSpAiFNwtYzuQuO6tJEr94/pjWHoT64GCDfGsr7//1c/y5 2452BZ1SMBbtpQXB/eaFAJ9zoEHxtjICIO/Fy4xLIjZaKQBwvkCgDq5B6TQnzPQRsPIr fUHOx8m7k1oq5ilbErRMNM9z3vEvy66uVJ8W5hIBpMu9u1ixhrxmKD9EEpMO6P8Vus4v eg3362JIW1W46MGWxiMJKSIFCEBHxdduO7FgVcPTvgRLmZ+gkfam/T2LquNGM7aZIJWb 52Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hj+EqoJ8khAy+Vvj816RirpNw6YjRUZJZt51nQOVs9A=; b=uMEAJN2s7xhNKUfZxkcavkU6+vyc4b1iTvpzMxIIFUvdprIvyRb6REsy56gCAXrnH4 zIaT2OvtMU7InExs3JO1cERHeYJTPi/2EVGw21q/ld0PAbzfPl5l7fe89THQrZbhvXhm P6dYLp4Y8ZeRbTiU+meOVa1xVG8hUE+nbOVv9agEibZHfZLPZ7JoehqAkg4bi7DhgJCY RjnrLpzOzQS7TVfJN2hUdLW7NnOkVnMZgJZfGoOEtut2gBN3Ue0Exr72TxjmzgLM7Hx8 XQuSmYbpL9h63O1g0pTzUofybdd5agObdDKQwigox/J402E3+71xCxkrEuEb8LpHsJ3j 2j0w== X-Gm-Message-State: AOAM533D0ZlSGvZjR5us7Gq4WGrJ/+FfaI73txx3FzSGMk+ehXdGIEwz RNkgoDJXRU1KmFD1fFMy/Ro1Df2ZBplMukcUgxQRfedhMg== X-Received: by 2002:a92:85d5:: with SMTP id f204mr4716737ilh.45.1603864978212; Tue, 27 Oct 2020 23:02:58 -0700 (PDT) MIME-Version: 1.0 References: <1603346163-21645-1-git-send-email-kernelfans@gmail.com> <871rhq7j1h.fsf@nanos.tec.linutronix.de> <87y2js3ghv.fsf@nanos.tec.linutronix.de> In-Reply-To: <87y2js3ghv.fsf@nanos.tec.linutronix.de> From: Pingfan Liu Date: Wed, 28 Oct 2020 14:02:45 +0800 Message-ID: Subject: Re: [PATCH 0/3] warn and suppress irqflood To: Thomas Gleixner Cc: Guilherme Piccoli , LKML , Peter Zijlstra , Jisheng Zhang , Andrew Morton , Petr Mladek , Marc Zyngier , Linus Walleij , afzal mohammed , Lina Iyer , "Gustavo A. R. Silva" , Maulik Shah , Al Viro , Jonathan Corbet , Pawan Gupta , Mike Kravetz , Oliver Neukum , linux-doc@vger.kernel.org, Kexec Mailing List , Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2020 at 3:59 AM Thomas Gleixner wrote: > [...] > > And contrary to Liu's patches which try to disable a requested interrupt > if too many of them arrive, the kernel cannot do anything because there > is nothing to disable in your case. That's why you needed to do the MSI > disable magic in the early PCI quirks which run before interrupts get > enabled. > > Also Liu's patch only works if: > > 1) CONFIG_IRQ_TIME_ACCOUNTING is enabled I wonder whether it can not be a default option or not by the following method: DEFINE_STATIC_KEY_FALSE(irqtime_account), and enable it according to a boot param. This will have no impact on performance with the disabled branch. Meanwhile users can easily turn on the option to detect an irq flood without recompiling the kernel. If it is doable, I will rework only on [1/2]. > > 2) the runaway interrupt has been requested by the relevant driver in > the dump kernel. Yes, it raises a big challenge to my method. Kdump kernel miss the whole picture of the first kernel's irq routing. Thanks, Pingfan