Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4482464pxu; Tue, 20 Oct 2020 19:38:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHDqhVOgDqulW3fE97MxZbB+uYGnLOYS8x5t4tBJ7XHk7t/ZEHFG8YSSKY47rkodwa2QhU X-Received: by 2002:a05:6402:c84:: with SMTP id cm4mr869404edb.270.1603247906130; Tue, 20 Oct 2020 19:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603247906; cv=none; d=google.com; s=arc-20160816; b=qH7hweoQ1kRGcA436K8niUgje6P0nBXLi8kkQyaF+MYvVRFDDhhXFZ5/BuxDKaF0XJ TsYRlvCDZB7BN4ISfdF509MCaX8k891rFYL2RzOO9Nhuh7rrKHIjvUz68p8KpphZFiJG XHXJgYefkqnfPp7ZZzw0GTDG8tFI5q3SX9UVW8jxaTk9jCtd8bbosNHnJf5eSb1ao5ie KHUUOFCXwAGn65Sg7I50Uifh2433t5VbVGzOhbnw4UsE3WgvHKcGeu43x2tvanV5ZrP0 6+SPNu0sxq3gJup08BssxsUEl8OcDd4M1QSD6tLdIVhAXfxPCILEoN+Q6msc7w3V+ANt dKBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=rZb8COTjASSKrkc+L1XXlTr3VKMxCT98zDB0Xb+NHuM=; b=y/jrx/H0GcoMqheK3e3w0tYIC6O/eGTdqrx5l+sC/Zvl3jPVO6jvH5E/vCVUfXz6Gz 2eicUmXhkH1N057VND2LwMriK4FDTWD03Rmr8LkBHJY3vp7LDoqwyqILhpbCz9U5sfic XlGQiSXs8j0eSau9M7BA+6jqQkKcsCetg6kBK/ojjW2fpXnTX2DsjJTtuVHmirX7foGq V0SGERMqwfWGYoib5le1djXOVzkFdmdHVLoWD3pyax+Tigtz/qWTIu1TDucXYW7QcWGR eWX/xTdD8BKZmD5vT1PIo+zf1Urb0QvHMPGIXJU0tPx/hCi8qAHeaMinaQh5W0wgIFsJ U15w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rZ9Ra18G; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn4si128356ejb.703.2020.10.20.19.37.49; Tue, 20 Oct 2020 19:38:26 -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=@kernel.org header.s=default header.b=rZ9Ra18G; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406019AbgJTMcH (ORCPT + 99 others); Tue, 20 Oct 2020 08:32:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:46174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405888AbgJTMcH (ORCPT ); Tue, 20 Oct 2020 08:32:07 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A1C222265; Tue, 20 Oct 2020 12:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603197126; bh=FNskQlyvjAYQ2kRwtssvTisWlw7hhgIkump+feNnth0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rZ9Ra18GZ+F44faWs6WTiw+eQmQtzYA2X2KmekvneqthHeJVYllH19lEDFgSbyDJ/ tqdMBTqCDaIW8DBtvqvx7+tzk8SFLK6JRL16U4iYCUlwDGgR/OroVhUZDX2Jb4ELf5 e2YYWVpFbwsYACRsP++e5PWxAGP6Vp5BmsR6I9Ks= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kUqo8-002jGz-39; Tue, 20 Oct 2020 13:32:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 20 Oct 2020 13:32:03 +0100 From: Marc Zyngier To: Daniel Thompson Cc: Sumit Garg , Catalin Marinas , Will Deacon , linux-arm-kernel , Thomas Gleixner , Jason Cooper , Mark Rutland , julien.thierry.kdev@gmail.com, Douglas Anderson , Jason Wessel , Masayoshi Mizuma , ito-yuichi@fujitsu.com, kgdb-bugreport@lists.sourceforge.net, Linux Kernel Mailing List Subject: Re: [PATCH v5 1/5] arm64: Add framework to turn IPI as NMI In-Reply-To: <20201020122535.paym32gksuhcqtwq@holly.lan> References: <1602673931-28782-1-git-send-email-sumit.garg@linaro.org> <1602673931-28782-2-git-send-email-sumit.garg@linaro.org> <20201020122535.paym32gksuhcqtwq@holly.lan> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: daniel.thompson@linaro.org, sumit.garg@linaro.org, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, tglx@linutronix.de, jason@lakedaemon.net, mark.rutland@arm.com, julien.thierry.kdev@gmail.com, dianders@chromium.org, jason.wessel@windriver.com, msys.mizuma@gmail.com, ito-yuichi@fujitsu.com, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-10-20 13:25, Daniel Thompson wrote: > On Tue, Oct 20, 2020 at 04:52:43PM +0530, Sumit Garg wrote: [...] >> So in general, IPI as a normal IRQ is still useful for debugging but >> it can't debug a core which is stuck in deadlock with interrupts >> disabled. >> >> And since we choose override default implementations for pseudo NMI >> support, we need to be backwards compatible for platforms which don't >> possess pseudo NMI support. > > Do the fallback implementations require a new IPI? The fallbacks > could rely on existing mechanisms such as the smp_call_function > family. Indeed. I'd be worried of using that mechanism for NMIs, but normal IPIs should stick to the normal cross-call stuff. The jury is still out on why this is a good idea, given that it doesn't work in the only interesting case (deadlocked CPUs). M. -- Jazz is not dead. It just smells funny...