From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758602AbcEFSuq (ORCPT ); Fri, 6 May 2016 14:50:46 -0400 Received: from www.linutronix.de ([62.245.132.108]:60387 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758119AbcEFSup (ORCPT ); Fri, 6 May 2016 14:50:45 -0400 Date: Fri, 6 May 2016 20:48:16 +0200 (CEST) From: Thomas Gleixner To: Joseph Salisbury cc: "Peter Zijlstra (Intel)" , Andi Kleen , Andrew Morton , Andy Lutomirski , Arnaldo Carvalho de Melo , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Harish Chegondi , Jacob Pan , Jiri Olsa , Kan Liang , Linus Torvalds , "Luis R. Rodriguez" , Peter Zijlstra , Stephane Eranian , Toshi Kani , Vince Weaver , LKML , yingying.zhao@intel.com, "Zhang, Xiong Y" , 1573231@bugs.launchpad.net, 1397880@bugs.launchpad.net, Ingo Molnar , x86@kernel.org, Andy Shevchenko , Chen Yucong , Laura Abbott , Boris Ostrovsky , David Vrabel Subject: Re: [v4.6-rc1 Regression] x86/topology: Create logical package id In-Reply-To: <572CDF53.7040301@canonical.com> Message-ID: References: <572CDF53.7040301@canonical.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 Fri, 6 May 2016, Joseph Salisbury wrote: > A kernel bug report was opened against Ubuntu [0]. After a kernel > bisect, it was found that reverting the following commit resolved this bug: > > commit 1f12e32f4cd5243ae46d8b933181be0d022c6793 > Author: Thomas Gleixner > Date: Mon Feb 22 22:19:15 2016 +0000 > > x86/topology: Create logical package id > > To build successfully with this commit reverted, I also had to revert > commits: e7ee3e8,2d4de83,87f01cc and 33c3cc7. > > The regression was introduced as of v4.6-rc1. > > I was hoping to get your feedback, since you are the patch author. Do > you think gathering any additional data will help diagnose this issue, > or would it be best to submit a revert request? Yuck. That dies with a divide error. And that looks like XEN is supplying crap data in the CPUID. Does the patch below cure the issue? Thanks, tglx 8<--------------- --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -332,6 +332,11 @@ static void __init smp_init_package_map( * primary cores. */ ncpus = boot_cpu_data.x86_max_cores; + if (!ncpus) { + pr_warn("x86_max_cores == zero !?!?"); + ncpus = 1; + } + __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus); /*