Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp501149ybg; Fri, 18 Oct 2019 03:08:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvoloyGrMbPBcvqhObSTHoU1Kv4jD9XFdBBc5bB8bkQs3McHnrhSlR/Xu2pCsu9h4fYS+Q X-Received: by 2002:a17:906:e82:: with SMTP id p2mr7701023ejf.237.1571393331962; Fri, 18 Oct 2019 03:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571393331; cv=none; d=google.com; s=arc-20160816; b=Jjg5dZ/pR6QSe/1GmM7RwwKsheRsbd8LXHvhWFdp4JhD862ViNSuUCc2YiMj0GwBzb yHilsUk3gcYMs1G1SteoWFlRGfVua7kzq6fip7Pp8GADf4VombGQWuCqdykY3OQlVyIG Vh6fHQvB1vv799s3vLsK9NA7bMcolGKdTzaTBzQPwnNkZjXpCRrrLLDZKmaJclCriZ+E f1l3EYDrdNaXfON9osOB4MkImz4MAzKn3gsUIJoI9srJqcFGUbM9ToPXq3czwfrT823f b7I21bscOHFrHk1/eFtctsbZsCjK06EkTZimdoxmATv6QLOI51XGpj0YAjOUVwhVnCOR IbDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=tn2D+N/fYswNJ6bFyAxemC/Zs50oGsqB9fyYZqFEFsw=; b=yfxsWyXafLNue+15q95zNKlD4bNQll5SaCg16k8RteGWCyKOT6m0swj7zMYU2qHeB+ 4yaD2J+NfBxMeP6/C6phNDAArZR0sM+0tPkCDrz8gHSpEWda4551H1E6yWd9EEmjlmlC OYgSj6fqM3hLf0RyshO4Kio9WoeSZ/2FBh1AM0fjx1Y8lzq1aBK49Tbt6AX5qRYxvuBo dbg+BqjnJIW8To5CAlAWSNqZhqcj+Ivzx1ZKKpZw5xWQpEcgDbpac/amEGgVPHC13y9N URAhBTFOmLuKV5jzmYMuSG6eelDDD9pUElzM6cRUt3R5mUSut5tqmLJSTYGeFTBgSgB7 8qSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g30si3397281eda.2.2019.10.18.03.08.28; Fri, 18 Oct 2019 03:08:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408117AbfJQHUY (ORCPT + 99 others); Thu, 17 Oct 2019 03:20:24 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:52178 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408101AbfJQHUV (ORCPT ); Thu, 17 Oct 2019 03:20:21 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iL04n-0002eF-3c; Thu, 17 Oct 2019 09:20:01 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id B529B1C009F; Thu, 17 Oct 2019 09:20:00 +0200 (CEST) Date: Thu, 17 Oct 2019 07:20:00 -0000 From: "tip-bot2 for Benjamin Berg" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] x86/mce: Lower throttling MCE messages' priority to warning Cc: Benjamin Berg , Borislav Petkov , Hans de Goede , Christian Kellner , "H. Peter Anvin" , Ingo Molnar , "linux-edac" , Peter Zijlstra , Srinivas Pandruvada , Thomas Gleixner , Tony Luck , "x86-ml" , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191009155424.249277-1-bberg@redhat.com> References: <20191009155424.249277-1-bberg@redhat.com> MIME-Version: 1.0 Message-ID: <157129680050.29376.455617240270032569.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the ras/core branch of tip: Commit-ID: 9c3bafaa1fd88e4dd2dba3735a1f1abb0f2c7bb7 Gitweb: https://git.kernel.org/tip/9c3bafaa1fd88e4dd2dba3735a1f1abb0f2c7bb7 Author: Benjamin Berg AuthorDate: Wed, 09 Oct 2019 17:54:24 +02:00 Committer: Borislav Petkov CommitterDate: Thu, 17 Oct 2019 09:07:09 +02:00 x86/mce: Lower throttling MCE messages' priority to warning On modern CPUs it is quite normal that the temperature limits are reached and the CPU is throttled. In fact, often the thermal design is not sufficient to cool the CPU at full load and limits can quickly be reached when a burst in load happens. This will even happen with technologies like RAPL limitting the long term power consumption of the package. Also, these limits are "softer", as Srinivas explains: "CPU temperature doesn't have to hit max(TjMax) to get these warnings. OEMs ha[ve] an ability to program a threshold where a thermal interrupt can be generated. In some systems the offset is 20C+ (Read only value). In recent systems, there is another offset on top of it which can be programmed by OS, once some agent can adjust power limits dynamically. By default this is set to low by the firmware, which I guess the prime motivation of Benjamin to submit the patch." So these messages do not usually indicate a hardware issue (e.g. insufficient cooling). Log them as warnings to avoid confusion about their severity. [ bp: Massage commit mesage. ] Signed-off-by: Benjamin Berg Signed-off-by: Borislav Petkov Reviewed-by: Hans de Goede Tested-by: Christian Kellner Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: linux-edac Cc: Peter Zijlstra Cc: Srinivas Pandruvada Cc: Thomas Gleixner Cc: Tony Luck Cc: x86-ml Link: https://lkml.kernel.org/r/20191009155424.249277-1-bberg@redhat.com --- arch/x86/kernel/cpu/mce/therm_throt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/therm_throt.c b/arch/x86/kernel/cpu/mce/therm_throt.c index 6e2becf..bc441d6 100644 --- a/arch/x86/kernel/cpu/mce/therm_throt.c +++ b/arch/x86/kernel/cpu/mce/therm_throt.c @@ -188,7 +188,7 @@ static void therm_throt_process(bool new_event, int event, int level) /* if we just entered the thermal event */ if (new_event) { if (event == THERMAL_THROTTLING_EVENT) - pr_crit("CPU%d: %s temperature above threshold, cpu clock throttled (total events = %lu)\n", + pr_warn("CPU%d: %s temperature above threshold, cpu clock throttled (total events = %lu)\n", this_cpu, level == CORE_LEVEL ? "Core" : "Package", state->count);