Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4341513imw; Tue, 19 Jul 2022 05:00:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tR2IrXACbwHAHwMEcgY7PFhMezQ9kSrqLQ+Zey87WSsdO4Tn8iAYYObO43mHWGJIIJfxJc X-Received: by 2002:a17:903:2654:b0:16c:5120:f379 with SMTP id je20-20020a170903265400b0016c5120f379mr33073029plb.3.1658232006501; Tue, 19 Jul 2022 05:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658232006; cv=none; d=google.com; s=arc-20160816; b=Oy2+8bf1bBtciW7E6uPZE6Wddo3jt3RN9MqhXTQ2DicI9dM3Oj8gbLFfk0yYKGl8SK Ae4STuuZsdao6Plt+Q8AQdccJcyt8oPRnhbUafHNdLdSeIcXGtXJ3Nx0NDQL+93PkhuC N/INtzyx3YWq4XkYDOpk0EQKneJwnlLmjVW1dT30x0/og2tigCj1f7U5FLcmu0EfcDq4 ZfiitkhxckenDbpmEmOVKare75Ct1ceowwB1gKBUa1unS0eDyty5O7gt7MNOuZzO54F9 RvsjTlK5TYGIbcIy0uVX2wOLJy7LtDXZYHbc34P4drgPJUAbI4u8d/O1LyBCG6TnM12c NaGw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eUqnX9Hxp+7+baWjUK5EWz+AIwZWFlL5gEUJcYw+V8g=; b=0dMPzqFSaRZ0uM6hoe6Kljfr1HtZLoWrKwO9KwEVX1YN8B1ZV2UJjGnQgbz0XbbxPQ a/X461/+FtH6lBM12TFuyfnVCLVj60V0n27g7FlLt1w+O3q4zGRW25l6An+NQ7l0BSoo ow9WjhT2+FY5YYjPXu+xC9oyboRoDbe99XOCpPs7H4H0XiIdiewKROKpl14m5mCJJ+xJ evEX/+AEPnnIxtnjMco2PANW4+cfUzrzcyq0dEPmsjArG1ZgqXNzQLmS6Xg3aGFXs7HP 3Blm6e/KMWP5pf4wnL39Ki6MmOcjl7QI05sNVPVA7NCc3itJ2H+d/RlcdZFvPs8fMNEk ggrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=misgbBMM; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020a170902d4c500b0016c399bd186si21705190plg.379.2022.07.19.04.59.51; Tue, 19 Jul 2022 05:00:06 -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=@linuxfoundation.org header.s=korg header.b=misgbBMM; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235203AbiGSL46 (ORCPT + 99 others); Tue, 19 Jul 2022 07:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233851AbiGSL4a (ORCPT ); Tue, 19 Jul 2022 07:56:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10DF6422CE; Tue, 19 Jul 2022 04:56:18 -0700 (PDT) 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 324C160B27; Tue, 19 Jul 2022 11:56:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 233B9C341CA; Tue, 19 Jul 2022 11:56:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658231777; bh=TU9v5a2oWC0O5pMZvZGTI08WLnI0FifRCJYCMF7RG18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=misgbBMMHzFJ3GaFjJauoJ/hIbOx4RnvzGMRsPDB/I+HVp9qgU8eb4scuOHbXrl7w 1pSQyrNdO5Fs+HX312tUzXhUOBRxJ111puOKMr0bmKweLl25k0DsPh0H27b8ooXQ9d FtFacl4hluWJZ2NRGUmqr1Ey86i2LmcjRJgzo1Tc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , "Russell King (Oracle)" Subject: [PATCH 4.9 05/28] ARM: 9213/1: Print message about disabled Spectre workarounds only once Date: Tue, 19 Jul 2022 13:53:43 +0200 Message-Id: <20220719114457.041638750@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114455.701304968@linuxfoundation.org> References: <20220719114455.701304968@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 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 From: Dmitry Osipenko commit e4ced82deb5fb17222fb82e092c3f8311955b585 upstream. Print the message about disabled Spectre workarounds only once. The message is printed each time CPU goes out from idling state on NVIDIA Tegra boards, causing storm in KMSG that makes system unusable. Cc: stable@vger.kernel.org Signed-off-by: Dmitry Osipenko Signed-off-by: Russell King (Oracle) Signed-off-by: Greg Kroah-Hartman --- arch/arm/mm/proc-v7-bugs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/arm/mm/proc-v7-bugs.c +++ b/arch/arm/mm/proc-v7-bugs.c @@ -110,8 +110,7 @@ static unsigned int spectre_v2_install_w #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; }