Re: [PATCH v4] powerpc/smp: Use nid as fallback for package_id

2020-03-05 Thread Michael Ellerman
On Wed, 2020-01-29 at 13:51:21 UTC, Srikar Dronamraju wrote: > Package_id is to find out all cores that are part of the same chip. On > PowerNV machines, package_id defaults to chip_id. However ibm,chip_id > property is not present in device-tree of PowerVM Lpars. Hence lscpu > output shows one cor

Re: [PATCH v4] powerpc/smp: Use nid as fallback for package_id

2020-01-30 Thread Srikar Dronamraju
* Gautham R Shenoy [2020-01-30 16:27:47]: > On Wed, Jan 29, 2020 at 07:21:21PM +0530, Srikar Dronamraju wrote: > > [..snip..] > > > --- a/arch/powerpc/kernel/smp.c > > +++ b/arch/powerpc/kernel/smp.c > > @@ -1185,10 +1185,34 @@ static inline void add_cpu_to_smallcore_masks(int > > cpu) > >

Re: [PATCH v4] powerpc/smp: Use nid as fallback for package_id

2020-01-30 Thread Gautham R Shenoy
Hello Srikar, On Wed, Jan 29, 2020 at 07:21:21PM +0530, Srikar Dronamraju wrote: [..snip..] > --- a/arch/powerpc/kernel/smp.c > +++ b/arch/powerpc/kernel/smp.c > @@ -1185,10 +1185,34 @@ static inline void add_cpu_to_smallcore_masks(int cpu) > } > } > > +int get_physical_package_id(int

[PATCH v4] powerpc/smp: Use nid as fallback for package_id

2020-01-29 Thread Srikar Dronamraju
Package_id is to find out all cores that are part of the same chip. On PowerNV machines, package_id defaults to chip_id. However ibm,chip_id property is not present in device-tree of PowerVM Lpars. Hence lscpu output shows one core per socket and multiple cores. To overcome this, use nid as the pa