Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934481Ab1CYKvX (ORCPT ); Fri, 25 Mar 2011 06:51:23 -0400 Received: from s15228384.onlinehome-server.info ([87.106.30.177]:55968 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934195Ab1CYKvW (ORCPT ); Fri, 25 Mar 2011 06:51:22 -0400 Date: Fri, 25 Mar 2011 11:50:55 +0100 From: Borislav Petkov To: Ingo Molnar Cc: Eric Dumazet , Andi Kleen , Linus Torvalds , Jack Steiner , Jan Beulich , Borislav Petkov , Peter Zijlstra , Nick Piggin , "x86@kernel.org" , Thomas Gleixner , Andrew Morton , Ingo Molnar , "tee@sgi.com" , Nikanth Karthikesan , "linux-kernel@vger.kernel.org" , "H. Peter Anvin" , Robert Richter Subject: Re: [PATCH RFC] x86: avoid atomic operation in test_and_set_bit_lock if possible Message-ID: <20110325105055.GA7281@aftab> References: <1300999682.2714.23.camel@edumazet-laptop> <20110324205422.GB2393@elte.hu> <1301000557.2714.33.camel@edumazet-laptop> <20110324235654.GM21838@one.firstfloor.org> <1301032040.2714.569.camel@edumazet-laptop> <20110325093228.GB13640@elte.hu> <1301046298.3268.4.camel@edumazet-laptop> <20110325095931.GA31903@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110325095931.GA31903@elte.hu> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 29 On Fri, Mar 25, 2011 at 05:59:31AM -0400, Ingo Molnar wrote: > > [...] but you probably need to make a full pass to make sure we dont have a > > MSR failure -this should return false in this case. > > Wanted to keep this patch simple - we are not really hitting MSR > failure cases in practice, and by getting the message the user is at > least warned that *something* is amiss. AFAIR, Robert was telling me couple of months ago about some braindead BIOSes doing power management by using at least one perf counter. A radical approach like that might interfere with that BIOS since it will try to reprogram the counter continuously and f*ck up OS PMU use. Anyway, adding Robert for clarification. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach General Managers: Alberto Bozzo, Andrew Bowd Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/