Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13473810ybl; Sun, 29 Dec 2019 12:46:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwIGELbn4p1lstEuCBOALI9uNcmaT4OjiNHBJSCeuo636sRN2QWx+3e/P2w75WJhL0p3bca X-Received: by 2002:a9d:7ac9:: with SMTP id m9mr67425892otn.80.1577652370014; Sun, 29 Dec 2019 12:46:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652370; cv=none; d=google.com; s=arc-20160816; b=anaPTApMKpfVgTUHlVrEx1YMsW7yZ9nN4dbUjxHVKFZwclifwoD2LHBG5Rmk4M4Www q2pfyk/btXm343trXnwyG5QojP6ssgvNdHaJGsRYeyFtjzgXQ3SHnLP9rl21TQtsaY9S UNa8DZMSl6dun+Yo1PzLUI2Tkuu48fSeIwB9Pz3B+NjGhyOLW1bw1YUnoxb5y3Kh0y8D QlVV3wLt3tqCLZO0uu5YoEEsxeA4lFKTvd1tkDoC6zVlfwjwl16neDkyJk9aYC+0uV40 P9RO8FuTvZTIe3UZFnOaTC2ZK/qqu0SHpPE6xUi92GP6QbMoK2YtMZ8droQrs0ZD5CTD 5DoQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ADJ9kEAkulaWeyIaTrzWIzLf/8+WlqcjHTvHZKRr9HE=; b=H0vi8mDzE8i/BJe198Pgv7WU1+vjW7wOXSRcwgefYiSV1SMYbyO0ZDDPBTLSfXeqzG 7/N8H35x7etHx9A3xyNiSp+vKCLzGk1EFivvaOhWNxWW8AINY3dWyZ5P4TJ+UxWbXM6k fd35Mz976rybE5fIZw7FtzS3JeH824opIT2AR5KN/I0WSkop4fiSvxT8TBDwRiOQYyKe 2oIjh2H0DPbk9sZbcopwzIcZvWHEEBJrFsTQLGWxzB8DLjHDrdj+vMjIiHWBxQGwkpzu /KQvxTbHnAxDAX97Cp9Xru7fFgZbq7Gy0s75LC1Rf9EzN5KztmHiDCTSqWK74m8K42So CYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YvchG8yZ; 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 h22si18360970otk.18.2019.12.29.12.45.58; Sun, 29 Dec 2019 12:46:10 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=YvchG8yZ; 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 S1731044AbfL2Rrk (ORCPT + 99 others); Sun, 29 Dec 2019 12:47:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:58330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731287AbfL2Rrg (ORCPT ); Sun, 29 Dec 2019 12:47:36 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E111208C4; Sun, 29 Dec 2019 17:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641655; bh=8Y3bpAeQFk9okhggOyjo4H4BlZ0WWo2yo6wIlH7nPkY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YvchG8yZHvX3iRc5YSK7w4EqOfWTbXhsEjwdJiX2ZCYLadJId5vltHj20HjE+RrPG 0MWFC6C4V2zFdIueFAHMJ1Ne8TuKrVJjN57r2sSylnlDbPGg8BC4ufnYhQ2syHDVl+ L0ZIinRGZanin+N9o5k/cgiJXUFHI3QlUN3CQ9Cc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, 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 , Sasha Levin Subject: [PATCH 5.4 157/434] x86/mce: Lower throttling MCE messages priority to warning Date: Sun, 29 Dec 2019 18:23:30 +0100 Message-Id: <20191229172712.191934842@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Benjamin Berg [ Upstream commit 9c3bafaa1fd88e4dd2dba3735a1f1abb0f2c7bb7 ] 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 Signed-off-by: Sasha Levin --- 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 6e2becf547c5..bc441d68d060 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); -- 2.20.1