From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759171AbcCVLWe (ORCPT ); Tue, 22 Mar 2016 07:22:34 -0400 Received: from mail.skyhub.de ([78.46.96.112]:57873 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758690AbcCVLWW (ORCPT ); Tue, 22 Mar 2016 07:22:22 -0400 Date: Tue, 22 Mar 2016 12:22:18 +0100 From: Borislav Petkov To: Sherry Hurwitz Cc: Huang Rui , Peter Zijlstra , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, aherrmann@suse.com, jencce.kernel@gmail.com, Gang Long Subject: Re: [PATCH 2/3] x86/topology: Fix AMD core count Message-ID: <20160322112218.GD3688@pd.tnic> References: <20160318150345.146716865@infradead.org> <20160318150538.551407299@infradead.org> <20160318164101.GG7817@pd.tnic> <20160321030744.GA26269@hr-amur2> <20160321082129.GP6344@twins.programming.kicks-ass.net> <20160321094611.GB26555@hr-amur2> <20160321135734.GE15904@pd.tnic> <56F0FDE7.8010802@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56F0FDE7.8010802@amd.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sherry, On Tue, Mar 22, 2016 at 03:10:15AM -0500, Sherry Hurwitz wrote: > Boris, this documentation will help tremendously. Yeah, I'm collecting more stuff for it. If you feel like something else should be explained there, holler. > In just this line of > code: > > nr_local_cpus = nr_cores * nr_siblings > > we have an Intel HT = AMD core = logical_cpu > and core = AMD compute unit. > > Anybody surprised there was a bug? > > The surprising thing is that running lscpu on a 32 core 2 socket 6300 > Opteron system without > the patches I get the same output as with the patches and it matches Ray's. > I don't see an impact. Yeah, so the logic is closer to an Intel core which can have 1 or more threads and we did set x86_max_cores to the number of Bulldozer cores (each of them in a pair forming a Compute Unit). And that's fine but then we did set smp_num_siblings to 2. In any case, I'm not seeing any issues here too but we wanted for you guys to run those changes too before we apply them. In any case, they will be in 4.6 and you could test tip/master from time to time and scream if there's an issue. Thanks! -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.