Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1523316ybt; Thu, 25 Jun 2020 08:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3fLEDa+7UjvupUPYlbaEudrNBGr4/aKQm+zMzcxEOz4/Cz7bzVlpnduSOHdct1MykyzCW X-Received: by 2002:a17:906:cc0e:: with SMTP id ml14mr16229729ejb.432.1593097271738; Thu, 25 Jun 2020 08:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593097271; cv=none; d=google.com; s=arc-20160816; b=YzCDJiimN8/For+e5ZyNjm1HoGrn7+dyCEXlMzX64iB2H1lg26ftsMKbR809hySOSe IwoZg3ar6wVOqtQLeqtqu4tZiyedIpH7TXIEOfQTHY01HDBZO55SSXUpKvhVVR9TDo4K Sa7D822frLx3zzxgwlXSd3jinP/CZLzXg8ZJzaEUGF8Ag4WCTrf5p+dPcwaxJihP1Kfh CnB531NFjexSDZuQT4iYvJ8wj6T1JVpBoSjuOJLF3XKkuKsvVbKMXvBigxHNzU4hIYAU dlCq6keQ9+LeTEZellmhdpB8PojDg2joE4gpMvapIbtNzGJOo72ATBnwpfwwMEYaKvwL f6ZQ== 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=mg+9kkhRXy6N0T29ZNpOfyE1JN3pplYRXXdJVvDlro0=; b=0YVb6Z5dPToybaVQID+qqCOiHTJx82cChW6XpbBJg7orNKW5KA3jgAOxpzHMQnMkLJ UsMrVtcQYRvEIGE5IS+6xCIDeFZ3JPRsRhu9rjdvPNrcxUOwJGqoQ9oNDZsyrh8NKnhL Os170bdJBB3s0p2juLbpn2OMnsO0SLkz8WhrrRcmnHeGIOPbpTpmsQctAJboUDyLICCA JId01e8uDWitshRF7La4OQjhc5X/AV34TnavCcBAWfgL1EWP4mL3JrhCnhSU2zAGpyfY 25JBfbpSxU2ydiPZCIRQO0L+cbswhHL5BXHV1nZo1cMidS9i7DDz32lGHxIZe2RTp4aC KsdQ== 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 u29si6507879edi.469.2020.06.25.08.00.47; Thu, 25 Jun 2020 08:01:11 -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 S2405737AbgFYO75 (ORCPT + 99 others); Thu, 25 Jun 2020 10:59:57 -0400 Received: from foss.arm.com ([217.140.110.172]:54608 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405725AbgFYO7z (ORCPT ); Thu, 25 Jun 2020 10:59:55 -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 3FF491042; Thu, 25 Jun 2020 07:59:54 -0700 (PDT) Received: from monolith.arm.com (unknown [10.37.8.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3DC4F3F6CF; Thu, 25 Jun 2020 07:59:52 -0700 (PDT) From: Alexandru Elisei To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.cs.columbia.edu Cc: maz@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, yuzenghui@huawei.com, julien.thierry.kdev@gmail.com, will@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com Subject: [PATCH 1/2] irqchip/gicv3: Spell out when pseudo-NMIs are enabled Date: Thu, 25 Jun 2020 16:00:25 +0100 Message-Id: <20200625150026.867727-2-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625150026.867727-1-alexandru.elisei@arm.com> References: <20200625150026.867727-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 cc46bc2d634b..83103277d2a9 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.27.0