Re: [Qemu-devel] [PATCH RFC] spapr: disintricate core-id from DT semantics

2016-07-27 Thread David Gibson
On Wed, Jul 27, 2016 at 12:06:17PM +0200, Greg Kurz wrote: > Le Mon, 25 Jul 2016 16:01:31 +1000, > David Gibson a écrit : > > > On Fri, Jul 22, 2016 at 01:10:36PM +0200, Greg Kurz wrote: > > > The goal of this patch is to have a stable core-id which does not depend > > > on any DT related semanti

Re: [Qemu-devel] [PATCH RFC] spapr: disintricate core-id from DT semantics

2016-07-27 Thread Greg Kurz
Le Mon, 25 Jul 2016 16:01:31 +1000, David Gibson a écrit : > On Fri, Jul 22, 2016 at 01:10:36PM +0200, Greg Kurz wrote: > > The goal of this patch is to have a stable core-id which does not depend > > on any DT related semantics, which involve non-obvious computations on > > modern PowerPC server

Re: [Qemu-devel] [PATCH RFC] spapr: disintricate core-id from DT semantics

2016-07-25 Thread David Gibson
On Fri, Jul 22, 2016 at 01:10:36PM +0200, Greg Kurz wrote: > The goal of this patch is to have a stable core-id which does not depend > on any DT related semantics, which involve non-obvious computations on > modern PowerPC server cpus. > > With this patch, the DT core id is computed on-demand as:

[Qemu-devel] [PATCH RFC] spapr: disintricate core-id from DT semantics

2016-07-22 Thread Greg Kurz
The goal of this patch is to have a stable core-id which does not depend on any DT related semantics, which involve non-obvious computations on modern PowerPC server cpus. With this patch, the DT core id is computed on-demand as: (core-id / smp_threads) * smt where smt is the number of th