From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932331AbcHKNrF (ORCPT ); Thu, 11 Aug 2016 09:47:05 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:42120 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932162AbcHKNrC (ORCPT ); Thu, 11 Aug 2016 09:47:02 -0400 Date: Thu, 11 Aug 2016 15:46:51 +0200 From: Peter Zijlstra To: Jiri Olsa Cc: Thomas Gleixner , Andi Kleen , linux-kernel@vger.kernel.org, Andi Kleen , x86@kernel.org, Ingo Molnar , Frank Ramsay , Prarit Bhargava Subject: Re: [PATCH] x86/smp: Fix __max_logical_packages value setup Message-ID: <20160811134651.GW30192@twins.programming.kicks-ass.net> References: <20160803162358.GA10890@krava> <20160810135417.GP30192@twins.programming.kicks-ass.net> <20160810140033.GA23798@krava> <20160810141538.GA28551@krava> <20160810155205.GR30192@twins.programming.kicks-ass.net> <20160810161417.GA11369@krava> <20160811124839.GQ6879@twins.programming.kicks-ass.net> <20160811130521.GA22741@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160811130521.GA22741@krava> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 11, 2016 at 03:05:21PM +0200, Jiri Olsa wrote: > hum, so we either need some acpi solution to get number of all > sockets or This.. So the problem here is that the BIOS completely screws us over. It wrecks the ACPI-ID table with that option to limit the number of CPUs exposed to the OS (note that it didn't need to do that, it could have enumerated them as empty, instead of not there at all) while keeping the CPUID of the CPUs as reporting they have many (12? was it) cores. This results in inconsistent state, and we're left with nothing useful. > fix the uncore code to initialize pmu boxes on cpu hotplug as well Can't.. it uses the boxes at STARTING time, and we can't do allocs there. Not can we alloc earlier, because we don't know max_packages is going to increase.