lkml.org 
[lkml]   [2024]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] x86/tsc: Use topology_max_packages() to get package number
Date
On Fri, 2024-03-15 at 10:58 -0700, Dave Hansen wrote:
> On 3/15/24 04:26, Feng Tang wrote:
> > Thomas' recent patchset of refactoring x86 topology code introduces
> > topology_max_package(), 

s/topology_max_package/topology_max_packages

And topology_max_packages() is not new. The patch set actually
improves/fixes it.


>
> I also did a big *gulp* when I saw this:
>
>         #define topology_max_packages() (__max_logical_packages)
>
> and:
>
> >         /*
> >          * Today neither Intel nor AMD support heterogeneous
> > systems so
> >          * extrapolate the boot cpu's data to all packages.
> >          */
> >         ncpus = cpu_data(0).booted_cores *
> > topology_max_smt_threads();
> >         __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus);
>
> Because Intel obviously has heterogeneous systems today.
>
Dave, I think you were checking the old code.
Please refer to commit 090610ba704a ("x86/cpu/topology: Use topology
bitmaps for sizing"), which is just merged in this merge window.

thanks,
rui
\
 
 \ /
  Last update: 2024-05-27 15:52    [W:0.185 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site