From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870AbcCRHwa (ORCPT ); Fri, 18 Mar 2016 03:52:30 -0400 Received: from [198.137.202.9] ([198.137.202.9]:60868 "EHLO bombadil.infradead.org" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751268AbcCRHwX (ORCPT ); Fri, 18 Mar 2016 03:52:23 -0400 Date: Fri, 18 Mar 2016 08:51:15 +0100 From: Peter Zijlstra To: Mike Galbraith Cc: Xiong Zhou , Thomas Gleixner , "linux-kernel@vger.kernel.org" , Ingo Molnar , Borislav Petkov , Andreas Herrmann Subject: Re: 4.5.0+ panic when setup loop device Message-ID: <20160318075115.GD6344@twins.programming.kicks-ass.net> References: <20160317095220.GO6344@twins.programming.kicks-ass.net> <1458274314.3859.25.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458274314.3859.25.camel@gmail.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 18, 2016 at 05:11:54AM +0100, Mike Galbraith wrote: > On Thu, 2016-03-17 at 10:52 +0100, Peter Zijlstra wrote: > > > Andreas; Borislav said to Cc you since you wrote all this. > > The issue is that Linux assumes: > > > > > nr_logical_cpus = nr_cores * nr_siblings > > It also seems to now assume that if SMT is possible, it's enabled. Urgh.. What I think, with my pre wakeup brain, happens is that the CPUID topology muck still reports 2 siblings (it tends to do that). But the BIOS only reports APIC-IDs for all your cores, so our nr_cpu_ids is reduced, while the nr_siblings count it not. And them *boom*. This is the same old problem that is nearly impossible to tell if HT is enabled or not -- complete and utter trainwreck :/ I need to go make wake-up-juice and ponder wth to do about this.