Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1253800ybp; Wed, 9 Oct 2019 11:06:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9woR/L5F3TL0NDBylUlR84fNbLN86HJ/vac8lt+azi9g1qFgtkjqPZgQhIjBdaWtBSae1 X-Received: by 2002:a17:906:2cca:: with SMTP id r10mr4165425ejr.108.1570644406685; Wed, 09 Oct 2019 11:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570644406; cv=none; d=google.com; s=arc-20160816; b=XO3soz1UTf7HQcymzycDG/qYASK3N/jdZQCO1blzSghBd/riRhMwRFGPdlKc2XkcfM UCkMFKYZFTjuyljFy5GKA6NO/hFYqdD9SusXV0ngNVvw9KsBlOpVzBQRVOyL9xQxMuKk VtcQCI5Tzjs89c01Q0hJ+RiRTv6dbalupFSnDbwqrHQguhci7d9gukV7/8glWakD8aoi P2losV0G4au+xm5u113ZX2B42rvQ8UYYoP2KvLesro55CwCfiFVOtgydDBwQe6/LLo6u h929bvoi1kf+YbWOPMGsrTf7gazwWbXWQwA2U1qv/nacRzAlr07TGC7d/1UQkCb21LWS dLJw== 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:date:cc:to:from:subject :message-id; bh=RJfATJfSGxZzcYCz/PRXow0F4bXAlSaq69TIpTuQAuA=; b=VGrFaym3FiVP+MR9CPfXtJZe7AGcpttSoZBFGewKG+NXBFMrVQYSHcQR+Wwt82Ey/y vJerxbhPxa6kMvMS8v7uNvcXI9ag8hukg8mqSbm1aJvWtO6NkkRa7LNanUfeJq6Q8Rr2 0L6yU3YIqrH5apUXhNGtf2ge5PLQRrdBJNsDKTLv0V8vJjrNpDjAqrFpat2f8wNH5RNO ltnqmjNUmFxIUIO85P1M/8UuI1OSL3IR3iG9rCwUoNFT2hFv2th9pRolVcgqP54fKP8j WDs+B9JU5PwGwPwtWfcDepE0NbNa5L50+o/huzWbXz8/eW30cJRHG8ap7td3Eb7LA0Yz RUqw== 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 v5si2100286ede.126.2019.10.09.11.06.17; Wed, 09 Oct 2019 11:06:46 -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 S1731168AbfJISFo (ORCPT + 99 others); Wed, 9 Oct 2019 14:05:44 -0400 Received: from smtprelay0196.hostedemail.com ([216.40.44.196]:56538 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728804AbfJISFo (ORCPT ); Wed, 9 Oct 2019 14:05:44 -0400 Received: from smtprelay.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by smtpgrave04.hostedemail.com (Postfix) with ESMTP id B8C771801C507; Wed, 9 Oct 2019 18:05:42 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id CCA2B18225B16; Wed, 9 Oct 2019 18:05:41 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2828:2895:3138:3139:3140:3141:3142:3167:3354:3622:3865:3866:3867:3868:3870:3871:3872:3874:4250:4321:4605:5007:10004:10400:11026:11232:11473:11657:11658:11914:12043:12050:12296:12297:12438:12555:12740:12760:12895:13439:14181:14659:14721:14877:21080:21212:21365:21433:21451:21611:21627:30045:30054:30055:30056:30070:30090:30091,0,RBL:47.151.152.152:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:274,LUA_SUMMARY:none X-HE-Tag: month49_316db865c1a40 X-Filterd-Recvd-Size: 3205 Received: from XPS-9350.home (unknown [47.151.152.152]) (Authenticated sender: joe@perches.com) by omf12.hostedemail.com (Postfix) with ESMTPA; Wed, 9 Oct 2019 18:05:39 +0000 (UTC) Message-ID: <1dfc2bf57335b7eb9f130cc791db76655fb5b8f4.camel@perches.com> Subject: Re: [PATCH] x86/mce: Lower throttling MCE messages to warnings From: Joe Perches To: Borislav Petkov , Benjamin Berg Cc: linux-kernel@vger.kernel.org, Hans de Goede , Srinivas Pandruvada , Christian Kellner , Tony Luck , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-edac@vger.kernel.org Date: Wed, 09 Oct 2019 11:05:37 -0700 In-Reply-To: <20191009175608.GK10395@zn.tnic> References: <20191009155424.249277-1-bberg@redhat.com> <20191009175608.GK10395@zn.tnic> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-10-09 at 19:56 +0200, Borislav Petkov wrote: > On Wed, Oct 09, 2019 at 05:54:24PM +0200, Benjamin Berg wrote: > > 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. > > > > So these messages do not usually indicate a hardware issue (e.g. > > insufficient cooling). Log them as warnings to avoid confusion about > > their severity. [] > > diff --git 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); > > -- > > This has carried over since its very first addition in > > commit 3867eb75b9279c7b0f6840d2ad9f27694ba6c4e4 > Author: Dave Jones > Date: Tue Apr 2 20:02:27 2002 -0800 > > [PATCH] x86 bluesmoke update. > > o Make MCE compile time optional (Paul Gortmaker) > o P4 thermal trip monitoring. (Zwane Mwaikambo) > o Non-fatal MCE logging. (Me) > > > It used to be KERN_EMERG back then, though. > > And yes, this issue has come up in the past already so I think I'll take > it. I'll just give Intel folks a couple of days to object should there > be anything to object to. Perhaps this should be pr_warn_ratelimited(...) as the temperature changes can be relatively quick.