From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753576Ab2FLRRP (ORCPT ); Tue, 12 Jun 2012 13:17:15 -0400 Received: from s15943758.onlinehome-server.info ([217.160.130.188]:58354 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751640Ab2FLRRO (ORCPT ); Tue, 12 Jun 2012 13:17:14 -0400 Date: Tue, 12 Jun 2012 19:17:34 +0200 From: Borislav Petkov To: Peter Zijlstra Cc: Stephane Eranian , Robert Richter , Ingo Molnar , linux-kernel@vger.kernel.org, andi@firstfloor.org, mingo@elte.hu, ming.m.lin@intel.com, Andreas Herrmann , Dimitri Sivanich , Dmitry Adamushko Subject: Re: [PATCH] perf/x86: check ucode before disabling PEBS on SandyBridge Message-ID: <20120612171734.GI8404@aftab.osrc.amd.com> References: <1339065932.23343.18.camel@twins> <1339067757.23343.21.camel@twins> <20120608093513.GA22520@gmail.com> <1339149613.23343.52.camel@twins> <1339161972.2507.13.camel@laptop> <20120612170725.GE5046@erda.amd.com> <1339521203.31548.92.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1339521203.31548.92.camel@twins> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2012 at 07:13:23PM +0200, Peter Zijlstra wrote: > > That's what I had in my original version. > > Right, but you really need to check all cpus, not just the one you > happen to run on or the boot cpu. Ok, the answer to that question is whether sandybridge can support mixed ucode revisions or not. If not, you only need to check the current cpu you're on. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551