Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2171173lfo; Fri, 20 May 2022 16:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfAtLIh3D+Aj8ti8+oLBSWK5LlmKDavjI6oWLq/AQaoYvG3GkCfJ2EHwmZAX51w10sjmMi X-Received: by 2002:aa7:951c:0:b0:518:4c30:6ca4 with SMTP id b28-20020aa7951c000000b005184c306ca4mr8052549pfp.12.1653088715402; Fri, 20 May 2022 16:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653088715; cv=none; d=google.com; s=arc-20160816; b=JcuguzVdJc6xOxYfZot4QitHSloYcVWuiu07K8pKEhkqITcr3Au3IHn3tUWOdZhGZB AzOs17Wydn+Ritv0y3K5spc4xEp2Scj2L/vGywFQ+n70xr7VbdZ7Cny/NAGbODIwxQF7 6qvRs7oZEaOSW3osPyGsx6io6f0iyfu6snr+x0f81H/B5RMul2LjSW1AdEu6xL1eBSQQ 8YyH9oxLMTuqSw1vNAFZinzTEpuTPh1azj9GdduHMvMxgrZM9p4OMzhfJGStob8Evz4g 70G6jLZy0dVWQ3l/eksi1Z3Wbv+wDM96Wl+hKTa5p1Avh6WGjsMqMaaCbcefIWCZJzrk K50g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ckb/8npk1krDfcv5ToCdV7rg8s7dugd7UJab+/xx2vI=; b=CXbzAjRE1PEWLx4dhMkaoLl6pi1NUhL89HS2fyKz2fGggqbwKp9MSPUAXNsfvvHCxf UOCfjSDR1CtzxSs95pPiyimJ7cXJ4iz8MbuODz82xbgLI/Lh90uVfq/43yP6LTc5Arh9 ajRii3BzkQ2eN9KZULsHAnQhbpSvMEecRx+dhYnyIB303wYSfho/2KPGASXS3zLwjNhu 0yPYd4dNWYf0eeGR84MbI0BD/j1WHlwvH2YIFujZx27aRnxSNiOlqEKRAhiWILQxw+Lm msjYSp9sdbZrN90pFRzysGH9OtBx6RAaHRk2m5Z0ZcADQXRFIg3b4BP2hroz0qPgfvzE cKdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oKM8pdgK; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nm15-20020a17090b19cf00b001dc263ce975si3716666pjb.97.2022.05.20.16.18.23; Fri, 20 May 2022 16:18:35 -0700 (PDT) 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=@collabora.com header.s=mail header.b=oKM8pdgK; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241861AbiESQOP (ORCPT + 99 others); Thu, 19 May 2022 12:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237790AbiESQOK (ORCPT ); Thu, 19 May 2022 12:14:10 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49558C6E66 for ; Thu, 19 May 2022 09:14:09 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id C735C1F45E73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652976848; bh=rfIX7T1vrLJCiPikRvVRNfxxyu38980k27vFI1IQdo8=; h=From:To:Cc:Subject:Date:From; b=oKM8pdgKa1t9qM2com5SF7AqoSdEe+EA9I1xdAm8WYcWB0ahj8mUoIj8JYvNuhcSy k44S3tO8DOXFkiEV+qsK4s/Cw5e7oJGJaMqVSV2+/IJfTkTvBwYcLMNi7kYFe/wtBa l7jDJgsD/pFJJCmxvKDeaUXCRCJPIpONX+QuiD1fwFpabxQd6f3be/tMbc61gLP1qV DpffxxiQC3dHlPt6YXYQfsxZR2cJ5nWKRU5bStYs+LXUv0fnCQoyPMHaRyjpdcT7Iq T3sXz+sfOytVsZxPZS4w44OxwravQEGqnBOZwOVlasbf9jVIfum+GjKVQJsF5v476A Gk7HmLkFKQNeg== From: Dmitry Osipenko To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] ARM: Silence proc-v7-bugs.c spam about disabled Spectre workarounds Date: Thu, 19 May 2022 19:13:10 +0300 Message-Id: <20220519161310.1489625-1-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Print message about disabled Spectre workarounds only once to stop endless spam into KSMG each time CPU goes out from idling state. This spam makes system unusable with CONFIG_HARDEN_BRANCH_PREDICTOR=n for those who don't care about security and wants maximum performance. Signed-off-by: Dmitry Osipenko --- arch/arm/mm/proc-v7-bugs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mm/proc-v7-bugs.c b/arch/arm/mm/proc-v7-bugs.c index fb9f3eb6bf48..f9730eba0632 100644 --- a/arch/arm/mm/proc-v7-bugs.c +++ b/arch/arm/mm/proc-v7-bugs.c @@ -108,8 +108,7 @@ static unsigned int spectre_v2_install_workaround(unsigned int method) #else static unsigned int spectre_v2_install_workaround(unsigned int method) { - pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n", - smp_processor_id()); + pr_info_once("Spectre V2: workarounds disabled by configuration\n"); return SPECTRE_VULNERABLE; } -- 2.35.3