Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp469953pxa; Wed, 19 Aug 2020 06:37:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnv/BERwU+NCyJwLYJseiIpKetlUk/Srrz07PKYHTnPvWTU89/aS/iy13eyJKrVCuzW6oA X-Received: by 2002:a17:906:d786:: with SMTP id pj6mr25628051ejb.261.1597844273170; Wed, 19 Aug 2020 06:37:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597844273; cv=none; d=google.com; s=arc-20160816; b=Jf/c1dhhtwMm/Bdj6OATgmPt4efqiYXXi4YNxFQaeiCN9QwOxCIHBa6QLrSc9MoRdB w4KUYZWHPcnBLDvfqNVSX0xwA+w3i0VAWZ8iFa64eNWUcGmI8f2rV5/IHduIPR2lpmdc v2R1j+ki5Y2ghPCtYKbw1I9grjo/ZOjz7AeVYb8Pcc3sxjnz3bYeDlwQMiQ1HeDnN9Uv wm7M6SAb4xT6OOqD+zhCHAhPK70siseMJE0D5HeYBZXCiZL9NWevi00cpj+7P2ZApWmG Hp0dT5T8Fiykqht4iXh7gJ96NqPjPPTElURtLmUdCNrE7Gx5VqRuEY3JBJ5qdYwzNsEB EsSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=atlm9w5oISDYWwVeWPdNLMc0BVdTMoL6/vL0dxXn6g0=; b=jesth7ptBcWlj03hzs5LQMh0ZISRYUnVayYAfStoiycJ1oT8R7v6jtCK/QFc9kPye2 +jRn6z8eUsUJZ5EOYsQ3JPEzJQIPtwZkfFfMdgItOcuup9bkOdX7MThKk0tZMan30cyN mN/A5lioS74DISQtdkEYj20N7NfRnKfnuPu+MXdF8HUD4QyYaEb/Z4Yy9LvyLd+pfHAt yEVZqqogcENFR0P9yfXBOQTfTdkhkDBjD+0sviq79Mg/O5QeaN3HZ3XP6zA6u94rgeVj l7dxdk38fx6h19wGcaJx3ObWAPW9ueD2zf2oFJFYnSDJ0EUuG2GcHQFPgnFPs8QIT9RI 4lSQ== 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 cb14si16117193edb.325.2020.08.19.06.37.29; Wed, 19 Aug 2020 06:37:53 -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 S1728530AbgHSNgY (ORCPT + 99 others); Wed, 19 Aug 2020 09:36:24 -0400 Received: from foss.arm.com ([217.140.110.172]:37106 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728684AbgHSNfm (ORCPT ); Wed, 19 Aug 2020 09:35:42 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3255C1435; Wed, 19 Aug 2020 06:35:42 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E87BD3F71F; Wed, 19 Aug 2020 06:35:40 -0700 (PDT) From: Alexandru Elisei To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu Cc: jason@lakedaemon.net, maz@kernel.org, catalin.marinas@arm.com, tglx@linutronix.de, will@kernel.org, yuzenghui@huawei.com Subject: [PATCH v2 1/2] irqchip/gicv3: Spell out when pseudo-NMIs are enabled Date: Wed, 19 Aug 2020 14:36:29 +0100 Message-Id: <20200819133630.527243-2-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200819133630.527243-1-alexandru.elisei@arm.com> References: <20200819133630.527243-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When NMIs cannot be enabled, the driver prints a message stating that unambiguously. When they are enabled, the only feedback we get is a message regarding the use of synchronization for ICC_PMR_EL1 writes, which is not as useful for a user who is not intimately familiar with how NMIs are implemented. Let's make it obvious that pseudo-NMIs are enabled. Keep the message about using a barrier for ICC_PMR_EL1 writes, because it has a non-negligible impact on performance. Signed-off-by: Alexandru Elisei --- drivers/irqchip/irq-gic-v3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 324f280ff606..ce8944ae1b84 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -1564,8 +1564,8 @@ static void gic_enable_nmi_support(void) if (gic_read_ctlr() & ICC_CTLR_EL1_PMHE_MASK) static_branch_enable(&gic_pmr_sync); - pr_info("%s ICC_PMR_EL1 synchronisation\n", - static_branch_unlikely(&gic_pmr_sync) ? "Forcing" : "Relaxing"); + pr_info("Pseudo-NMIs enabled using %s ICC_PMR_EL1 synchronisation\n", + static_branch_unlikely(&gic_pmr_sync) ? "forced" : "relaxed"); static_branch_enable(&supports_pseudo_nmis); -- 2.28.0