From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795407154; b=gKp9Vxh4LBEzHDBU+6Ytfa/HyqX9aMV/y8NZdqpL3V+NkhEC+k8XP+hn9KIAaMSNGgdM 12r7u3E2MNGvmoo/P1Fhh0r0y/LSkkn2SOmDzI+tyO9aMVbYHuZw/GX4DV896WTkCYLNJ b4eyAosPJOfU97GEYR90vWdGuOY++7eqmb8O2oEFnlD7mAiknXO815mrnLEaiTbv1zLpp sklMXon9Y7+wLVfYyb8K6Ti74V+hTr1tvXep2XDgtEuX/copYyyuCI+lTkjDoB6qOI1Q6 NpKTCY5YGBaCaAPDadtY09wnF7KTVE4OWo8cJ9wbnM/G5Yk5bjaRbARNxgAryGxfQEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795407154; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:Content-Transfer-Encoding:X-Scanned-By; bh=5TmNVpfj4hDwFh6gyMhke7jXfX4xLa6sU8BErkMxfqc=; b=AvSnXlubk0g03fOMAJZ7m8U9VrkD2hfuPnh/g9RjtOF165aBAs3Pucd5D/OlXpNMuutE jmHjCPPEHjTKMvRlNsYDrn2UhM60HSi2InWSFnXyiL8bI73C58c0or0eUDOzCjp1RQXG7 PkaVDlh70agtcSJnergI+JoekeaMQw7ZTvnNV1ixU6rBqW/6hLWZeIip3Re09FjobN383 YaxwmAoDbbMozVbI+7peAhxwJRUaI7gXL4fy5bJGFJu9JOD7GOjNuh0qnWNfTABftm9Vd C9C7YTT+XQMvnpOuhv0GiM87GCJC0DlXHWnw6iW0GNp+BRgEZYtrF/YoQOa1P4XfEpQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cRAC2ugt; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39854606A334 for ; Mon, 23 Nov 2026 04:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 39854606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=cRAC2ugt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795407153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=5TmNVpfj4hDwFh6gyMhke7jXfX4xLa6sU8BErkMxfqc=; b=cRAC2ugtTjSxDcX7VY8P2W1V5hEa67Y5YXhVyj17s2LhT4DCKct7rtaQA6b7xU5wJG+LfG CW//wjcEtA4Uvtn0b8jbXLLQJCjYUjHk54qIt+OLej+PVBUfPGV9lZbwlcfCpyYDk7s1bg 7JKKuX80ZW2veses41ThSkrJAeMyxoc= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-10-tWRd4N6nPG2Ybc8jMblIAw-1; Mon, 23 Nov 2026 04:12:27 +0000 X-MC-Unique: tWRd4N6nPG2Ybc8jMblIAw-1 X-Mimecast-MFC-AGG-ID: tWRd4N6nPG2Ybc8jMblIAw_1795407144 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 33EBD1954B2F; Mon, 23 Nov 2026 04:12:23 +0000 (UTC) Received: from llong-thinkpadp16vgen1.redhat.corp (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0B24918011D8; Mon, 23 Nov 2026 04:12:17 +0000 (UTC) From: Waiman Long To: Tejun Heo , Johannes Weiner , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Jonathan Corbet , Shuah Khan , Randy Dunlap , Ridong Chen , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner Cc: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Guopeng Zhang , Mathieu Desnoyers , Waiman Long Subject: [PATCH-next v2 0/3] Skip boot CPU or don't allow it from being used in isolcpus and isolated partitions Date: Sun, 22 Nov 2026 23:12:06 -0500 Message-ID: <20261123041209.382726-1-longman@redhat.com> X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 [v2] - Update the patches to address issues reported by sashiko. It is reported that having CPU 0 being domain isolated can cause problems in the some kernel subystems which don't take into account that the boot CPU (CPU 0) may not be a HK_TYPE_DOMAIN housekeeping CPU. As a result, it makes sense to just disallow CPU 0 from being used in the isolcpus=domain boot parameter as well as in cpuset isolated partitions instead of trying to fix the problems when they show up. The first patch fixes the inconsistency problems between tick_nohz_full_mask and HK_TYPE_KERNEL_NOISE cpumask. The second patch removes the boot CPU from the isolcpus=domain parameter if set. The third patch disallows isolated partitions from being created if CPU 0 is specified in its effective exclusive cpumask. Waiman Long (3): tick/sched: Make tick_nohz_full_mask and HK_TYPE_KERNEL_NOISE cpumask consistent sched/isolation: Forbid the boot CPU from being domain isolated cgroup/cpuset: Disallow CPU 0 from being used in isolated partition Documentation/admin-guide/cgroup-v2.rst | 1 + .../admin-guide/kernel-parameters.txt | 7 +- include/linux/sched/isolation.h | 2 + kernel/cgroup/cpuset-internal.h | 1 + kernel/cgroup/cpuset.c | 90 ++++++++++--------- kernel/sched/isolation.c | 33 ++++++- kernel/time/tick-sched.c | 2 + .../selftests/cgroup/test_cpuset_prs.sh | 43 +++++---- 8 files changed, 117 insertions(+), 62 deletions(-) -- 2.56.1