Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12199749rwl; Tue, 3 Jan 2023 10:27:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXv6roEUTvif+uJy1JxgrthTgI2sFSiWQ3o1F0zWz8rheDkKbFlF1W9/5wuK9X28zL5F67Ul X-Received: by 2002:a17:906:71cc:b0:7c0:ff72:e877 with SMTP id i12-20020a17090671cc00b007c0ff72e877mr39135259ejk.63.1672770447154; Tue, 03 Jan 2023 10:27:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672770447; cv=none; d=google.com; s=arc-20160816; b=yiUoqRDkGQI8MinR7b1O2u0o/E6yh3zlvhUBcAIADMR+CXT5Yz9vCxsluW8bCm2GAj P/Q5s6OBdOOz3DXZ4oXNNVfdlXnKxX2yVPT8gTx9Oe1xtFE5hVIPYoRUa4Ahn9Xe/SPV FSE7mawykVOelnqnbf1eXoD/NTUsOJ0AZd8j2Oao6V1rbkBQVXFj66vey2fo5unSVcct mfQ2/A5mq6B5IMWugllWuHz5cLxK6R8W1YeePrtEi/2gvandgnHCnJ0HsF65k1ISKhW7 ZblFSAJTd8bryFB/Nnl/QNpmwcDjg6NRgMIU4ZYLkyoJqWTcj3I4yDxIqIKmhsIamlgF GSFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=33JRYFmoXhai6Yj+r5CQmKAsn0RgF4jqiX5EEmvPmvg=; b=zZnHNylUUn4H4wpL4B76sg74v4jvK4TUDTFkyOf2Xm8dD3jeHcWLsJ/7+UZm0EeHeJ q4Bp3xBhBJoM+/c+CerAXBdxJS1ArWHUePdhybJZTrGfXYywZoqDDPTYFkNkBHC2RXQw Mwq1YGwLoPwtDhxthHzUR6cmr9INDyCUcmLOjOJLot0orqQuvEkdgg6/pxq72CJJjUpe RURch7ZSzHelKtlGNbSXZIx36HXUNkVeuiaWxRSsBXtaRimAZm/A+hFFgab9AGI+8rPk IMawDEvczjWKUq3t7DlJEA/DAQ3X4+PE9OndVbeuBbBQ+93NXtuPz50N5c77z/2ZRlBq 7LDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+4JQKE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr7-20020a170907720700b007c101c9237asi27947471ejc.668.2023.01.03.10.27.12; Tue, 03 Jan 2023 10:27:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+4JQKE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238085AbjACRpy (ORCPT + 60 others); Tue, 3 Jan 2023 12:45:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjACRps (ORCPT ); Tue, 3 Jan 2023 12:45:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 263E58E for ; Tue, 3 Jan 2023 09:45:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B731A614A9 for ; Tue, 3 Jan 2023 17:45:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27AA7C433EF; Tue, 3 Jan 2023 17:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672767946; bh=3H6ZMjrHwXOXpPIiCTPQRckd0GNsBoWDroI24tfL8jo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=g+4JQKE3Y98/Rjt49s2XeO4S875QW9jEuAJdtduU5js9tpaFrXSyM1xuyXsPrTDz3 /dGj5CevpXiFC93nlr9aqQPRt8yTjd9+A0KFq7vGTuLmWxbE9oYzOI/qwwEZaIKa3p kW5CbCTrSMyRXtKlv+bNxtipTmuwpSm1CprXAJCkCss1aSZr9oHHioZrXNnAHFhMI6 zje1bK9xc/38TQtYYLqkXT/BZ2WULexizhgxJlZ4joVAdlbZP5hYd8wpR9cQIEsGgH jW2XFtFk63cJ0bZac6UN2EJzCWS145CRZhaqSyQa1M81f5ItQ3qiFRu6nYg703uuia 9ji6DOo1hv0eQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pClM7-00GZvp-SC; Tue, 03 Jan 2023 17:45:44 +0000 Date: Tue, 03 Jan 2023 17:45:43 +0000 Message-ID: <86v8ln7bqw.wl-maz@kernel.org> From: Marc Zyngier To: Mukesh Ojha Cc: lkml Subject: Re: Query about IPI as NMI (pseudo-NMI) support patches In-Reply-To: References: <5bed08c5-8663-4e68-27b4-8b6d3957a880@quicinc.com> <86zgb07tfs.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: quic_mojha@quicinc.com, 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 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 03 Jan 2023 16:45:04 +0000, Mukesh Ojha wrote: > > Hi, > > Thanks for your reply. > > On 1/2/2023 10:41 PM, Marc Zyngier wrote: > > Hi Mukesh, > > > > On Mon, 02 Jan 2023 16:44:59 +0000, > > Mukesh Ojha wrote: > >> > >> Hi Marc, > >> > >> I was looking similar support mentioned in below patch series. > >> > >> https://lore.kernel.org/lkml/CAFA6WYO0+LQ=mB1spCstt0cNZ0G+sZu_+Wrv6BKSeXqF5SRq4A@mail.gmail.com/#t > >> > >> Wanted to check if there is chance of these patches to land in > >> mainline ? > > > > I certainly have no intention to merge it as is, specially as there is > > no good usage model for it other than "but think of debug!". > > > > We have exactly *one* SGI left. If we are going to lose it over such a > > feature, I'd want a description of how we are going to share it > > between potential users, and how we claw some currently used SGIs > > back. > > > But, looks like patch will fail if SGI is not available. > > https://lore.kernel.org/lkml/1604317487-14543-4-git-send-email-sumit.garg@linaro.org/ > > > > set_smp_ipi_range(base_sgi, 8); > > + if (n > nr_ipi) > + set_smp_dynamic_ipi(ipi_base + nr_ipi); > + > > So, static SGI allocation still has higher priority than dynamic > one. Would you be accepting if we keep it under some > CONFIG_ARM64_IPI_NMI_DEBUG ? But why should this thing have priority over other potential features? As I said above, there are two requirements: - being able to share a single NMI SGI amongst multiple users - being able to free existing SGIs in case we absolutely need an SGI for some other purposes In both cases, this is about making the SGI space scale *beyond* the 8 possible interrupts that we have. This needs to be solved to get something like this in. And I don't think hiding this behind an obscure "debug" configuration option that will get abused with out of tree stuff is a good move. Quite the opposite. Thanks, M. -- Without deviation from the norm, progress is not possible.