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

From: Srikar Dronamraju <[email-masked]>
Date: Thu, 28 May 2026 21:28:38 +0530

* Shrikanth Hegde <[email-masked]> [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