From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796285633; b=GSTmu22SDSAhunhDSdlnFaL5Lm9QgI/0Gxt1RT/y9tBYYJTAwNfPBxUPr4j7q0tOnwWH zLkLcgjGw3RgNIKaYDuw1mzkf6mlAa+4a/BrTCQRY8/418D4dVrSjyeZVHnQu4U0lXBi6 r3teewDBgQ4im6bz3EbKz76wFiKnv9x/K9CfBCiO46/JS5qUA9Ty5xDqemLzKoLAiFB91 gp8cKeZtHOdwqu1qRXZgRhTYBKPqFAk5xFov2/tFudosvrQMfecAXuNSroQOrJ9jRxzdk nD0JthA8wzZKbjEqbqGnB/LlyGLYVtPCqQo83K2kKrZd6RKZkQdXb9Yv/fJoInmvDhw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796285633; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=BDrol6y6vNITyJ2daq7OdK+U1ZjMT8Adr61Fx4IW8jA=; b=djYDZMOZWLk4+dELwBylljBQ+SWyLJmItP2b+1ILZsvdbYihPv12CBvZC8ah/ziRp2dn emto90x4Yjnd2Uyw94fAFA2G0WRncV991EeIs/NL9DGGMFB/mbe4Ha1aJAWPbMrWRDxwK RSCSiQWAoUC9egxnVYBB2mWRpM2wmf7ym+kbUSeTD6/5/tHckw/EXiaNmRC+1iX4aRm0h WLWpCba6WK0F65zHtp2FBOb5G3ywRO339RydUiry2XYygO1b0s1QDYe4B9GDTCBXs/BOo SU4S91SeiRT+vdU3pqLXvk1v1RIMSN7oMnBWaYvMT1j6uUUdO0F7uIoKcTU5vxkLn0Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="Znb/4KS6"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C547D606A32D for ; Thu, 3 Dec 2026 08:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Znb/4KS6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 504FE1F00893; Thu, 3 Dec 2026 08:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796285633; bh=BDrol6y6vNITyJ2daq7OdK+U1ZjMT8Adr61Fx4IW8jA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Znb/4KS6Lczf83L5eSyH8OZ+9vJIOPA0kfpAVSsc4GauFKdvIlv55ZTWvnugeuGUd eXQtrUOc855fIHHNZ4qAfETrKtCFAmzT49sP3lCJJWjIqh63y0oqBs73jMfkzMxjdM 3C3STSiytq0oALcNKl1TwY2pu+aApFNSyvEy6nxZ4/meTZFQtCRftjxMP/LB5pcydX 8CngnFw3aE0NfI3WNzVQPq4heNlKzgvYUvTC3+b+BoYh0XSeHhnFRbtipF4RgqVNFK GHoEgKw674jmq62Oh4kVMycBdI6jHzbFExRyDfS9wiYKY4L/ZUx3fSJjTU3Wsd73bc IIW3StjRcy39w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] docs: sched_ext: Document the isolcpus= domain isolation restriction Reply-To: sashiko-reviews@lists.linux.dev To: "Shaojie Sun" Cc: sched-ext@lists.linux.dev In-Reply-To: <20261203080337.732449-1-sunshaojie@kylinos.cn> References: <20261203080337.732449-1-sunshaojie@kylinos.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 08:13:52 +0000 X-Mailing-List: sched-ext@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] docs: sched_ext: inaccurate isolcpus=3D domain isolation affinity description -- commit 77f7da4a51719b1dc3cba589f535023492b079e1 Author: Shaojie Sun docs: sched_ext: Document the isolcpus=3D domain isolation restriction This commit documents that sched_ext refuses to load when boot-time isolcpus=3D domain isolation is active and recommends cpuset isolated partitions instead. > diff --git a/Documentation/admin-guide/cpu-isolation.rst b/Documentation/= admin-guide/cpu-isolation.rst > index b9f13a9286734..64a0570135e98 100644 > --- a/Documentation/admin-guide/cpu-isolation.rst > +++ b/Documentation/admin-guide/cpu-isolation.rst > @@ -116,6 +116,12 @@ Interfaces > less flexible alternative that doesn't allow for runtime > reconfiguration. > =20 > +Note that boot-time domain isolation is not compatible with sched_ext: t= he > +BPF scheduler load fails with -EINVAL because the isolation is applied to > +the sched domains only, leaving the affected tasks with their full CPU > +affinity mask. Use cpuset isolated partitions if a sched_ext scheduler h= as > +to be loaded. See Documentation/scheduler/sched-ext.rst. > + > IRQs isolation > -------------- > =20 [Severity: Low] Is it accurate to say boot-time domain isolation applies to sched domains only and leaves affected tasks with their full CPU affinity mask? sched_init_smp() restricts init and its descendant userspace tasks to housekeeping_cpumask(HK_TYPE_DOMAIN). kthread_fetch_affinity() and workqueue_init_early() do the same for unbound kthreads and workqueues, which the Scheduler domain isolation section of this file already notes. As explained in 9f391f94a173 ("sched_ext: Disallow loading BPF scheduler if isolcpus=3D domain isolation is in effect"), the incompatibility is that isolcpus=3D does not enforce partition boundaries on task cpumasks, so a ta= sk on an isolated CPU may still have other CPUs in its allowed mask. Documentation/scheduler/sched-ext.rst and the commit message make the same claim about task CPU affinity masks not being restricted, and could be updated to describe the missing partition enforcement on task cpumasks instead. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203080337.7324= 49-1-sunshaojie@kylinos.cn?part=3D1