From owner-freebsd-current@FreeBSD.ORG Sat May 24 02:07:06 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3DBE19C3 for ; Sat, 24 May 2014 02:07:06 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CCA332C40 for ; Sat, 24 May 2014 02:07:05 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id l18so5485028wgh.23 for ; Fri, 23 May 2014 19:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=blPxiNsNClc9+OWi7jj/q7zSaEF8RvTqklWlKyZ1ygQ=; b=OP9cLLBu2zvgPs/Ey4M7+XRF1wqNtDE0YHZosBNCBMa6AKIbniRCkNsbRA/VnUVqZg 0j5jsvY6GkFM2H+OUUU8Zsph4rEwNlVUuRO7BCIXpkCIKdBOFv0/oJIMAnQS6M/mxGbU mOS9s0EG4CL2/PWGLAsTq27XWJK2K/CxfTdsS5FwtrHjTPY94PaOCikERDt++7pwRRfq OTVpo+8qPPZRS0b0O+WOx12SQdm8bjim5Yzh1b6qW86lvrzbBnZa6JDbJNpC68Q7TZAR LJ+JRT0wQiAf31PaYAlLj0yKfzeZnzcIC04KmAp/534RslOkpeb2V74vEIj7+ppIJVIb yC8Q== MIME-Version: 1.0 X-Received: by 10.180.14.72 with SMTP id n8mr6944524wic.53.1400897223795; Fri, 23 May 2014 19:07:03 -0700 (PDT) Sender: asomers@gmail.com Received: by 10.194.168.130 with HTTP; Fri, 23 May 2014 19:07:03 -0700 (PDT) In-Reply-To: <20140524014713.GF13462@carrick-users.bishnet.net> References: <20140524014713.GF13462@carrick-users.bishnet.net> Date: Fri, 23 May 2014 20:07:03 -0600 X-Google-Sender-Auth: rCJ1gxsQ-V-HDP458vNFz2ZZKe8 Message-ID: Subject: Re: Processor cores not properly detected/activated? From: Alan Somers To: Tim Bishop Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2014 02:07:06 -0000 On Fri, May 23, 2014 at 7:47 PM, Tim Bishop wrote: > I have a new quad CPU system containing four of these processors: > > Intel(R) Xeon(R) CPU E7-4830 v2 @ 2.20GHz (2200.05-MHz K8-class CPU) > > I've tried FreeBSD 10.0, stable/10 and head, but all of them only detect > a maximum of 64 "CPUs". There should be 80. Here's the relevant dmesg > output (full output attached): > > FreeBSD/SMP: Multiprocessor System Detected: 64 CPUs > FreeBSD/SMP: 3 package(s) x 10 core(s) x 2 SMT threads > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ... > cpu62 (AP): APIC ID: 98 > cpu63 (AP): APIC ID: 99 > cpu (AP): APIC ID: 100 (disabled) > cpu (AP): APIC ID: 101 (disabled) > cpu (AP): APIC ID: 102 (disabled) > cpu (AP): APIC ID: 103 (disabled) > cpu (AP): APIC ID: 104 (disabled) > cpu (AP): APIC ID: 105 (disabled) > cpu (AP): APIC ID: 112 (disabled) > cpu (AP): APIC ID: 113 (disabled) > cpu (AP): APIC ID: 114 (disabled) > cpu (AP): APIC ID: 115 (disabled) > cpu (AP): APIC ID: 116 (disabled) > cpu (AP): APIC ID: 117 (disabled) > cpu (AP): APIC ID: 118 (disabled) > cpu (AP): APIC ID: 119 (disabled) > cpu (AP): APIC ID: 120 (disabled) > cpu (AP): APIC ID: 121 (disabled) > > Firstly, it should say 4 packages, so I'm not sure why its only has 3. > But then it goes on to detect all the "CPUs", but doesn't enable the > last 16. > > acpidump shows all the "CPUs" as enabled (trimmed output): > > APIC: Length=1090, Revision=1, Checksum=115, > OEMID=DELL, OEM Table ID=PE_SC3, OEM Revision=0x1, > Creator ID=DELL, Creator Revision=0x1 > Local APIC ADDR=0xfee00000 > Flags={PC-AT} > > Type=Local APIC > ACPI CPU=1 > Flags={ENABLED} > APIC ID=0 > > Type=Local APIC > ACPI CPU=2 > Flags={ENABLED} > APIC ID=32 > > ... > > Type=Local APIC > ACPI CPU=79 > Flags={ENABLED} > APIC ID=89 > > Type=Local APIC > ACPI CPU=80 > Flags={ENABLED} > APIC ID=121 > > Finally, I've booted Ubuntu 14.04 (Linux 3.13) and it correctly detects > all 80 "CPUs". > > Can anyone shed any light on what's happening? > > I'm running head at the moment and I'm happy to fiddle around as much as > required to debug it. > > Thanks, > > Tim. > > -- > Tim Bishop > http://www.bishnet.net/tim/ > PGP Key: 0x6C226B37FDF38D55 > Try setting MAXCPU higher. It's defined by default to 64 in, sys/amd64/include/param.h