Re: [BUG] sched/cache: "Make LLC id continuous" causes NULL cpumask

From: Srikar Dronamraju

Date: Thu May 28 2026 - 12:37:22 EST


* Shrikanth Hegde <sshegde@xxxxxxxxxxxxx> [2026-05-27 23:37:30]:

> Hi Chen, Prateek.
>
> EXPORT_SYMBOL_GPL(cpu_die_mask);
>
> +const struct cpumask *arch_llc_mask(int cpu)
> +{
> + if (has_coregroup_support())
> + return cpu_coregroup_mask(cpu);
> + return cpu_smallcore_mask(cpu);
> +}
> +

This is not correct. why should we again send coregroup for llc.


> int cpu_die_id(int cpu)
> {
> if (has_coregroup_support())
> diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
> index df2ceb54c970..3b5155121276 100644
> --- a/kernel/sched/topology.c
> +++ b/kernel/sched/topology.c
> @@ -2063,7 +2063,11 @@ const struct cpumask *tl_mc_mask(struct
> sched_domain_topology_level *tl, int cpu
> return cpu_coregroup_mask(cpu);
> }
>

--
Thanks and Regards
Srikar Dronamraju