Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp44313pxk; Wed, 23 Sep 2020 21:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+IBfl7Gy+PZxdo/zDTnELc007XqMaacX/FXOvWXAaeSITOLHPwRa5XVsxF0ij9k5cZmVS X-Received: by 2002:a17:906:9353:: with SMTP id p19mr2748565ejw.403.1600923396605; Wed, 23 Sep 2020 21:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600923396; cv=none; d=google.com; s=arc-20160816; b=gKRn0ZB0Y2Fs2qHZn1D/ZAL7DyPr/JRUGhIg5OwGlcXzTlqWN4K8lbK4lCpA8q5xih KCZkhH8nuOX3RTOfOiTQR6PboN+kdSjb2tjAt6KfYujRlzfiUxJtByU/qtY1ylsRYWpT 6goaIoDikH8/P+4+VV6MNcN1mdNZuwsbi9gWx7F28YXNwE5IvFSP35/xrf3jAbWmbOhg 9sXt87GU1mnMqr2wHAm4OxTxI8faea7tK9ogDoFduFAjrvyZcDSxpp0tZeEnuvsCVX9/ eRG6RRENVSI6Niacakx0PfTLhfVGuecCtXlmnO1+/QaJRts/ONA1cNFUOcm9XUog7joB rAIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KIhAC4Yyb0AANLfKDYlVqYtrkIOEhSuStavyVZitnqo=; b=gBDcMZOiuCgc6ZgF3SbnM8xVAtghWYmgyDyoqO+e9wB7EUwb6C5bhrnmBNbh+W1x7S GIBbZbkMW6K0RyryDTik+9MVJVbPElOxMFcsiQMzyc3OY9m00VHLjOxDVC6O7TPdIzaL ph0It7c2vM35jwi2oSnJYGDWl+SiMX/WLoYdFLZkEWN5hF8PynmriMd84/U5EKQGFgND aqGJH7aA8rVk9yNK426Bwk32G6rMN714kq6wm2S0VzPLPGGHyU4J/DrXZ/5lqEBs/1AE tdVAJVaWEGhvi1f7RwDwSBxHWjiQ4vH2QWRYF79wz+Jtk6KxGOsye3KvPbhwgyld8DGA O0dQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si1543372ejo.706.2020.09.23.21.56.06; Wed, 23 Sep 2020 21:56:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726760AbgIXEys (ORCPT + 99 others); Thu, 24 Sep 2020 00:54:48 -0400 Received: from mgwym03.jp.fujitsu.com ([211.128.242.42]:62677 "EHLO mgwym03.jp.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbgIXEyr (ORCPT ); Thu, 24 Sep 2020 00:54:47 -0400 X-Greylist: delayed 663 seconds by postgrey-1.27 at vger.kernel.org; Thu, 24 Sep 2020 00:54:46 EDT Received: from yt-mxoi1.gw.nic.fujitsu.com (unknown [192.168.229.67]) by mgwym03.jp.fujitsu.com with smtp id 2783_2cfd_64562af8_ea9a_4753_b429_e475f2a5d975; Thu, 24 Sep 2020 13:43:38 +0900 Received: from pumpkin.openstacklocal (pumpkin.fct.css.fujitsu.com [10.130.70.189]) by yt-mxoi1.gw.nic.fujitsu.com (Postfix) with ESMTP id 935C3AC0111 for ; Thu, 24 Sep 2020 13:43:37 +0900 (JST) Received: by pumpkin.openstacklocal (Postfix, from userid 1016) id E760C1C014; Thu, 24 Sep 2020 13:42:38 +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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yuichi Ito Subject: [PATCH 0/2] Enable support IPI_CPU_CRASH_STOP to be pseudo-NMI Date: Thu, 24 Sep 2020 13:42:34 +0900 Message-Id: <20200924044236.1245808-1-ito-yuichi@fujitsu.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable support IPI_CPU_CRASH_STOP to be pseudo-NMI 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 ThunderX. This patch assumes Marc's latest IPIs patch-set. [1] It also uses some of Sumit's IPI patch set for NMI.[2] [1] https://lore.kernel.org/linux-arm-kernel/20200901144324.1071694-1-maz@kernel.org/ [2] https://lore.kernel.org/linux-arm-kernel/1599830924-13990-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: crash> bt PID: 3213 TASK: fffffd001adc5940 CPU: 8 COMMAND: "bash" #0 [fffffe0022fefcf0] lkdtm_HARDLOCKUP at fffffe0010888ab4 #1 [fffffe0022fefd10] lkdtm_do_action at fffffe00108882bc #2 [fffffe0022fefd20] direct_entry at fffffe0010888720 #3 [fffffe0022fefd70] full_proxy_write at fffffe001058cfe4 #4 [fffffe0022fefdb0] vfs_write at fffffe00104a4c2c #5 [fffffe0022fefdf0] ksys_write at fffffe00104a4f0c #6 [fffffe0022fefe40] __arm64_sys_write at fffffe00104a4fbc #7 [fffffe0022fefe50] el0_svc_common.constprop.0 at fffffe0010159e38 #8 [fffffe0022fefe80] do_el0_svc at fffffe0010159fa0 #9 [fffffe0022fefe90] el0_svc at fffffe00101481d0 #10 [fffffe0022fefea0] el0_sync_handler at fffffe00101484b4 #11 [fffffe0022fefff0] el0_sync at fffffe0010142b7c Sumit Garg (1): irqchip/gic-v3: Enable support for SGIs to act as NMIs Yuichi Ito (1): Register IPI_CPU_CRASH_STOP IPI as pseudo-NMI arch/arm64/kernel/smp.c | 39 ++++++++++++++++++++++++++++-------- drivers/irqchip/irq-gic-v3.c | 13 ++++++++++-- 2 files changed, 42 insertions(+), 10 deletions(-) -- 2.25.1