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=1795971591; b=z0GpB1QKIcW828QlADJBcYFmEGeSP48pBVrMZMCfPz4QW6nSJLrU1PoZ+XAT3cwyuTN4 W6+YZpbKN6gRYEp7JCmki+pnYAqtx7Cd2vPcfnDahu+OFHR/5xk5DJtYi/0Bk4oOLGveL lCOH9jhMBShMYlMwGb/kNLpNqfEJhMpf1nus4jWCf/S/kUyRQyz2f2VPAqXFZMAaavMkC Ew/UFYCNZrMMuW2HQaVt202D59YnFhyEXSoY8ZKRuf5X9hAqSdoAluROtXihPL1HH4syY 1N6BikvjfXsMFe6GUIeOC6mxeBNq535Ss0F41F0NZL1RhxDtaF+6koLFo1j32AAhtHA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795971591; h=Received:DKIM-Signature:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=ysAVKq9uQY9S+e6E17NB+z4ihElDWjQThyL3ehyA5wA=; b=IT53wZMfNuXDgB7gNLR62zQMk92pVZGd0m/1cp7T+vFzgwcxidAhl5F8WCASLEhcBicf IH4iq6ULHE19JsGPni3uNtCG+SLL5TeOhwKcqkBP+zZe6OBRzKRq9A0IF0nAVWdHN0uh3 ni6xCl5JuJ/z2/QDqcJGXLTPk8bXdm5iLVoNxBWqvEsQWa9rAF0BPzPHS/ftOKX2I1jx7 2Hebu/hsZwK64iGd1npD4P8VmVPo97CsgH69hA1Q1ThmTsg7DA45PDWBYRjJGSTaqbq4L d1NEAORSu0KplBnm1tloL+WaxbeSXd7T4ftN82QbpwGOgUqD+L64IqyFu1DHFrP2cQQ== 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=kkyXKqtp; 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 C0251606A323 for ; Sun, 29 Nov 2026 16:59:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=kkyXKqtp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 291781F000C1; Sun, 29 Nov 2026 16:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795971591; bh=ysAVKq9uQY9S+e6E17NB+z4ihElDWjQThyL3ehyA5wA=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=kkyXKqtpFmDAb8awIR3DM/hGUbBVkstLdE5HPDnv1CIubOowkj1Y5NhH2sjfREWjW XqPlctuEFj0ubHr2sowTTNui/v9reacZUuzzrEdYx60jKdGUN1N5phf5CQ40S8vW+X vvv/yu5CHXP9M+x+4IUUYgnTOzTS0cLbrKpZoIasAb7zCknkhubwV8N5chHLiaqaV7 W+3uQZcYQEs37dAJ/BO+QqcNIuplMuqLDq3PdwZISt2cPES01EOPIcrD0X0euJLMQS ruRMtvPc6KblTjPvPuBZzwoxvi0iEGWcZScqs73B4FN0800vnwrzztBEvWfP1vlQf7 hEi6imQpfKdbg== Date: Sun, 29 Nov 2026 06:59:50 -1000 Message-ID: From: Tejun Heo To: Cheng-Yang Chou Cc: sched-ext@lists.linux.dev, David Vernet , Andrea Righi , Changwoo Min , Ching-Chun Huang , Chia-Ping Tsai , chengyang.chou@mediatek.com Subject: Re: [PATCH sched_ext/for-7.5] sched_ext/idle: Skip nodes without CPUs In-Reply-To: <20261129163536.15478-1-yphbchou0911@gmail.com> References: <20261129163536.15478-1-yphbchou0911@gmail.com> X-Mailing-List: sched-ext@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, Cheng-Yang. On Mon, Nov 30, 2026 at 12:35:20AM +0800, Cheng-Yang Chou wrote: > On a Raspberry Pi 5, the firmware adds numa=fake=8. That gives eight > online nodes, but cpu_to_node() puts every CPU in node 0, so a search > that leaves node 0 visits seven nodes that can't have an idle CPU. AFAICS, with numa=fake, cpu_to_node() puts every CPU on node 0 but numa_add_cpu() also sets the CPU in cpumask_of_node() of every emulated node, so all eight nodes claim the same CPUs and have N_CPU set. No real topology looks like that and it doesn't make sense for a testing feature to break that. That looks like a bug in the NUMA emulation to me. rpi5 seems to be the only real user of fake NUMA. How about fixing the NUMA emulation and then switching sched_ext to walk node_states[N_CPU] instead of N_ONLINE? Thanks. -- tejun