Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1680718imm; Sun, 27 May 2018 13:09:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpe0psSzASdj8Eo01mbVaXt4W/3KNJU30e49YIhsdr8oL4sXPCXErQeRgEMYfXfosGjwyBs X-Received: by 2002:a17:902:8a94:: with SMTP id p20-v6mr10249370plo.258.1527451777022; Sun, 27 May 2018 13:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527451776; cv=none; d=google.com; s=arc-20160816; b=Q3i/vAcYQ0vTbDatG8HmkRbZZvJ+FrV/eQ5/ghEOOomNM+PjnQbTXWewKwDJnZAjvb fJxRv0zwwbHgNtDYeJJLIext0VuKIU6yWpRxI2cuglpOY4QqW/TYn3Dq2zVtYTnei4y0 FV9sSJmmoMZI4gOsZyXHwonJ1SqnNuhf4KDoUZYZsCS0wSu8e91yPtil0qoQH4ZFRxz7 KyPWg40dgMCMUuxfAc+xisDUzq/FokJPu0mcDzZlQ5J2Yk1NFKwC3EiryfmFI+QjCpE2 Pv0x1AQQ+MlcymgnSBh+P+FTRchEbyIPiNMbfEyngCrYSt24RZ075Ctj6lCDGUoAtOI5 dVnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=LlSJYrzlzBSrDGG6jOfZtxX+FGM9J5+kMu+qTeYxDQ0=; b=gWf1IM6JXTBbEm138D6NIWND/gzf43M+Ji8ZffXqPYo9Azkm4xcWqk8Oj5nqfVy+tF gtOwWnNIxRZQrFPqzrMCO0wq7qSkMm8Ayor+NxV/nMHPtI4Y7YAuGAAYllFJV5EKcc0n ufULbQh2DkJsC5mZXNDg5YcGodyVyqwSqE6JnAQFbx4bMfvjLm1crpODIH1Gd5Eske90 6uxJ+8u5OEtGpYCfzo7NLtYIkZar1ZDDpeuXXXDZAIVFiRb92L3MkOwIH08ii/2WMTjj IPO0ephnAWjMHpZmJkac7Px8P8azeRL8ikD3Icg1fWgNUr1wt3+fif3oSbyCoU5U8NU1 d/Tg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8-v6si11836249pgq.398.2018.05.27.13.09.22; Sun, 27 May 2018 13:09:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751566AbeE0UHN (ORCPT + 99 others); Sun, 27 May 2018 16:07:13 -0400 Received: from mail.skyhub.de ([5.9.137.197]:44516 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751343AbeE0UHM (ORCPT ); Sun, 27 May 2018 16:07:12 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id d3VBU0loCBQd; Sun, 27 May 2018 22:07:11 +0200 (CEST) Received: from zn.tnic (p200300EC2BCACF00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:cf00:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4AB201EC00DA; Sun, 27 May 2018 22:07:11 +0200 (CEST) Date: Sun, 27 May 2018 22:07:08 +0200 From: Borislav Petkov To: Gabriel C Cc: LKML , X86 ML , Thomas Gleixner Subject: Re: smpboot seems to be confused on dual EPYC system Message-ID: <20180527200707.GC6349@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 20, 2018 at 03:23:32PM +0200, Gabriel C wrote: > Hello, > > I have an H11DSi-NT board with 2 * EPYC 7281 16C/32T CPUs. > > On that box for some reason spmboot things '4' logical packages > are possible. First of all, which kernel? > Max CPUs can be 128 ( 2 * 32C/64T ), however only 2 CPUs are possible > not 4 and therefor there is no way to add other 64 hotplug CPUs. > ( not even sure cpu hotplug will work here ) > > $ dmesg | egrep "smpboot|NR_CPUS|CPUs" > [ 0.000000] smpboot: Allowing 128 CPUs, 64 hotplug CPUs Your BIOS is made to support 32-Core CPUs too. > [ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:128 > nr_cpu_ids:128 nr_node_ids:8 > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=128, Nodes=8 > [ 0.000000] RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=128. > [ 0.037000] smpboot: CPU0: AMD EPYC 7281 16-Core Processor (family: > 0x17, model: 0x1, stepping: 0x2) That says 2 * 16C * 2T = 64T. > [ 0.048005] smp: Bringing up secondary CPUs ... > [ 0.055042] .... node #0, CPUs: #1 #2 #3 > [ 0.079029] .... node #1, CPUs: #4 #5 #6 #7 > [ 0.111049] .... node #2, CPUs: #8 #9 #10 #11 > [ 0.143050] .... node #3, CPUs: #12 #13 #14 #15 > [ 0.175031] .... node #4, CPUs: #16 #17 #18 #19 > [ 0.217031] .... node #5, CPUs: #20 #21 #22 #23 > [ 0.249062] .... node #6, CPUs: #24 #25 #26 #27 > [ 0.281058] .... node #7, CPUs: #28 #29 #30 #31 > [ 0.313028] .... node #0, CPUs: #32 #33 #34 #35 > [ 0.345028] .... node #1, CPUs: #36 #37 #38 #39 > [ 0.377046] .... node #2, CPUs: #40 #41 #42 #43 > [ 0.409043] .... node #3, CPUs: #44 #45 #46 #47 > [ 0.441028] .... node #4, CPUs: #48 #49 #50 #51 > [ 0.473029] .... node #5, CPUs: #52 #53 #54 #55 > [ 0.505060] .... node #6, CPUs: #56 #57 #58 #59 > [ 0.537052] .... node #7, CPUs: #60 #61 #62 #63 > [ 0.562171] smp: Brought up 8 nodes, 64 CPUs > [ 0.562171] smpboot: Max logical packages: 4 > [ 0.562171] smpboot: Total of 64 processors activated (268089.53 BogoMIPS) You have 64 logical CPUs. So what is the problem? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.