Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-07-12 Thread Sudeep Holla
Hi Will, On 12/07/18 12:06, Will Deacon wrote: > On Thu, Jun 28, 2018 at 05:18:28PM +0800, Shunyong Yang wrote: [..] >> >> And as long as the nodes with Physical package field set in PPTT keeps >> the real hardware order, the logic id can map to hardware package id to >> some extent. >> >> Hope

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-07-12 Thread Will Deacon
On Thu, Jun 28, 2018 at 05:18:28PM +0800, Shunyong Yang wrote: > As PPTT spec doesn't define the physical package id, > find_acpi_cpu_topology_package() will return offset of the node with > Physical package field set when querying physical package id. So, it > returns 162(0xA2) in following exampl

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
On 28/06/18 16:44, Yang, Shunyong wrote: > Hi, All > >> On Jun 28, 2018, at 22:51, Andrew Jones >> wrote: >> >>> On Thu, Jun 28, 2018 at 03:09:19PM +0100, Sudeep Holla wrote: >>> >>> On 28/06/18 14:19, Jeremy Linton wrote: Hi, On 06/28/2018 07:12 AM, Sudeep Holla wrote: >>> >>> [

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Yang, Shunyong
Hi, All > On Jun 28, 2018, at 22:51, Andrew Jones wrote: > >> On Thu, Jun 28, 2018 at 03:09:19PM +0100, Sudeep Holla wrote: >> >> >>> On 28/06/18 14:19, Jeremy Linton wrote: >>> Hi, >>> >>> On 06/28/2018 07:12 AM, Sudeep Holla wrote: >> >> [...] >> OK sure. I liked the approach i

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Andrew Jones
On Thu, Jun 28, 2018 at 03:09:19PM +0100, Sudeep Holla wrote: > > > On 28/06/18 14:19, Jeremy Linton wrote: > > Hi, > > > > On 06/28/2018 07:12 AM, Sudeep Holla wrote: > > [...] > > >> > >> OK sure. I liked the approach in Shunyong's patch. I was thinking if we > >> can avoid the list and dyna

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
On 28/06/18 14:19, Jeremy Linton wrote: > Hi, > > On 06/28/2018 07:12 AM, Sudeep Holla wrote: [...] >> >> OK sure. I liked the approach in Shunyong's patch. I was thinking if we >> can avoid the list and dynamic allocation on each addition and make it >> more simpler. >> > > This one reads s

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Jeremy Linton
Hi, On 06/28/2018 07:12 AM, Sudeep Holla wrote: On 28/06/18 12:57, Andrew Jones wrote: On Thu, Jun 28, 2018 at 10:38:24AM +0100, Sudeep Holla wrote: Hi Shunyong, On 28/06/18 10:18, Shunyong Yang wrote: As PPTT spec doesn't define the physical package id, find_acpi_cpu_topology_package() wi

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
On 28/06/18 12:57, Andrew Jones wrote: > On Thu, Jun 28, 2018 at 10:38:24AM +0100, Sudeep Holla wrote: >> Hi Shunyong, >> >> On 28/06/18 10:18, Shunyong Yang wrote: >>> As PPTT spec doesn't define the physical package id, >>> find_acpi_cpu_topology_package() will return offset of the node with >

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Andrew Jones
On Thu, Jun 28, 2018 at 10:38:24AM +0100, Sudeep Holla wrote: > Hi Shunyong, > > On 28/06/18 10:18, Shunyong Yang wrote: > > As PPTT spec doesn't define the physical package id, > > find_acpi_cpu_topology_package() will return offset of the node with > > Physical package field set when querying ph

Re: [RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Sudeep Holla
Hi Shunyong, On 28/06/18 10:18, Shunyong Yang wrote: > As PPTT spec doesn't define the physical package id, > find_acpi_cpu_topology_package() will return offset of the node with > Physical package field set when querying physical package id. So, it > returns 162(0xA2) in following example. > > [

[RFC PATCH] arm64: topology: Map PPTT node offset to logic physical package id

2018-06-28 Thread Shunyong Yang
As PPTT spec doesn't define the physical package id, find_acpi_cpu_topology_package() will return offset of the node with Physical package field set when querying physical package id. So, it returns 162(0xA2) in following example. [0A2h 0162 1]Subtable Type : 00 [Processor Hierar