From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423537AbcBQV6A (ORCPT ); Wed, 17 Feb 2016 16:58:00 -0500 Received: from www.linutronix.de ([62.245.132.108]:46134 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030252AbcBQV56 (ORCPT ); Wed, 17 Feb 2016 16:57:58 -0500 Date: Wed, 17 Feb 2016 22:56:42 +0100 (CET) From: Thomas Gleixner To: Andi Kleen cc: Stephane Eranian , LKML , Peter Zijlstra , Ingo Molnar , Borislav Petkov , Harish Chegondi , Kan Liang , Andi Kleen Subject: Re: [patch 07/11] x86/perf/uncore: Track packages not per cpu data In-Reply-To: <878u2j9gjr.fsf@tassilo.jf.intel.com> Message-ID: References: <20160217132903.767990400@linutronix.de> <20160217133932.279611021@linutronix.de> <878u2j9gjr.fsf@tassilo.jf.intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Feb 2016, Andi Kleen wrote: > Stephane Eranian writes: > > >> > > Let's assume you have a system with 48 cpus with HT on, then > > you have 2 processor sockets, which is correct. But then you further > > assume that topology_physical_package_id() will return 0 or 1 in this case. > > In other words, that physical id are always assigned from 0 to N in a contiguous > > manner. > > > > Do we know for sure that this is always the case for all Intel systems > > and that no > > weird BIOS is assigning random numbers for phys_proc_id? > > I don't believe that is a safe assumption. Do you have any data to back that up or is that just "believe" ? Thanks, tglx