From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752248Ab1DUJ7J (ORCPT ); Thu, 21 Apr 2011 05:59:09 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:48800 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321Ab1DUJ7H (ORCPT ); Thu, 21 Apr 2011 05:59:07 -0400 Date: Thu, 21 Apr 2011 11:58:48 +0200 From: Ingo Molnar To: Borislav Petkov Cc: "Chumbalkar, Nagananda" , "H. Peter Anvin" , Thomas Gleixner , Prarit Bhargava , Tony Luck , Russ Anderson , LKML , EDAC devel Subject: Re: [PATCH 1/2] x86, MCE: Do not taint when handling correctable errors Message-ID: <20110421095848.GA14889@elte.hu> References: <1302857141-17580-1-git-send-email-bp@amd64.org> <66D9D2F0CDB5C9428E6166B01EC85EE162EF92B0F3@GVW0676EXC.americas.hpqcorp.net> <20110421093554.GB4262@elte.hu> <20110421095114.GB10263@aftab> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110421095114.GB10263@aftab> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Borislav Petkov wrote: > On Thu, Apr 21, 2011 at 05:35:54AM -0400, Ingo Molnar wrote: > > > > * Chumbalkar, Nagananda wrote: > > > > > Would it be okay to extend this reasoning and also remove the tainting > > > caused by TM1/TM2 thermal events: > > > > > > diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c > > > b/arch/x86/kernel/cpu/mcheck/therm_throt.c > > > index 6f8c5e9..9f3b5ae 100644 > > > --- a/arch/x86/kernel/cpu/mcheck/therm_throt.c > > > +++ b/arch/x86/kernel/cpu/mcheck/therm_throt.c > > > @@ -188,7 +188,6 @@ static int therm_throt_process(bool new_event, int event, > > > int level) > > > level == CORE_LEVEL ? "Core" : "Package", > > > state->count); > > > > > > - add_taint(TAINT_MACHINE_CHECK); > > > return 1; > > > } > > > if (old_event) { > > > @@ -393,7 +392,6 @@ static void unexpected_thermal_interrupt(void) > > > { > > > printk(KERN_ERR "CPU%d: Unexpected LVT thermal interrupt!\n", > > > smp_processor_id()); > > > - add_taint(TAINT_MACHINE_CHECK); > > > } > > > > Mind sending a proper patch, with changelog, signoff, acks, etc? > > No need since this is part of 7b70bd3441437b7bc04fc9d321e17c8ed0e8f958 > now which is in tip/x86/mce. Ok, indeed. Also, in the future, if you take patches from others please also credit them in the changelog. Something like this would have been good in the current case: Also, this patch includes a change from Nagananda Chumbalkar as well, which drops tainting in the therma throttling code for a similar reason: crossing a thermal threshold does not mean corruption. Nagananda's Acked-by is there so there's at least partial credit - but we generally try to aim for at least 100% credit where credit is due :-) Thanks, Ingo