[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9b45b33c-3bd1-4075-98a3-d8f5cfc08785@intel.com>
Date: Fri, 12 Sep 2025 13:39:41 +0800
From: "Chen, Yu C" <yu.c.chen@...el.com>
To: Tim Chen <tim.c.chen@...ux.intel.com>, Peter Zijlstra
<peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>
CC: Juri Lelli <juri.lelli@...hat.com>, Dietmar Eggemann
<dietmar.eggemann@....com>, Ben Segall <bsegall@...gle.com>, Mel Gorman
<mgorman@...e.de>, Valentin Schneider <vschneid@...hat.com>, Tim Chen
<tim.c.chen@...el.com>, Vincent Guittot <vincent.guittot@...aro.org>, "Libo
Chen" <libo.chen@...cle.com>, Abel Wu <wuyun.abel@...edance.com>, Len Brown
<len.brown@...el.com>, <linux-kernel@...r.kernel.org>, K Prateek Nayak
<kprateek.nayak@....com>, "Gautham R . Shenoy" <gautham.shenoy@....com>,
"Zhao Liu" <zhao1.liu@...el.com>, Vinicius Costa Gomes
<vinicius.gomes@...el.com>, Arjan Van De Ven <arjan.van.de.ven@...el.com>
Subject: Re: [PATCH v3 2/2] sched: Fix sched domain build error for GNR, CWF
in SNC-3 mode
On 9/12/2025 2:30 AM, Tim Chen wrote:
[snip]
>
> +int arch_sched_node_distance(int from, int to)
> +{
> + int d = node_distance(from, to);
> +
> + if (!x86_has_numa_in_package)
> + return d;
> +
> + switch (boot_cpu_data.x86_vfm) {
> + case INTEL_GRANITERAPIDS_X:
> + case INTEL_ATOM_DARKMONT_X:
> + if (d < REMOTE_DISTANCE)
> + return d;
> +
> + /*
> + * Trim finer distance tuning for nodes in remote package
> + * for the purpose of building sched domains. Put NUMA nodes
> + * in each remote package in the same sched group.
> + * Simplify NUMA domains and avoid extra NUMA levels including
> + * different NUMA nodes in remote packages.
> + *
> + * GNR and CWF don't expect systmes with more than 2 packages
> + * and more than 2 hops between packages.
> + */
> + d = sched_avg_remote_numa_distance;
sched_avg_remote_numa_distance is defined in topology.c with
CONFIG_NUMA controlled, should we make arch_sched_node_distance()
be controlled under CONFIG_NUMA too?
thanks,
Chenyu
> + }
Powered by blists - more mailing lists