Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4373563pxb; Mon, 21 Feb 2022 19:28:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxihhAwZghpl+dkFC8obMDdmgMwrx47aWuzRCkU06RUmRB8GEZTFyEGx7Varbhx48V/F4sW X-Received: by 2002:a17:907:920d:b0:6ce:a6fc:1ad8 with SMTP id ka13-20020a170907920d00b006cea6fc1ad8mr18131726ejb.448.1645500519794; Mon, 21 Feb 2022 19:28:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645500519; cv=none; d=google.com; s=arc-20160816; b=t7TdAXRmwObHE8TXOW8iyNb7TBrK8FnMFmjoTqDKZyo3weMPmMKD9090PEow8jshaX jUYjQGSWlv9HPe+nDx7JihlVKW34inwJzhit4N1TyySOsGWi2CB0Irc8XeWrEFo12mHA XSnGvVoELGzZnheo4pLu+zLjgkq5WgHXcaphqMLovOP3aC+JrV4l0tiv6vL+9oLZs42+ f/mjSwv80VcbxD5AFfPwrCQ7kzRga2vdEsHXpHOQsm0SBVmfcB+ofr3C9JQDG3pVbF95 UmiUfGzEDPLu7N79mn2d1ifB1Dlv4LnyQUFgkOW9HVm6r2sCjEsWSEVkI/DfEjnZ/hGC osqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=RbPcZKTtMTwGqxvJ4rZdMvr+d9AckhCVRKqOu38YfEo=; b=i0RH8BxIn4gd6UmUL+OXjyHTak5+mSRz+6Ryan1wdnsIAWLWvrK5FDyFik09mw7adF Bj/BVLeynWNdQ8u5e5Mp0kdvCQRhsDz1lmO+3/WrMlPWvXrfY+QA+WgaUa0K8+pV8CDG 2RWPkrRVwoa32hKqhmma1pYqm7Tv65cgcmDoZYWapk3ybu6GUFDQiBGjrLElBAvyh1hm Sc/nz1VfoWNc9DMdFKTiBO5Qac+TFaAblxzjyeJo9WWh2FvMrM7J/l5Q57J80GGRZpeq KxXCxZj0n2to3WwafHAzEP6LH1ZLzUJ+BCNv3cM3FQWx7VMi+qw4mArflG2mqSshDtqE 7MvA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=windriver.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn31si10684812ejc.70.2022.02.21.19.28.17; Mon, 21 Feb 2022 19:28:39 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=windriver.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232493AbiBUSwK (ORCPT + 99 others); Mon, 21 Feb 2022 13:52:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232418AbiBUSvk (ORCPT ); Mon, 21 Feb 2022 13:51:40 -0500 Received: from mail1.wrs.com (unknown-3-146.windriver.com [147.11.3.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81451D7C for ; Mon, 21 Feb 2022 10:51:16 -0800 (PST) Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.corp.ad.wrs.com [147.11.82.252]) by mail1.wrs.com (8.15.2/8.15.2) with ESMTPS id 21LIKXlI027173 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 21 Feb 2022 10:20:34 -0800 Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 21 Feb 2022 10:20:33 -0800 Received: from yow-pgortmak-d4.wrs.com (128.224.56.60) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2242.12 via Frontend Transport; Mon, 21 Feb 2022 10:20:31 -0800 From: Paul Gortmaker To: , Frederic Weisbecker , Peter Zijlstra CC: Paul Gortmaker , Ingo Molnar , Nicholas Piggin , "Paul E . McKenney" , Thomas Gleixner Subject: [PATCH v2 0/2] sched/nohz: disallow non-existent cores from nohz-full Date: Mon, 21 Feb 2022 13:20:07 -0500 Message-ID: <20220221182009.1283-1-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, SPF_FAIL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This is a rebase and retest of two fixes I'd sent earlier[1]. The rebase is required due to conflicts in my patch #1 and where Frederic updated the unwind code in housekeeping_setup in his series[2] and that series is now in sched/core of tip[3]. So this update is against a baseline of ed3b362d54f0 found in sched/core as "sched/isolation: Split housekeeping cpumask per isolation features" in tip. Changes amount to "return 0" ---> "goto out_free" and adding a nod to PaulM's observation that nohz_full w/o a cpuset is coming someday into the commit log. [1] https://lore.kernel.org/all/20211206145950.10927-1-paul.gortmaker@windriver.com/ [2] https://lore.kernel.org/all/20220207155910.527133-1-frederic@kernel.org/ [3] git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ----- Original v1 text follows ----- A couple months back I sent a fix to reconcile rcu_nocbs= input restrictions with nohz_full= input restrictions; with the latter being more restrictive than the former. However, in relaxing the nohz_full restrictions, I made it possible to boot with a nohz_full= parameter that contains nothing but nonexistent and not-possible cores - which will trigger a WARN. This fixes the original reconcile commit by explicitly coding our allowed values just like RCU does, and changes the WARN_ON to a WARN_ON_ONCE, since it needlessly rendered the machine unusable. --- Cc: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Nicholas Piggin Cc: Paul E. McKenney Cc: Thomas Gleixner Paul Gortmaker (2): sched/isolation: really align nohz_full with rcu_nocbs tick/nohz: WARN_ON --> WARN_ON_ONCE to prevent console saturation kernel/sched/isolation.c | 11 +++++++++++ kernel/time/tick-sched.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) -- 2.17.1