Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1033127pxk; Sat, 12 Sep 2020 08:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI3yWLJns/kIXYQ5UcHh2JsT+Cj8QkUBdCfEp97RP/6X1u20qKDh4YVHtC4yCvKazPxVV3 X-Received: by 2002:a17:906:2b4f:: with SMTP id b15mr6714591ejg.477.1599925032367; Sat, 12 Sep 2020 08:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599925032; cv=none; d=google.com; s=arc-20160816; b=kAsk8vjLir1icXKb38WR9lWoryH3d4s7Uu3nLqK0AJKkP//+IKK+un1slJTZcVph0+ 5UzsX/Y2j9ptJuFJ9UMs9AULOECcoWMr75HUUt/Pog07wkckVqlxLEF0ImzznoyT63E9 3C01MgF435unnRY6M4MWb+P8JuYmqSvlgYge4Z7A96fv3HlAlbRNAKxt/BqlWbZ4p5va 25G/RDBKAXxI/GpyPJxuwFTyONEXk5MOhuo7tEJLRscmR9D/0Ql+Xm5W4PTOFGY1D6AC TNJL6BzEb4M2w6kGoPHP6dBujNvX7p/70vF+hXkk8CcK6L/Sr67UPgK11LIsZ+NfFV8i CQCA== 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=aiq/jE846HH1wcvQruMkAkEDh7nDQF0jMvLdmBni8rU=; b=T05KlA4yHnrfTHpq+hnnoR4dB/XI3rwLus4fgshoQs2bRHGPCN/poDpv4mxDdUJJoo KXzjxTUzBzNOsLTBDwlXoDuJUhRM9UxvD+Sn7wu3dZSJSg6VVxZc7ddHshmAeBoR2fcN Ict5aHY9cXdEoRXHrK25gl/nAlDN5LgicXGXKG/FT0d2R6yc03ulL9ebtRLvkytEgOcq rXzbH8WmUq+Q4SiqXDOqwepmN4WULkh/VJgENnF94XJKu0OxkMhjMT7IihIfBqA/DvXm Qj1wMh8ltp5WqtXgC9u54IHBb4MIyaV2X1rfj4zxqPEATKFTPT6kDp8WgtPB+fDfiZjj erXg== 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 d1si3334091ejh.616.2020.09.12.08.36.49; Sat, 12 Sep 2020 08:37:12 -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 S1725876AbgILPgQ (ORCPT + 99 others); Sat, 12 Sep 2020 11:36:16 -0400 Received: from foss.arm.com ([217.140.110.172]:49564 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgILPgL (ORCPT ); Sat, 12 Sep 2020 11:36:11 -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 D52A511B3; Sat, 12 Sep 2020 08:36:10 -0700 (PDT) Received: from monolith.localdoman (unknown [10.37.8.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 758F03F68F; Sat, 12 Sep 2020 08:36:09 -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 Subject: [PATCH v3 1/2] irqchip/gicv3: Spell out when pseudo-NMIs are enabled Date: Sat, 12 Sep 2020 16:37:06 +0100 Message-Id: <20200912153707.667731-2-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200912153707.667731-1-alexandru.elisei@arm.com> References: <20200912153707.667731-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 850842f27bee..aa9b43d412b2 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