Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6378657rwl; Wed, 22 Mar 2023 09:49:25 -0700 (PDT) X-Google-Smtp-Source: AK7set94VZYzSLvWxy50CqnImFPLf+pHP1IwcUVteVUZ0LXPXb4Wt6R6c5tRE/FKpteg5NCErQ0S X-Received: by 2002:a17:907:762e:b0:925:a734:a012 with SMTP id jy14-20020a170907762e00b00925a734a012mr7068356ejc.12.1679503765449; Wed, 22 Mar 2023 09:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679503765; cv=none; d=google.com; s=arc-20160816; b=zfwQrNvwJQLRbnKEpM/XyfEBl8cf9vS40N9ITsYY0o7U2o1Sj41Fuy1v6VTWdoyA3F jL+/OubLZw4ypypX+mMf0U/sv5CQGLZ7W+8aJYqnfJFeoK1trILZXFRUBbIFMdFWLkhH SNRYZq14arGvdI49odzubi4dYzuEmlfIJ3JLbWOzoUlDuwCHD5YsnJhrPrR4bwSgeKpx mfmvOE7HCxPMugwKFhfXWX6JWEeFm9D+uHi2fxUI/JBrXkEUoP8YKx1rwiinvzXCdm6A oPEmc79zDWWIZuCPi13Cr+TvaPaNf9IBbBAH8Pim/MKbXQUWF5BqCjvls2RaujEeNwyX fDIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VQfC6WqHP5WXJW0gJKwhfRzMi6QjIB6591UcdGfmLSA=; b=i7q6WRVEsqXmIsGSISYB86cqEc8PCsiFURdcLwtFX+Z73NSKfIzgeinF9y0VaWXvri u6fCRdWwR0k4ClewtHNYJZ+h/mJM20vGRHKrJW/sxEMPAaUEEwXUCk+qfUoiHVFbaXi2 Iq0z6z3o5Tg+kq1DRLpHYBeEpFXGpw+lBrESQ3mz+e+187eQ5f8lywmJ2tfFfbRatUGS 8nZU2s5LRBy8ggshxU/TA0kyZWbZYK5GiJOUAhYojJl4h0Z6uZcxk7rOlCauJy2FdN+k NwcO28WHhrassteV13dFSOL/85KVwRFlFg61Kw3+NO8bnjaoWkhvzPVVwZA0C5AcrtD3 uXAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SVZTD+Oh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa6-20020a170907868600b009333d508e9asi14153292ejc.82.2023.03.22.09.49.01; Wed, 22 Mar 2023 09:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SVZTD+Oh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbjCVQrn (ORCPT + 99 others); Wed, 22 Mar 2023 12:47:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbjCVQrl (ORCPT ); Wed, 22 Mar 2023 12:47:41 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C61637EE; Wed, 22 Mar 2023 09:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VQfC6WqHP5WXJW0gJKwhfRzMi6QjIB6591UcdGfmLSA=; b=SVZTD+OhIF84cg1RaHVxGlPIKw pLdTvsqcm5tXrqRrhlBKMxu0ynPvfPkCAXPiOMlAxAJZgyxgoIqDFqTrEtygrujiqzp/evl4LKCUv Yk7/+oIGzCDS2GJwTT7v+JtOoHp8pDPGJqBVLaDBXlu9nT2HCxVEZS2Ulp6d7PvazPOF1bLUOcIY5 +Pp+C70bkARgrVO5IR4PnHWJfUHzW7I7mbjA+RkOjKJ5SY89SCEZ/cHYNGGuB0OTZ1sHAdUHRXB2S jow/+gmThtTHtmjA8K45BH5MshwnltnvbWNuIa0BbcmQXV2HO5yRTuk4aGgdzMWj+/5QIvgh44Va+ i5fef7AA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pf1bq-003Ad1-LI; Wed, 22 Mar 2023 16:46:46 +0000 Date: Wed, 22 Mar 2023 16:46:46 +0000 From: Matthew Wilcox To: Dave Hansen Cc: Geert Uytterhoeven , Dave Hansen , Arnd Bergmann , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, John Paul Adrian Glaubitz , linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Randy Dunlap Subject: Re: [PATCH] mm/slab: Fix undefined init_cache_node_node() for NUMA and !SMP Message-ID: References: <67261c513706241d479b8b4cf46eb4e6fb0417ba.1679387262.git.geert+renesas@glider.be> <6320abf6-0898-361b-d5f6-bcc58306f55c@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6320abf6-0898-361b-d5f6-bcc58306f55c@intel.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 22, 2023 at 09:16:55AM -0700, Dave Hansen wrote: > On 3/21/23 09:40, Matthew Wilcox wrote: > > On Tue, Mar 21, 2023 at 09:30:59AM +0100, Geert Uytterhoeven wrote: > >> -#if (defined(CONFIG_NUMA) && defined(CONFIG_MEMORY_HOTPLUG)) || defined(CONFIG_SMP) > >> +#if defined(CONFIG_NUMA) || defined(CONFIG_SMP) > > I'm amused by the thought of CONFIG_NUMA without CONFIG_SMP. > > Is it possible to have one node with memory and a single CPU, then > > another node with memory and no CPU? > > It's _possible_ for sure, just unlikely. The most likely place these > days is probably a teensy tiny VM that just happens to have some > performance-differentiated memory exposed to it for some reason. Maybe > it's got a slice of slow PMEM or fast High-Bandwidth memory for whatever > reason. Right, you can construct such a system, but do we support the CONFIG options of NUMA enabled and SMP disabled? It seems so niche that we shouldn't be spending time testing that combination.