Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9098684ybi; Wed, 10 Jul 2019 04:41:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP0G9bPcxM9ZKa3bncEuF/fT2N0pOTP3icawlaLn9Ng2p1O9pxdOm2/E3JgDMq4J/m3711 X-Received: by 2002:a17:90a:cb87:: with SMTP id a7mr6678345pju.130.1562758918176; Wed, 10 Jul 2019 04:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562758918; cv=none; d=google.com; s=arc-20160816; b=Mp1/tPrub9l5UPQDp/tqnZpuS8QoLkHxT1xEiSPBJXFU0beJ82i056voNS3zBVWXze 4HGNoOOXhGv0y5VYD30838h2jOx37GBgnXS50cCV/WgYeUL7LuBe3+ozQQF+ExgVkZxa 2dGklrkW9vR7D6ynC3slgI+VpKdwlCEBDoIF8AwlIjpzcDafRq88bGwCPE5kqAHTJeCK W2UauCWaAUygo4SPzmL3rSiBwWqASVmk7Repsd41Tx9Rp0/Om0ySMn5W9xcR6Ebcw2L7 46PbTyxQcXbr0CUMegxmb95W+EorESrvGZbZokoweZnGIwKRa6oVmZwjY5zTVtFW+FBp Wy+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Jx6HsvuQSv8bozonrP+qSkcKKSCIG4eAeqX8HPo5Sxs=; b=tIynH4coXHCFiZAbjckDtTsaCs/lNQ4TJaaeK9Tudia5fLUYD7Qcjnnsse/IW8yhOr dBr00y6kRnoroP+30USSFCjtxg1ZF1kJHslXlcdme7gNBfkpiXQ4HHz2br0odQ8R6hq2 NZb1RB4Q74ThnaK1sxY3aP6H+UH/hJB1vWHTw59qLAQSN/V588+EDsgHeyNzk+rMqiR7 wj0xjT0opxYQJklKNYbcyuAPyQm9ljrfWsyZhvK6so77aKRHziUIQEMvlxL8pZYom7mq Av8/Or4bFEoJJbOLu73+b0Cli9bFFxW5TC+Vw9Cy6WZXfWIMZrpaqC9qhUMJTlU3JB6K gRAw== 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 a8si1929852ple.243.2019.07.10.04.41.42; Wed, 10 Jul 2019 04:41:58 -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 S1726708AbfGJLkD (ORCPT + 99 others); Wed, 10 Jul 2019 07:40:03 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47484 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbfGJLkD (ORCPT ); Wed, 10 Jul 2019 07:40:03 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hlAw9-0001Fg-M3; Wed, 10 Jul 2019 13:39:01 +0200 Date: Wed, 10 Jul 2019 13:39:00 +0200 (CEST) From: Thomas Gleixner To: Pingfan Liu cc: Andy Lutomirski , x86@kernel.org, Michal Hocko , Dave Hansen , Mike Rapoport , Tony Luck , Andy Lutomirski , Peter Zijlstra , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Andrew Morton , Vlastimil Babka , Oscar Salvador , Pavel Tatashin , Mel Gorman , Benjamin Herrenschmidt , Michael Ellerman , Stephen Rothwell , Qian Cai , Barret Rhoden , Bjorn Helgaas , David Rientjes , linux-mm@kvack.org, LKML Subject: Re: [PATCH 2/2] x86/numa: instance all parsed numa node In-Reply-To: Message-ID: References: <1562300143-11671-1-git-send-email-kernelfans@gmail.com> <1562300143-11671-2-git-send-email-kernelfans@gmail.com> <4AF3459B-28F2-425F-8E4B-40311DEF30C6@amacapital.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1204690592-1562758741=:1758" 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1204690592-1562758741=:1758 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Wed, 10 Jul 2019, Pingfan Liu wrote: > On Tue, Jul 9, 2019 at 9:34 PM Andy Lutomirski wrote: > > > > Go for it. I’m not familiar enough with the SMP boot stuff that I would > > be able to do it any faster than you. I’ll gladly help review it. > > I had sent out a patch to fix maxcpus "[PATCH] smp: force all cpu to > boot once under maxcpus option" > > But for the case of nrcpus, I think things will not be so easy due to > percpu area, and I think it may take a quite different way. No. It's the same problem and it's broken in the same way as maxcpus on x86. So nr_cpus on x86 has to do: if (nr_cpus < num_present_cpus()) { pr_info(....); max_cpus = nr_cpus; nr_cpus = num_present_cpus(); } or something like that. Stop making extra cases which are pointlessly different. X86 boot is a trainwreck in hardware, so no magic software can fix it. All you can do is pray that it reaches the point where all present CPUs have been at least minimaly initialized. Thanks, tglx --8323329-1204690592-1562758741=:1758--