Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp541rwb; Wed, 10 Aug 2022 03:59:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR5kjp2pUItoNXLv6hfhtp5ZEGTM0hqQwsAuxpnN+TiB081FeZt98+YCothKN9iudGaMEvEJ X-Received: by 2002:a05:6402:3492:b0:43e:9666:ece2 with SMTP id v18-20020a056402349200b0043e9666ece2mr25769452edc.65.1660129159238; Wed, 10 Aug 2022 03:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660129159; cv=none; d=google.com; s=arc-20160816; b=S8LTqdVBMxx6Qt+UO/tjtMkirELlxrcEZp5+Fio/AE6vhB8HE90I8gXo4WNLGqpXby LbloM6IEP1vMuK4T6y/3EYX98A6eKEYeUIe1+LXw8TUwBasF4PTAPbpJAaksUU9jLyUt O55ASdMU08FQr7qq/vms9tw9wuHf+0YcL8Op0Bg+vMkB/tUR5mxnsrqyoD1xGMR2irSQ I43ZgQQQ0SA3euA1R7S3cctFM2v3gL2pbTEJ8vqwGL9lSoNEp5fROxIFC+xP6080P3mN x8eMwiF/ngFLrNRPI4erDxrGkSqp7ELuDbpulzSqMzMerEY3RnEtbW1hMPAP5KdCP5nn B73Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=h1cqY+wWEiIsslD3StW+1HJvfVXqRrzzKS1Ri5MnoCU=; b=yyJjB95cYM2SYw4m/TVrI8pbPHzaa3KYSvlrHjgUer7mUy6U9kVnzuirst2ZHooWpx nCr0GKg8KdRQWlZlph3lkHdYVupKK5KVeWXHcdBushytDP3PfKIXxS73vCjXEiFFuurd J15woQvq42Kt8CwmiPJX6KuUhBBPOm5Snc0mu4dE+kAkLxZrGN/h9CBYyDzzcahJh3r8 AOMG2N4AVvZHxMTmSKtnji4gmKkVzpITF++2Hjuq+pV8vFbibFAoSH2yFlOviC3cy+8T 45LmyhgvZZHAGEjXa5hVX1vw0l8fPicjVq5RVeOBn2fiXyAq6Xn14tuJZWVR55GcUu+D X+Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=EuIdsbqG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht19-20020a170907609300b00730abba3122si4770224ejc.467.2022.08.10.03.58.54; Wed, 10 Aug 2022 03:59:19 -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=@google.com header.s=20210112 header.b=EuIdsbqG; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231559AbiHJKv1 (ORCPT + 99 others); Wed, 10 Aug 2022 06:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbiHJKv0 (ORCPT ); Wed, 10 Aug 2022 06:51:26 -0400 Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FA4762C7 for ; Wed, 10 Aug 2022 03:51:25 -0700 (PDT) Received: by mail-vk1-xa30.google.com with SMTP id q191so7192667vkb.6 for ; Wed, 10 Aug 2022 03:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=h1cqY+wWEiIsslD3StW+1HJvfVXqRrzzKS1Ri5MnoCU=; b=EuIdsbqGykuZzc9Wj/SKWpfBMIrpmvedFHt53KNMMHQvNzamf5X4XDTbY9Y2IPRfKb c2wUJWGu/VPrIDGakisGdRm9P7uqnArtCYfi6XHnu3eiYAQBzLfWzRTTX1dSHFV3Dlu1 pjm75vgtVuk0FcfG41wRgllcCaNzRVg/zTD4vTYHY+/t5eWMYJoyNUCL/pdmL/zCr2xv VKIdqwHCD649Dqxs6r6yLN4AKR7CNtpW7dyQGouLfx+ai3SrZAfjUxljzG6HNg7vp3u0 OOsdADKCvEFHRTA/Way2u9g2KI1YN2nzE4abHJV/8O7Wjg1qHIae3nqrfbc86YZ1PxCV AoHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=h1cqY+wWEiIsslD3StW+1HJvfVXqRrzzKS1Ri5MnoCU=; b=Pc80raXoE1q3CuvHhAh+1KloQWAe/Fz3QuZrhayajBWtSlpd27Us54n86r/N4IS2d0 Z6Q0sVNwcuFDr+87dw4EvSaHZtUnI3C204H22BUQAfqRHro34wJfMFcXJB+5j787KX4R fLOje77ev/iy91vmGtN66Cx6zssT+vi8Gs6R87b27oBs+v89WmaHl0EIPOZXkI20kUYO bYtXqF+UsxSlmBhRf31+2aI0uN+eEOrnAv486uvtPjlEv/btDAROT5KrmhDNBrgklwbF dL5xyZXWLkV9vXHjwGOH4k+QmAuXr5OvW2pqzM78XTRWgiRODG0TehrNjlch49SJAckt wGIg== X-Gm-Message-State: ACgBeo17XrwHgvYv3/l5fQETPFN0A+8sWWBT4eqUrMQnqHx4JWMelp0v UeVnkwOmwQUUnKKHCBoF9+rMzW1DXDk+O5giV+wHn20U71kdcflz X-Received: by 2002:a05:6122:817:b0:377:59fa:3193 with SMTP id 23-20020a056122081700b0037759fa3193mr11596380vkj.4.1660128684392; Wed, 10 Aug 2022 03:51:24 -0700 (PDT) MIME-Version: 1.0 References: <30d8882efedea697da20c27563050008d1569b9e.1660068429.git.sander@svanheule.net> <4f334657f927865266fee19a7920f7248a111ef8.camel@svanheule.net> In-Reply-To: <4f334657f927865266fee19a7920f7248a111ef8.camel@svanheule.net> From: David Gow Date: Wed, 10 Aug 2022 18:51:13 +0800 Message-ID: Subject: Re: [PATCH v1 1/5] lib/test_cpumask: drop cpu_possible_mask full test To: Sander Vanheule Cc: Yury Norov , Andy Shevchenko , Rasmus Villemoes , Linux Kernel Mailing List , =?UTF-8?B?TWHDrXJhIENhbmFs?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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, Aug 10, 2022 at 4:45 PM Sander Vanheule wrot= e: > > Hi David, > > On Wed, 2022-08-10 at 12:06 +0800, David Gow wrote: > > On Wed, Aug 10, 2022 at 2:09 AM Sander Vanheule = wrote: > > > > > > cpu_possible_mask is not necessarily completely filled. That means > > > running a check on cpumask_full() doesn't make sense, so drop the tes= t. > > > > > > Fixes: c41e8866c28c ("lib/test: introduce cpumask KUnit test suite") > > > Link: https://lore.kernel.org/lkml/346cb279-8e75-24b0-7d12-9803f2b41c= 73@riseup.net/ > > > Reported-by: Ma=C3=ADra Canal > > > Signed-off-by: Sander Vanheule > > > Cc: David Gow > > > --- > > > > Looks good to me. It'd maybe be worth noting _why_ cpu_possible_mask > > is not always filled (i.e., that the number of available CPUs might > > not match the maximum number of CPUs the kernel is built to support), > > but it's probably not worth doing a new version of the patch series > > just for that. > > > > Reviewed-by: David Gow > > Thanks for the reviews! > > Perhaps the commit message could be replaced by: > > "When the number of CPUs that can possibly be brought online is known at = boot time, e.g. when > HOTPLUG is disabled, nr_cpu_ids may be smaller than NR_CPUS. In that case= , cpu_possible_mask would > not be completely filled, and cpumask_full(cpu_possible_mask) may return = false for valid system > configurations." > Sounds good to me! Thanks! -- David