Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4371395imw; Tue, 19 Jul 2022 05:32:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrbsmDJLyEwx1x/hpq2K7hSS54inA4njIQOrTHnh/mEBIsi836Gz5uJYmxwIdBXAdjiGyU X-Received: by 2002:a05:6402:51ca:b0:43a:df65:d180 with SMTP id r10-20020a05640251ca00b0043adf65d180mr43846050edd.255.1658233920444; Tue, 19 Jul 2022 05:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658233920; cv=none; d=google.com; s=arc-20160816; b=IsN1etfZHvESUuukNQQdMop9GBN30YbBDwyJ+btPcjpCFUydZO18RfWkKU3qIUCWK1 E9ljG1vr0+I1vRq48Hg+WMhtOyuDuTVwFwVfA1WXdKMuINtUpuHtWVlbbxh3IRbxze5G 1rjW2uGlpwi0SbG9s3I8mE8S2UbXvm2MTOhoPaA4ZWJ/fFeE2K2sz77k7iL1HaLV+G3q LUW+HuyCNIs78Ho/kbRwM4wkBIq6JuaMxW4rXItZbipBQ8PstSp+ozGCv4SAH0Lnyd6p 3BpViYxctZ1CFkb4u9WpzE2D4KYcOXeyVcdZB8PYUUjGC5HRsynEqFCt3e00ubneSKSL rWCw== 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=Deg3KMFDsOGNkDQ3tAtoSzcF/nwVthsjdFt0XgFo1AwqSdrG2Z3xXax79xuPw/kaTY mQNMxuNFY/lqzs3ImDRHsWFflFpgo3M0AImrjpdX5M7oPKHqVAxfQi93NTScFqOSPHcV JelFstk5x31wqLCQ7Yes/mkjXdTUVg/n0YpkvGwRKvGP9x0jAI4oQ9cYWAV3QCDPvpM6 lQhKaPUhdGmg21MlBn+fLJ6DinPyaaKYR0EvCFfVmR+EEcmewZrteV5Nv8HFJwaD0KN7 WoC/d3a2RJA6RrMhmzk3yakiXcpB0ISu30BUuJVwvSRtlPQsFOGo/ggDGRcqyalmezKL mAxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HXZRTivT; 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 hg7-20020a1709072cc700b0072f6119cba8si350842ejc.885.2022.07.19.05.31.35; Tue, 19 Jul 2022 05:32:00 -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=HXZRTivT; 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 S238270AbiGSMGK (ORCPT + 99 others); Tue, 19 Jul 2022 08:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238386AbiGSMEf (ORCPT ); Tue, 19 Jul 2022 08:04:35 -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 0080548E82; Tue, 19 Jul 2022 05:00:28 -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 8AB7361655; Tue, 19 Jul 2022 12:00:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77069C341C6; Tue, 19 Jul 2022 12:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232026; bh=TU9v5a2oWC0O5pMZvZGTI08WLnI0FifRCJYCMF7RG18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HXZRTivThv/v1UVYjLOEI2v3MMmNpcWNDfE2TQXbY892dI5YdFAH4JmULcRR/xijX DCKRF7FxPAU4dDtRuHMZSH58v2aXLipOcI6ys1MlrmENoDKOknuhyANbQOLPnzF3JM JuMMjIVC3QCWVKrmP0VPJ1u4HKkv5wRBnkCJKmv0= 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.19 07/48] ARM: 9213/1: Print message about disabled Spectre workarounds only once Date: Tue, 19 Jul 2022 13:53:44 +0200 Message-Id: <20220719114520.582845636@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114518.915546280@linuxfoundation.org> References: <20220719114518.915546280@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; }