Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5418351pxu; Thu, 22 Oct 2020 01:32:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8AW4KnhtEtxHKKCSbdzOxLjv+IhradDPqnQiMr17rZhFQBj+06kkO3yCHb+1qeOEw9GYL X-Received: by 2002:a17:907:2662:: with SMTP id ci2mr1160333ejc.554.1603355534402; Thu, 22 Oct 2020 01:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603355534; cv=none; d=google.com; s=arc-20160816; b=Bd/IIteu4zP8EfuX0ZSWrFuyGRUZpEaVV+uooOUo/7zHfTv5ZAh9eNd51k12IV+1HD lwhjU6o/XLdcR30CI91L2PWnO4TZM2fTj5xmx3Xz9H/BZVJ7ONmCP/3UguONz9W8MBzT Yn4kKhHOlYrh/iLBTrQW5IXHB3vD1JGB2S7cRpS0AL6wv2CuHpq12LXYduYPUlBisQ1H HyqjhF4cSe9Qvym5mKnsP4xhZPiX7ofK5jbC8xFi/hkomoEhqDjpNf2UtIcAut26TEJ8 4YRjq54bsCMgSZ3yXZOurH2GbQuzrPhx37gw3AxcZ9q4px7F4M9kkSGl0u6Gcy0eINVB wegQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=VbYIO501n+ry6CYxaNF6frK+9j27vTWjQbIgJfLCePo=; b=bgHoSXqxVtuyF/ygLkl84/fVo+Ssf3Shhm/H6PsP51zRcykhaFSRupPFXxzM18KjOY 1188WbGIsN1VLO5U2EKpv3rraWyYmNKC9968kNBJWrNelB5IIeP/CSr9tCF4OtLWAFZv IN2cGwTqC9lyGaZNj/kuC+yVQYBsOmXlju72Gt/DOFBK//oKUOiyVe2AReZch57bSyfl ok3Ye1GV1HC9MZC5VTNPbWC9xI2MxIJhsEaA+SNacTNwMCfESnmr8/O4J+2C3QG5w+zH pJcESZGtPZbAnDoPcQ/gXSvwPcQgN7HpziTKPE/KD6JslZZYREPbFXPIO8h9UXijBeHb uA3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p9nYY5al; 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 3si416422ejz.513.2020.10.22.01.31.52; Thu, 22 Oct 2020 01:32:14 -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=p9nYY5al; 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 S2507955AbgJVF43 (ORCPT + 99 others); Thu, 22 Oct 2020 01:56:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409018AbgJVF42 (ORCPT ); Thu, 22 Oct 2020 01:56:28 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4EC8C0613CE; Wed, 21 Oct 2020 22:56:28 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id a200so451977pfa.10; Wed, 21 Oct 2020 22:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=VbYIO501n+ry6CYxaNF6frK+9j27vTWjQbIgJfLCePo=; b=p9nYY5al2feQVwPlO8KHIt/K9KZsjgKnKlcUMTQNdc346LAS84fKrjgEo0EodZdBOU JpEc7AKOM/ZGYxzbEE3dqjfK9NHVnYq62t6ceYwDVNmrU41whTFaIioO4YBM+DpOub3h Ms7BNkMbNF6Su66K30v+s0yFs3kc/7ahYHrOWVsqxDF+IifLsWhxrFeJZxE6s07q9czI U3KojYr8m/UMKgnyJBG1Jx3t/LFfr5zvjA/+FA0Xg3in6stAFgNvL1VWfGY1ydgR8ZEW +Q7fz45onuRXCkfGzTao2c1nC4kmMQD86On7gw0tYkwq09ekkiYBfDT6I5TtnnFw/+jk em9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VbYIO501n+ry6CYxaNF6frK+9j27vTWjQbIgJfLCePo=; b=hPMDdDUb/Iy4GBYyHX8drzRBwfqNLjdKiiKld+Um5RW/AH5JT9++/kJgPOqZKJF4Xq 24zCYhf8lPeDGpGMnHT4dMqtsgd2CYpwD7uGD7sCfXrquho3aLx/0UYvuzhEtNdqzbwt /ILRJko172ySuUrA99CD2g3NtDvuJkBLyIaT+FXwDh2QojaJ5Ye8fpw76XDDsBy2MNAM r1m4WI+DGjirgETd9frSLnaRHEOk2GiaqFpR+KAHcfr5Q9y0lgMqsy3t7cXkFakI5xAO kLQGan98Db5Do+rgRUzE/NrQQHYBqGmHABZmcftKPu4gzomGmdmoDRDSfBp1LoLqshW2 ALew== X-Gm-Message-State: AOAM533Pz48LXR1MVhd7FZb0hiJtzNlVk+rfqMG5UWsbfx7QJo+lA0Rs krI6SY3o0mu9FP0ZyYwNaw3ol7np+Q== X-Received: by 2002:aa7:83c9:0:b029:158:11ce:4672 with SMTP id j9-20020aa783c90000b029015811ce4672mr911009pfn.23.1603346187972; Wed, 21 Oct 2020 22:56:27 -0700 (PDT) Received: from mylaptop.redhat.com ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id c12sm830995pgi.14.2020.10.21.22.56.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Oct 2020 22:56:27 -0700 (PDT) From: Pingfan Liu To: linux-kernel@vger.kernel.org Cc: Pingfan Liu , Thomas Gleixner , Peter Zijlstra , Jisheng Zhang , Andrew Morton , "Guilherme G. Piccoli" , 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@lists.infradead.org Subject: [PATCH 0/3] warn and suppress irqflood Date: Thu, 22 Oct 2020 13:56:00 +0800 Message-Id: <1603346163-21645-1-git-send-email-kernelfans@gmail.com> X-Mailer: git-send-email 2.7.5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I hit a irqflood bug on powerpc platform, and two years ago, on a x86 platform. When the bug happens, the kernel is totally occupies by irq. Currently, there may be nothing or just soft lockup warning showed in console. It is better to warn users with irq flood info. In the kdump case, the kernel can move on by suppressing the irq flood. Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Jisheng Zhang Cc: Andrew Morton Cc: "Guilherme G. Piccoli" Cc: Petr Mladek Cc: Marc Zyngier Cc: Linus Walleij Cc: afzal mohammed Cc: Lina Iyer Cc: "Gustavo A. R. Silva" Cc: Maulik Shah Cc: Al Viro Cc: Jonathan Corbet Cc: Pawan Gupta Cc: Mike Kravetz Cc: Oliver Neukum To: linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org Cc: kexec@lists.infradead.org Pingfan Liu (3): kernel/watchdog: show irq percentage if irq floods kernel/watchdog: suppress max irq when irq floods Documentation: introduce a param "irqflood_suppress" Documentation/admin-guide/kernel-parameters.txt | 3 ++ include/linux/irq.h | 2 ++ kernel/irq/spurious.c | 32 +++++++++++++++++ kernel/watchdog.c | 48 +++++++++++++++++++++++++ 4 files changed, 85 insertions(+) -- 2.7.5