Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3932008pxu; Tue, 20 Oct 2020 04:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy94I848h6BCl/+P5hcOMoOG8i3VQ7zRT+qi1W5w3Z9Uj4c/Q1HbahoDw5shjgze09LG254 X-Received: by 2002:a17:906:7f8d:: with SMTP id f13mr2806150ejr.540.1603193374981; Tue, 20 Oct 2020 04:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603193374; cv=none; d=google.com; s=arc-20160816; b=IPl3ZWdHx6SiH01XnK0qK01+9YklbF69e2lrJTXtXA9mSRdVOImmtJVrIFyTvGVvDE pjHma5mOUomhxMrhKldhrkGUdW2nXpdADtYlAslfEa7ClZvXjxAsEaBbedj+JLoDSszx odZonNY3RMrHV99KrQx3ggDv4OEZYnkemwXOIGtd4yHo8oI0KCXF5RxCJNQPs9v4+2xY xnF3LEb0M34Nd0EMhMIoJ+nK93w0nFCvn8zt8KPktuUPJu8osFVttn19wJuiy4PD02dB jK58qVmujYYp/Puju4eVaATY0PL+LZ3zzCoLxlLoQsjtT+tEOYgFl8JxicsedGfZk4ye 34pQ== 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=NPnZ5pMPL0ZHLn1kk7SbxPlIllYT34IeQ/XETYTl+QY=; b=ZkCE8+E+fUJNEQTuStH6B47HlQ7egNA5cA/INMo7p5xp85EaIX5yYcYaff3ikpYASJ zh+Rnj9k+C8AOhY22Nome3/HhrGqqczVLvm7rDouF53NffVe6gHhEeR4CQxIgZzN9HMk Z5q+GA79ZxVwRcn3xVqh1kHnE9hZsoKWgkPEW0S/RktszTlvIIqMVHGV/RUiAxQdfDPT v6j8Z9mTzkAFixiR9PG+EZT9N6aTVEqB0jL9rYgdQjgQfHTtz5nOy/Er5aGsow9BsdeN ToVHF0BB6buCq9cd5lIeJBmT/OWOHGHhpx+FuiwKp9oXr4x0VcSho2/m7tPFvLYlHjD9 JKNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D6ppd8bn; 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 dn20si1408838ejc.514.2020.10.20.04.29.12; Tue, 20 Oct 2020 04:29:34 -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=D6ppd8bn; 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 S2405580AbgJTKIe (ORCPT + 99 others); Tue, 20 Oct 2020 06:08:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:37276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730311AbgJTKIe (ORCPT ); Tue, 20 Oct 2020 06:08:34 -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 7244F22253; Tue, 20 Oct 2020 10:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603188513; bh=Pvc6PAgxMsRidFxK+BBUIS16vHaM9gVploXYIngka3M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=D6ppd8bndAPKng3zkj9Ww196fvyQt4yzrHa3LIw7jYYRYGHudL6tm421CVeh7+Zmt Wxutd6ebNuX1lDfMzkevtg/IUB4e10tQjDHC/VxrkdZrfchw86qeIcO8symkAAeFsU Jj6PHQpMNS7Ok9aK6OUAfqwktAvUT6lsXtadtAkw= 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 1kUoZC-002gji-Vr; Tue, 20 Oct 2020 11:08:31 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 20 Oct 2020 11:08:30 +0100 From: Marc Zyngier To: Sumit Garg Cc: Catalin Marinas , Will Deacon , linux-arm-kernel , Thomas Gleixner , Jason Cooper , Mark Rutland , julien.thierry.kdev@gmail.com, Douglas Anderson , Daniel Thompson , 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: References: <1602673931-28782-1-git-send-email-sumit.garg@linaro.org> <1602673931-28782-2-git-send-email-sumit.garg@linaro.org> 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: 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, daniel.thompson@linaro.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 07:43, Sumit Garg wrote: > On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: [...] >> > +{ >> > + if (!ipi_desc) >> > + return; >> > + >> > + if (is_nmi) { >> > + if (!prepare_percpu_nmi(ipi_id)) >> > + enable_percpu_nmi(ipi_id, IRQ_TYPE_NONE); >> > + } else { >> > + enable_percpu_irq(ipi_id, IRQ_TYPE_NONE); >> >> I'm not keen on this. Normal IRQs can't reliably work, so why do you >> even bother with this? > > Yeah I agree but we need to support existing functionality for kgdb > roundup and sysrq backtrace using normal IRQs as well. When has this become a requirement? I don't really see the point in implementing something that is known not to work. M. -- Jazz is not dead. It just smells funny...