Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp499322pxu; Sun, 25 Oct 2020 07:39:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfDBhurQRd1d6pWlz36mx7HgUEJaxrQcK0NPz4Oh/G/NyCMB1k+yq7qqq/tKcP90wfpemE X-Received: by 2002:a17:906:400b:: with SMTP id v11mr11183120ejj.421.1603636783752; Sun, 25 Oct 2020 07:39:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603636783; cv=none; d=google.com; s=arc-20160816; b=g2UHcBOKSOokkeNTMTgJ7jJECwyOMSVXMSNa5jq9IGnWb4gZ6HcPjPeK2yEqnwi8ss PdFLewEnbs1WhhRwQY59BKjfzUhMqFIB/9yHeDUW6e/3et76zgWjb0qommYEqzMWCu37 2y0ZypqY5l3dc6ufpo8+5Laz4kXhRlolI0S83nmHv75t1M19U2LA8JlkWXWNR0hhpLBv 0UtZb9EbtJaXXPJQUtFPkkezQTs0bKj17ViNOkcmk2jFe+Ebr9rz5rPUiN5O7By3kSNQ mDfR9o80u8n+M1ZN/qZJ1BtOvj2IQy7VCfMGQK5doBiToUmvIeYCdSyH0HalPU5h9yaP O/1A== 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=g8KrN20/xQjVk7r3KMHGneSGRzTdCMB0+bYafbj2+Nw=; b=jyn7N4LCKUtuL9ZQ5zExyoUBZLY7VNCM7dHz0c38b8pCTt5bGkwnY/brCB4b+d/8fu y/mQaLhw0/TEmxmMBeD2KV/8QCug8T8yw5gIL7Nz+5hNZkCpYP4gKR/a/uT1b0OwZXk0 rau9C07xO526BRwLyQLGlhcXDPX3IYVhA2q8+n+4CSNs8+faQF2cWaTUsGIBB2ywVE73 8DffYgnKSTWZ83597+paNkyqWLebEyMI7+GdmyAG6Vl7GTL/J/DmopDwFZNByODuRT8+ pzQb3UVeOJdbnrEbKLEkJKavHDRY/XwNWw3hTYwNl7+vqehyZGYR8sv7MJv63FLjc6PN 0GQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LHVC3ji/"; 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 g1si7006711edn.100.2020.10.25.07.39.21; Sun, 25 Oct 2020 07:39:43 -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="LHVC3ji/"; 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 S1415666AbgJYMVc (ORCPT + 99 others); Sun, 25 Oct 2020 08:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393967AbgJYMVb (ORCPT ); Sun, 25 Oct 2020 08:21:31 -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 E0EBCC0613CE; Sun, 25 Oct 2020 05:21:30 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id p15so7092121ioh.0; Sun, 25 Oct 2020 05:21:30 -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=g8KrN20/xQjVk7r3KMHGneSGRzTdCMB0+bYafbj2+Nw=; b=LHVC3ji/HQ/64M2gA4rJz3OfH4a7SQjaJVtuTac1Ab2Zcx7nFxVZlPaedjqXhvfEaA ooEjn7HUu8z7H5ZgYBtt/cVjehQD8ljUDbizr9Y8CQeZmkvZ2Uwa6U1c++kO4Do0ve7p XKeqC0QdWMaT8MqlxHErI92hJ+YAe2+E/+eUuidVqRDpXlTOkilYRyzkbhcHCLRiawlt dyl6VlQb9k3DanzjBNgEA4spIpXXbm3u+Gdo2EYMakaAtMxgOlrbGVHovWmoRDcvfRcF Ak78UOfX22Jxyt0Zqxg8qf3d+DYE5DQ5wljNAoAdtf8Ini7QvsA6cR+CuIDv2/S4aCBl HPBw== 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=g8KrN20/xQjVk7r3KMHGneSGRzTdCMB0+bYafbj2+Nw=; b=NM3bzOn/6UudDFuZCvjUBovW6+9W1jrxW7Z5Xn4xjib55Rc/7BFIH8ZyqHF14dG7YQ 6W2W7w9BJe/STwqvGiutyiOa+f50hBiLzHumL7yLXis7UVu7tKT5xnq2F5Ws77CgSSER REIEZ8kc898CAH7evM077WrZwzMFhphkFP6JVTAFgHS7pe3ziV2H2TPhUzUBzUFaGCaI NUJWz2BPBBOUlPFAFyyIoPT9ZX/cf9yuuIiWA5Mu7mGWp6bQ0frnew4iDklLUFOsWpUi fCLEPt0+MFlZG1Fa+xbZ8MbhW4n38Mn4KSm2F7oWn/KGlZnQ1ZBAlpcVS0VDHGC7SuJG 5Ybg== X-Gm-Message-State: AOAM530+C8XiUZkWOSA2EKbldtzwCLz0GIDwnbBZpafvKrgOSuYhYkTJ QjnaZ6yXo4h2uSlnLJ72EGpBlffIJdwRA38y1rU= X-Received: by 2002:a05:6602:2f04:: with SMTP id q4mr7315858iow.75.1603628490048; Sun, 25 Oct 2020 05:21:30 -0700 (PDT) MIME-Version: 1.0 References: <1603346163-21645-1-git-send-email-kernelfans@gmail.com> <871rhq7j1h.fsf@nanos.tec.linutronix.de> In-Reply-To: From: "Oliver O'Halloran" Date: Sun, 25 Oct 2020 23:21:18 +1100 Message-ID: Subject: Re: [Skiboot] [PATCH 0/3] warn and suppress irqflood To: Pingfan Liu Cc: Thomas Gleixner , Maulik Shah , Petr Mladek , Oliver Neukum , Jonathan Corbet , "Gustavo A. R. Silva" , Peter Zijlstra , Marc Zyngier , Linus Walleij , "Guilherme G. Piccoli" , linux-doc@vger.kernel.org, LKML , Lina Iyer , Jisheng Zhang , Pawan Gupta , Al Viro , Andrew Morton , afzal mohammed , Kexec Mailing List , Mike Kravetz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 25, 2020 at 10:22 PM Pingfan Liu wrote: > > On Thu, Oct 22, 2020 at 4:37 PM Thomas Gleixner wrote: > > > > On Thu, Oct 22 2020 at 13:56, Pingfan Liu wrote: > > > 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. > > > > You're curing the symptom not the cause and the cure is just magic and > > can't work reliably. > Yeah, it is magic. But at least, it is better to printk something and > alarm users about what happens. With current code, it may show nothing > when system hangs. > > > > Where is that irq flood originated from and why is none of the > > mechanisms we have in place to shut it up working? > The bug originates from a driver tpm_i2c_nuvoton, which calls i2c-bus > driver (i2c-opal.c). After i2c_opal_send_request(), the bug is > triggered. > > But things are complicated by introducing a firmware layer: Skiboot. > This software layer hides the detail of manipulating the hardware from > Linux. > > I guess the software logic can not enter a sane state when kernel crashes. > > Cc Skiboot and ppc64 community to see whether anyone has idea about it. What system are you using? There's an external interrupt pin which is supposed to be wired to the TPM. I think we bounce that interrupt to FW by default since the external interrupt is sometimes used for other system-specific purposes. Odds are FW doesn't know what to do with it so you effectively have an always-on LSI. I fixed a similar bug a while ago by having skiboot mask any interrupts it doesn't have a handler for, but I have no idea when that fix will land in a released FW build. Oh well.