Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp576197pxb; Thu, 21 Jan 2021 14:26:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXunFZvuP5SjFYdYOzo7qRpibfSd5CzUfMkRa2iLOnbDBeWg2VOhnD7CgedVB/GWY3A4xr X-Received: by 2002:a17:907:9710:: with SMTP id jg16mr1101510ejc.286.1611267960610; Thu, 21 Jan 2021 14:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611267960; cv=none; d=google.com; s=arc-20160816; b=G1X8p7eFzPgIo1qp513KnEsz40EnjsC3FD30qFOrPRgl1YEI4LmYN53reYHtHL7gUM gzgp4LPoaS7XscZ1iKY/LQfJOhRc/3+6FgLMyHj8kuYlFCzvUZFbQh51q2RiOkkk9cT1 6ulUJFSMZwE2PyyBMVkNhTy9vGgGuDLKP+VUe9AICbBEvGXQJ1Ccm8Eba/rTCOuFO/rW 4k2mdkeJBWSJnJS6urDvuuY08qcqkTe0h2P4D5dauyrvSxwtFyPQKixXGo1CPOaocCMk oHWRQuCsxlFMOz+UqTH0t5m0H6Kjl/S+AQgL0CsVc/Whgz9L4vjmf9ZpiqMyOhEaMu1F LpJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=CIWePJqAWtf/J7BZWyurIxFSA+GfrPk8wBwsWw6ANzs=; b=040i7apYNcMAv7KA6v0XCqS+7ImfvWd7ZYR7dI7Eo33klgGsMynwFesqgUdGDA1Esn hWuWkTE6mDwrxuHISn+NMv+WGX12u07sc0qmPPx/6pXqqV6agqU+P68la5pBnhfoBrsw u4h7MJ6sq3saxjbGxudyzoJ8WPlDEJPR/FbOdcJa/OI5mESydNkw+ERx1XW8BMpgfAZo 6jMwlNX2Yb9Qz5/Yq/ScY8C8mrQZ9+vQ4Wb828zt1wFi0WdBrV5ZkvJOec/8WVlJ7We0 jTHGelggPdItwJMZAiMMdNz+PqmjwFjtYw3HQSWPd3TjCcjww1P+IK1dqHBlRzH5ustJ Xong== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K8z1EvX6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i26si2798554edx.182.2021.01.21.14.25.37; Thu, 21 Jan 2021 14:26:00 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=K8z1EvX6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732808AbhAUQ6t (ORCPT + 99 others); Thu, 21 Jan 2021 11:58:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:37820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733067AbhAUQ6G (ORCPT ); Thu, 21 Jan 2021 11:58:06 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 712B923A54; Thu, 21 Jan 2021 16:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611248245; bh=TH0uv+xJ3OXI8rF8g5eWJpI12gPgdit8dO28ZyUTVhQ=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=K8z1EvX6ZySbMsAzaAQlw/2sQYDnGb7eO7baOFXvejYx93Wpq8gpVjxDQcvNdn2jV YeBqIptoPnInDMKkMzMlacSAW0fAVnati8FLzBqxlLzA7eq9p8cxGkHSBfwZnwR3aD NygyNoTsC2xf9v2BRrehyTmyTNVmRQV4JtiAcyhNj3pWiawgK3EMC7rBOp50udK6va cDG9L7dFkbhUEtAwQuR8+VQaJq4CcgqCyirqww2D6idZ8Fr+HUhIV/REfWsQmWKd4I G5ALPRkRogkxBJWLRlBs2Vlh/DlQjC/oEA/hpqHCUt06lqDailL6Y8pa1JasLzZnYc UNx3TLQLSCuPw== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 14F39352268F; Thu, 21 Jan 2021 08:57:25 -0800 (PST) Date: Thu, 21 Jan 2021 08:57:25 -0800 From: "Paul E. McKenney" To: Yury Norov Cc: Linux Kernel Mailing List , Peter Zijlstra , Paul Gortmaker , kernel-team@fb.com, Andrew Morton Subject: Re: [PATCH RFC cpumask] Allow "all", "none", and "last" in cpumask strings Message-ID: <20210121165725.GP2743@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20210106004850.GA11682@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 11:11:48PM -0800, Yury Norov wrote: > On Wed, Jan 6, 2021 at 12:49 AM Yury Norov wrote: > > > > On Tue, Jan 5, 2021 at 4:48 PM Paul E. McKenney wrote: > > > > > > Hello! > > > > > > This series allows "all", "none", and "last" to be used in cpumask > > > strings. This allows these strings to be less dependent on the underlying > > > system. For example, currently a string specifying all but the first > > > CPU must be "1-7" on an eight-CPU system and "1-15" on a 16-CPU system. > > > With this series, the single string "1-last" can be used regardless of the > > > number of CPUs (at least assuming that each system has at least one CPU). > > > > 'none' may be implemented as an empty string or string with separators only, > > but I have nothing against explicit 'none'. See other comments inline. > > > > Thanks, > > Yury. > > > > > 1. Un-inline cpulist_parse for SMP; prepare for ascii helpers, > > > courtesy of Paul Gortmaker. > > > > > > 2. Make "all" alias global and not just RCU, courtesy of Paul > > > Gortmaker. > > > > > > 3. Add a "none" alias to complement "all", courtesy of Paul > > > Gortmaker. > > > > > > 4. Add "last" alias for cpu list specifications, courtesy of Paul > > > Gortmaker. > > > > > > 5. Use "all" and "last" in "nohz_full" and "rcu_nocbs". > > > > > > Thanx, Paul > > Hi Paul, > > Today I found this series in linux-next despite downsides discovered during > the review. This series introduces absolutely unneeded cap on the number of > cpus in the system (9999), and also adds unsafe and non-optimal code. > > In addition to that, I observe this warning on powerpc: > CC lib/cpumask.o > lib/cpumask.c: In function ‘cpulist_parse’: > lib/cpumask.c:222:17: warning: cast from pointer to integer of > different size [-Wpointer-to-int-cast] > 222 | memblock_free((phys_addr_t)cpulist, len); > | ^ > > Can you please revert this series unless all the problems will be fixed? Thank you for your further review and comments! I had been keeping the old series as a placeholder for its anticipated replacement, but given the compiler warning you note above and given that it is getting uncomfortably close to the time when I send my pull request, I will remove it from the -rcu rcu/next branch sourced by -next. Thanx, Paul