Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4502352imw; Tue, 19 Jul 2022 07:49:25 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqPXHrt7rV3j5fyCv5lVny2qFDW69YpPvSL4srimHaJToqkQNfOylcz4ek7O+vDY0aOpWa X-Received: by 2002:a17:90b:4ad2:b0:1f0:3395:6427 with SMTP id mh18-20020a17090b4ad200b001f033956427mr37937373pjb.93.1658242165046; Tue, 19 Jul 2022 07:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658242165; cv=none; d=google.com; s=arc-20160816; b=e9ln3zW1EPLyIKzOqy2RhKcd6AkTppH1860y1Rlqh/okA2T70VyM1ewjiZtdNZMxeJ e/HjUJQr02CPfe4itCmm5N4z2pe/+Mc/kN8uQj7zBwJFI+npK+FYOWpp6otdSitrlMw1 wEuc7vHk6xgy0jBcpesz4jPD7i/0lreYRiiUwzJIuodgM/ioGh3JyXBr8cG0js3UijEU mgJGE5bM76Fm2Ata5nPCz34jmY+4vgNT1w5aUCWHhg4NJxkDT7IVhlAniUWxPSw27VaH xvvQAlIVj2WKzA2MYATzodFlKOwmgIb25NVgPTNrU1RIATYFcK0xKd8JdHwMcYok90np HkHQ== 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=trbUNjIaIazdw8E5ITYcBRGqnEDOdEmb7FRtN/z5wio=; b=ocgmNFLsxoHO7UiQJyrBi5zPBv3LS594VeQWMdSrtfrn1JqzSh0T5HwAhQs1qPS7kB OHu5DqTUXMKDkzU0ZMZLy+a5siuSNnxRrQMdnBabyAc9VCG5p9Dz6U7EnCggad7RB+he ezDjJc8mSetZ6h131l3ptBP2fvOaxcZqt56bvtGpxqQm8zVAT8WFh362rGIKcl+7JSm/ KjeDgUivZgv/kgpTH5E+bo3NaqZ1LsUjmViSw4NpmKxeA5kOC5nsby/g/EHwOy59foBn 2K1U0h8kKeBpOh0+cQyIz5iYKZJC/EDGHL8XTAPrjLL5U367+UEwfYwBHgvWjKnwCS2G brwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TBTSmiDG; 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 mq2-20020a17090b380200b001efabd2e96bsi19787469pjb.73.2022.07.19.07.49.07; Tue, 19 Jul 2022 07:49:25 -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=TBTSmiDG; 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 S241720AbiGSMuP (ORCPT + 99 others); Tue, 19 Jul 2022 08:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241700AbiGSMsm (ORCPT ); Tue, 19 Jul 2022 08:48:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A2188D5DC; Tue, 19 Jul 2022 05:19:12 -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 E3DD96177F; Tue, 19 Jul 2022 12:19:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF202C341C6; Tue, 19 Jul 2022 12:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658233151; bh=PEuV/4o35jeAEzG8xHkh/SJRBVMvdGbRaqzCgxIJ/OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TBTSmiDGOCBShHVwj2wsV40YBeTo+ggdJODGwV7pEZJt9tOjbOrVjynEtpQzNFRLR G0qM8XwjGV3n5g2lNSSvGDyhV6qZMpFAN7l1S2CqNKH7e2lakJTn+gXG5U+N1T1sNz a1V1/vnAY800v3Np+vzVGEzpoMXxiPBYbF3O0f8k= 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 5.18 023/231] ARM: 9213/1: Print message about disabled Spectre workarounds only once Date: Tue, 19 Jul 2022 13:51:48 +0200 Message-Id: <20220719114715.954895250@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114714.247441733@linuxfoundation.org> References: <20220719114714.247441733@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 @@ -108,8 +108,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; }