Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4469647imw; Tue, 19 Jul 2022 07:12:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sKSLHxu7nhwjjow5TlV3IoUvl/3Irmz6zhKxgSLh02O/RYOXO9T3MCuzOrsKLzeIMU8+YZ X-Received: by 2002:a05:6830:6999:b0:61c:6342:ff4f with SMTP id cy25-20020a056830699900b0061c6342ff4fmr12607807otb.213.1658239957604; Tue, 19 Jul 2022 07:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658239957; cv=none; d=google.com; s=arc-20160816; b=lj/OJfkRIbJWOKUGD3mkioi3YPkaxfcxoHThaJ/uPA4UbIvqLa1PF5fhlECkLNU8hC QH6PYQ7gh7O1Tx5LwUPv1GhVvZZzbQSZyY3QOFmGslMpWxEnsp3vBvVfR+1xr6cOV1oV gVLh+Nvs3XKHzA4f3hdJVnHKhbcwqkMJZrRg8fHJr2tSB2sn8DYrCI1JDh5hHENiAfEU QyYLSARtA7xLjwe5sbm46AwpMqNPvKIptb5pqqrPeWL/MUGWNtdgKzdv5V0lQrWyF2dX p180RStptlY2sZDKJExG19MDg3kQVfQPQJU04lywPfgULd7NKO4z/o9CR5DLmFIF0FKN DGew== 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=Fa1XxYvVG6Wi6xWVKtqHAxdMYhOfAZCiUkcFIP/acJcWC+EtjP2noZb7SbrAEfFb4r dasX2lHA21aMqE4vBgMQLKDxox6duY8+dcqzNUWEHRSvSwSTc7efyCKX0OCFeP3MqKnR gcI4WhjWXuv7DHjv1wpo4Am0P5x5+rsHCKE4UyK8n7SxY9nRUZ7GZljGpF8ubeAKDUGI 7q37Zt/D6p5q3THUeMH0HW4knkP/CGtZASRAu/aFm8dWbTgmAgJATW2x2tkttLwnkqTH 7IImpvoCL+e2P+2/E0dtVTMz9YWcNL8LZl2Nmq5MTzN+R7gpXIxBHNiPHKk/rygmwfe8 L+5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DENkrDhn; 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 bx2-20020a056830600200b006169c920cbesi15707060otb.197.2022.07.19.07.12.23; Tue, 19 Jul 2022 07:12:37 -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=DENkrDhn; 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 S240145AbiGSMbS (ORCPT + 99 others); Tue, 19 Jul 2022 08:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240165AbiGSM2u (ORCPT ); Tue, 19 Jul 2022 08:28:50 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C94866B91; Tue, 19 Jul 2022 05:10:48 -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 sin.source.kernel.org (Postfix) with ESMTPS id 044B1CE1BDA; Tue, 19 Jul 2022 12:10:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2E2CC341C6; Tue, 19 Jul 2022 12:10:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232642; bh=PEuV/4o35jeAEzG8xHkh/SJRBVMvdGbRaqzCgxIJ/OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DENkrDhnswKAZZO9jq3L/wxmUBqTFz3/qaNaZ1JFCh2P3BtNteJl6jwg1GQCIqPMT PhsQYJtOqNw1KT1eRJaM9rJ58RCdZw5p0IlZH0NhiAhltadtCzGKwHwLj49/dTjIBO MkSxNKDSfaE9EgaS3qfwOlYrIEbU4lA6bxidBkSE= 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.15 015/167] ARM: 9213/1: Print message about disabled Spectre workarounds only once Date: Tue, 19 Jul 2022 13:52:27 +0200 Message-Id: <20220719114658.191987818@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@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; }