Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BF89C2D0A3 for ; Wed, 4 Nov 2020 08:12:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 99A6322384 for ; Wed, 4 Nov 2020 08:12:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zpgU741x" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99A6322384 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=fujitsu.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=I9BwUTrYmVK2wLj+cWg5VDczjnQsxQYHFVY7KF4lZ2Q=; b=zpgU741xz6xpnLIbZJCJdEkn/t P2IUu1W9Rh9vMQoZ8tLruAGmIfykbefvY40JUZe2OA9Jmhh1P1WBzI8nc8+qlZNuJVwxnLZwq0Gyu OnT/aeOaqcIz4AKHabN+cUzC4zkR1w87VCSza4wznyMP6Vq7/IGSD1QvV0sK9CGYGuCJroUKGakuR M45Nq62PdoCoammGKNT7VuVuPgoFTITii5ZfkmcINX7wt+5VnN5OdLS/zAGMRhkuc8VffogSfSK4m e+OOz7t+R34Gnb5MJyIrHEkOL8bRz2x8KajsRDu8ONU7HxaCC0NtZoh89xsLbiPvwlIuh0WcYBmSf F/w+8sXg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaDsW-00057j-24; Wed, 04 Nov 2020 08:10:48 +0000 Received: from esa6.hc1455-7.c3s2.iphmx.com ([68.232.139.139]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaDsS-00055a-35 for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 08:10:45 +0000 IronPort-SDR: yCDb9EhZVbNMya9lCvMoLBLtUGXO1sDGDZ19AikOK4AgXy4LjlS5qbve+AW4TQdcIGplZ90WjP gTs2yM0blwBXhcf7xOttEA6EEJj+cFtXke5NfmIH4tYa5kztXz4moKlzulzlvF0u3ERLhIdCTi gWSY9vCIXjbMyix/3MsoJK6yzXyMrxxg1xs1b83DBx5e7LtAn0aQ9hJuU0Zsbn44a+Rm58bnPQ QnI2KNyZbX3J+7GWZAEFqZx3RBHAobYK4k6sasHi670ayJVximLlB2R9ogf0nVHmvkLlAvw+6L YiQ= X-IronPort-AV: E=McAfee;i="6000,8403,9794"; a="2273880" X-IronPort-AV: E=Sophos;i="5.77,450,1596466800"; d="scan'208";a="2273880" Received: from unknown (HELO oym-r3.gw.nic.fujitsu.com) ([210.162.30.91]) by esa6.hc1455-7.c3s2.iphmx.com with ESMTP; 04 Nov 2020 17:10:38 +0900 Received: from kw-mxauth.gw.nic.fujitsu.com (unknown [192.168.87.35]) by oym-r3.gw.nic.fujitsu.com (Postfix) with ESMTP id 1F5F2E09B7 for ; Wed, 4 Nov 2020 17:10:37 +0900 (JST) Received: from pumpkin.openstacklocal (pumpkin.fct.css.fujitsu.com [10.130.70.189]) by kw-mxauth.gw.nic.fujitsu.com (Postfix) with ESMTP id 16571AC0059 for ; Wed, 4 Nov 2020 17:10:36 +0900 (JST) Received: by pumpkin.openstacklocal (Postfix, from userid 1016) id 47231B99B; Wed, 4 Nov 2020 17:07:57 +0900 (JST) From: Yuichi Ito To: maz@kernel.org, sumit.garg@linaro.org, tglx@linutronix.de, jason@lakedaemon.net, catalin.marinas@arm.com, will@kernel.org Subject: [PATCH v2 0/3] Enable support IPI_CPU_CRASH_STOP to be pseudo-NMI Date: Wed, 4 Nov 2020 17:05:36 +0900 Message-Id: <20201104080539.3205889-1-ito-yuichi@fujitsu.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_031044_407824_405C1A6A X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yuichi Ito , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset enables IPI_CPU_CRASH_STOP IPI to be pseudo-NMI. This allows kdump to collect system information even when the CPU is in a HARDLOCKUP state. Only IPI_CPU_CRASH_STOP uses NMI and the other IPIs remain normal IRQs. The patch has been tested on FX1000. It also uses some of Sumit's IPI patch set for NMI.[1] [1] https://lore.kernel.org/lkml/1603983387-8738-3-git-send-email-sumit.garg@linaro.org/ $ echo 1 > /proc/sys/kernel/panic_on_rcu_stal $ echo HARDLOCKUP > /sys/kernel/debug/provoke-crash/DIRECT : kernel panics and crash kernel boot : makedumpfile saves the system state at HARDLOCKUP in vmcore. crash utility: #7 [fffffe00290afd30] lkdtm_HARDLOCKUP at fffffe0010857ee8 #8 [fffffe00290afd40] direct_entry at fffffe0010857c94 #9 [fffffe00290afd90] full_proxy_write at fffffe001055dea0 #10 [fffffe00290afdd0] vfs_write at fffffe001047533c #11 [fffffe00290afe10] ksys_write at fffffe001047563c #12 [fffffe00290afe60] __arm64_sys_write at fffffe00104756e8 #13 [fffffe00290afe70] do_el0_svc at fffffe00101590cc #14 [fffffe00290afea0] el0_svc at fffffe0010147a30 #15 [fffffe00290afeb0] el0_sync_handler at fffffe001014835c #16 [fffffe00290afff0] el0_sync at fffffe0010142c14 Changes in v1: - Rebased to head of upstream master. - Rebased to Sumit's latest IPIs patch-set [1]. [1] https://lore.kernel.org/lkml/1603983387-8738-3-git-send-email-sumit.garg@linaro.org/ - Add conditional branch of local_irq_disable(). Sumit Garg (1): irqchip/gic-v3: Enable support for SGIs to act as NMIs Yuichi Ito (2): arch64: smp: Register IPI_CPU_CRASH_STOP IPI as pseudo-NMI arch64: smp: Disable priority masking when received NMI on PSR.I section arch/arm64/kernel/smp.c | 44 +++++++++++++++++++++++++++++++++++--------- drivers/irqchip/irq-gic-v3.c | 29 +++++++++++++++++++++-------- 2 files changed, 56 insertions(+), 17 deletions(-) -- 1.8.3.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel