Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1729236imm; Sun, 27 May 2018 14:38:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRXwJk944fKEHTH2Z97YQ8r6hby7ih/53TtVl4mTxQZHDrX3W+70sxUGzVyipCpQ8iRNAg X-Received: by 2002:a62:3a94:: with SMTP id v20-v6mr11072408pfj.90.1527457088411; Sun, 27 May 2018 14:38:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527457088; cv=none; d=google.com; s=arc-20160816; b=F7u7xRq/CtU7NbtwyjzhhawTQjevKJhlSF2EAokCI/laQjDEv2A5IGPHaSADCWc18D srTdG1e3tUYjM5cj4P4G1bW9Z7gPEhGEJfZqjmZmhg32TrbYcPOaUqpDEFQUUlSAc0YC a/qjMgZPNZDhGNumXh8u7OR6dqKbGLuaX5DXCjH29WtWLHd4Izb3MznAVRm1lyQHC6Z/ 9zyo90YvhmYCdCcKU8HYxX7L/qNV5bDSoXxfcvvX8PxrygQd/GgdVFL2dhIZWpn3OGLK tkGLhuI0iXuePyLgZhEfyl90VnwFqTLzGGyjQ+9BLmhrVn67Lqtv4ngRgHPlJmchdq0z I9EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=JT2vhMFqxhFvAPtvk+WWAz5IQI/sgdgMJ0zxzZWhCNc=; b=klAncJq6sk+yF4HGAr+L4708chkEvoXuAf/tIS8gVHebQ0yg0cFFy+ITCU9VpAM1Fg LXYb6zaVuenlANEJxR3iT88ynJT75xkrsz57OCuEhYLX7csG0yRjEwLzk8LcOzsyMYlf +rLCIz+dbNMrC0kdB177k5GCGXej95DbhQrtR39hLUY2uNpRIoOmO73Ar+UEQhFxz+A6 39hGR6bDuWV9MzC0TYrF6/jspy5EFBxycs3xnQ5y46WjRMQYWkfrSKQ2KgdxWi1JxWQE GaDzvllbaC/u5RcXV/IRSUyik7c+j0pNxDy2UaiUWh+LQJ9UpSMfRgrjRkAEF0l7d+sT mN0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LWlDpX92; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si23484584pgn.54.2018.05.27.14.37.53; Sun, 27 May 2018 14:38:08 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LWlDpX92; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751693AbeE0Vhm (ORCPT + 99 others); Sun, 27 May 2018 17:37:42 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:32837 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeE0Vhl (ORCPT ); Sun, 27 May 2018 17:37:41 -0400 Received: by mail-wr0-f177.google.com with SMTP id a15-v6so17221291wrm.0 for ; Sun, 27 May 2018 14:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JT2vhMFqxhFvAPtvk+WWAz5IQI/sgdgMJ0zxzZWhCNc=; b=LWlDpX92P8+8Cs0J7aS5YYae/WkQTIZs3kfAyvpPLPq8C+NwonjvQQ3oX4ToXQkKMd rmv+7erztAUyrGvO3gtMabt3hBb+7kMgk5/OZ082XoOCBQWoQK27zU15TVmAdDrcesMu hphivYaKiN4wUUB2lGcQdREnDe8Ug/kSUzMKR2dJx4sLidBxPL7d3r4lnIUj/fM2ycsW b5q9TX03/2SQaCnPrZyrLJSutUPNmZFMw2xnZ8inqe0puV5TgNAT2of2X5d5HgUUQVzr 9mLu5Himni6R4BSlO+BylEfAI3dlJI9fKn9zjTWwL5qF07s+m2O5bjTfLdjO5NzXIsbo KJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JT2vhMFqxhFvAPtvk+WWAz5IQI/sgdgMJ0zxzZWhCNc=; b=YDJKTgsqKemN80PVc48282micY7EpiMVzjC7NKLDQZpDSBjitrLS42FTJbNlwWbluL n5yrRcdxKBPddF6u387B5h8JNlnUo7K/gFnnLFwktauxFNy8s/0UooZe9z9UH11R5I5o FVeU9ztAehWODFyCDDlyAXrrIDhkdfBOjRTRuBX0M11s3NB2zKgwrvHJRKTOWO5yHAi8 4vV+SYJX3MJZ4vm+XiIQxE9LYx0U7g7grx/kbfBv6Jjxu96IqGvMyKiprY2clfK/464a +/CdAgx2UZ9iUNJgCEl2EHBhK/Sa+PD0YZtmi4YvdyTNZk4nCsKa140HqzsNCu0BLAjU aAXQ== X-Gm-Message-State: ALKqPweyI3e2f9dyCiCs0CjOAkKodmD3Oe8GXRgX7QtveQGPFbRYCqq8 igOr4nOgLWP9YctUoEgITODn/pRG70VrX8BiFg== X-Received: by 2002:a19:c90d:: with SMTP id z13-v6mr3872672lff.0.1527457060497; Sun, 27 May 2018 14:37:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:e45c:0:0:0:0:0 with HTTP; Sun, 27 May 2018 14:37:10 -0700 (PDT) In-Reply-To: References: <20180527200707.GC6349@zn.tnic> From: Gabriel C Date: Sun, 27 May 2018 23:37:10 +0200 Message-ID: Subject: Re: smpboot seems to be confused on dual EPYC system To: Borislav Petkov Cc: LKML , X86 ML , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ( sorry I didn't noticed google changed here something , resending to the list as plain text) 2018-05-27 23:22 GMT+02:00 Gabriel C : > > 2018-05-27 22:07 GMT+02:00 Borislav Petkov : >> >> 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? > > > That box runs right now 4.16.11 >> >> >> > 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. > > > 128 CPUs are maximal possible however there is no way to have > 2 CPUs fully populated , in this case 64C and have another 64 hotplug CPUs > > That would mean that's an s4 system while impossible with EPYCs. >> >> >> > [ 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. > > > That says whole topology is set to 128 no ? > Eg to max possible but not to what the system runs now. > >> >> >> > [ 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? >> > > The problem is that being wrong .. > > >[ 0.562171] smpboot: Max logical packages: 4 > > These are max 2 not 4. > > Regards >