Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp687258ybg; Wed, 10 Jun 2020 10:56:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAvaN8SR5CqdDLpPcvyxTGNWBVE6YLIZaode0jdTpvlSvaNgx7Eu5vG8MT4nU6YGmS4gvx X-Received: by 2002:a05:6402:54d:: with SMTP id i13mr3460973edx.330.1591811817239; Wed, 10 Jun 2020 10:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591811817; cv=none; d=google.com; s=arc-20160816; b=fdVW1irajUaEu4dbjeRPxey22B+YFkxRy68jyBh2ZEyLamZoMT75lxyDpA6JKL6aTl jGsKKlYRljsEtyzjjiF2/32HjKMaa7buhBhWcMQXV/RKJFlfmzZoSFgXpa9cgq+9u4US I+VEYh1zc3H4JSJqwBqsoFcSvsQYYyK9uq57J1oT+Eq0M7vuNPND4ZXg0zLUxM3/lHNB PfCJ5ga3ZsSJFD9D2FUA2eV7YoOkC5Voxmo1HGSgeYXTS4pqCCxoTfBPkyZqp47tGhqv S1II2u4pKho1fCJe7bdajEUdZpD3jn/NfnyIq4Muyjp5P6zFfbg69e4Vp/w9jiwadMQH Btsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lro6qhLL0P88qN7ekMirUkTClLvqbIrZ+9sE8Oe/PY4=; b=HWPeqhkvCRfANjiUQRRO50PElBKCIUqCFKIvOcH8GYAYxjfmjJAqgUWOKMaxa6BS4C 6rzNtkl+hGGGgtLFSN+2rX++AJR/C6WQJShD4bIkCybghEo/gfnNqmMFhyvFUq70u1lw gFuoZ2MKbbQZiNsNv2ea2/jeWGDX8tziN0M3fW/kJ0WlIhZh2wDGLx/UbHRT4qFYIx+S emssWB5cKkIOfjb6qITCwqz3JXxuk469WW3bqyZoSL2k9PnWGmw56HlTprtCMvYPe4Wf PGtCNWOqLFoguMhLO3bwiL9wTjvyV/Jbov/RriNKVKynVzFxiGHfGM5nzbkDKpOaeLPm I5yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b="cg6ZckV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si162459edt.501.2020.06.10.10.56.33; Wed, 10 Jun 2020 10:56:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b="cg6ZckV/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbgFJMH5 (ORCPT + 99 others); Wed, 10 Jun 2020 08:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728549AbgFJMH4 (ORCPT ); Wed, 10 Jun 2020 08:07:56 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78169C03E96F for ; Wed, 10 Jun 2020 05:07:56 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id g7so860184qvx.11 for ; Wed, 10 Jun 2020 05:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lro6qhLL0P88qN7ekMirUkTClLvqbIrZ+9sE8Oe/PY4=; b=cg6ZckV/Z2EIx+t+s118UZQfhcDtNQtRVo5hRWK0390A7cOKKmZ9afuS/hLhNpkzEA J/u3IzApEiFX3FulGKsCxqJGtjSMDUFKXn7nbMtI2kg2s2DrnfEfBniXGCnxclIdvad/ oXyXigpG4sSHfnEy5EM1w/TidSnhfxDxA+gUtMZhxfFjzNloH7tj0FixiT3XxhL7wXqI EE6ZWSEFqSdEmMEPQ7KNvWdTqmlX/uiT0QfCNn3DjpqH+k96HTJ1UAGKAZK+gnHms6xU j+WFwrDSNlXzokpSV4c/bcmJBeHFSM8El1vRd0NI824WjqOInMQhH02riUvo4+Aj+wXo YGfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lro6qhLL0P88qN7ekMirUkTClLvqbIrZ+9sE8Oe/PY4=; b=pzGLdf2TRCi2ILg2ohMiOn0wHIdTNPGRVlA62Hyi2XmlMb4fbAs5opKeBbMBbUr0ni XRxuOSq6+PquTO9CoImWq5DbbCx+w6gtASSNw2paV//ZSrzvM5c09pKlDAFWoiphIsYw s/MBLRdH6t1egi7cotITYIYxy1gdXLJoadDG766ITee4errn9SNwHu9+3nOPT8YsHjL+ 7q+g+xHEeDGuVEAmkjwn4BNJdRAuZAz8mXdKdaiKPTl4e4ffKEt85H6s/+VdY0DMnm4B 7ScLNTeVihBi3UP3VmWiKRFKlLba0as0My4azeHSq3QGo5xEsgJcT6vO2MqhDXkfiodd kmLg== X-Gm-Message-State: AOAM531KOz5AvrfkXyVm4iNFOeAVTlRQ54GWSzymg2plW/IWCtHLE5b7 iLcSnQrkmFOlph7nMMGanTGDyQ== X-Received: by 2002:ad4:552b:: with SMTP id ba11mr1727278qvb.145.1591790875533; Wed, 10 Jun 2020 05:07:55 -0700 (PDT) Received: from lca.pw (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id l19sm12236941qtq.13.2020.06.10.05.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 05:07:54 -0700 (PDT) Date: Wed, 10 Jun 2020 08:07:48 -0400 From: Qian Cai To: Heiko Carstens Cc: gor@linux.ibm.com, borntraeger@de.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390: set NODES_SHIFT=0 when NUMA=n Message-ID: <20200610120748.GA954@lca.pw> References: <20200610014501.4268-1-cai@lca.pw> <20200610084553.GB4894@osiris> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610084553.GB4894@osiris> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 10:45:53AM +0200, Heiko Carstens wrote: > On Tue, Jun 09, 2020 at 09:45:01PM -0400, Qian Cai wrote: > > When NUMA=n and nr_node_ids=2, in apply_wqattrs_prepare(), it has, > > > > for_each_node(node) { > > if (wq_calc_node_cpumask(... > > > > where it will trigger a booting warning, > > > > WARNING: workqueue cpumask: online intersect > possible intersect > > > > because it found 2 nodes and wq_numa_possible_cpumask[1] is an empty > > cpumask. NUMA=y has no such problem because node_possible_map will be > > initialized properly containing only node 0. Fix it by setting > > NODES_SHIFT=0 when NUMA=n. > > > > Fixes: 701dc81e7412 ("s390/mm: remove fake numa support") > > Signed-off-by: Qian Cai > > --- > > arch/s390/Kconfig | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > Thanks! However I committed a different solution. Hope you don't mind: No problem with that at all. > > From dd3f1f08f2317768b35b2df3ff8285185df7e195 Mon Sep 17 00:00:00 2001 > From: Heiko Carstens > Date: Wed, 10 Jun 2020 10:36:05 +0200 > Subject: [PATCH] s390/numa: let NODES_SHIFT depend on NEED_MULTIPLE_NODES > > Qian Cai reported: > --- > When NUMA=n and nr_node_ids=2, in apply_wqattrs_prepare(), it has, > > for_each_node(node) { > if (wq_calc_node_cpumask(... > > where it will trigger a booting warning, > > WARNING: workqueue cpumask: online intersect > possible intersect > > because it found 2 nodes and wq_numa_possible_cpumask[1] is an empty > cpumask. > --- > > Let NODES_SHIFT depend on NEED_MULTIPLE_NODES like it is done > on other architectures in order to fix this. > > Fixes: 701dc81e7412 ("s390/mm: remove fake numa support") > Reported-by: Qian Cai > Signed-off-by: Heiko Carstens > --- > arch/s390/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig > index 2167bce993ff..ae01be202204 100644 > --- a/arch/s390/Kconfig > +++ b/arch/s390/Kconfig > @@ -462,6 +462,7 @@ config NUMA > > config NODES_SHIFT > int > + depends on NEED_MULTIPLE_NODES > default "1" > > config SCHED_SMT > -- > 2.17.1 >