On 09/21/2016 04:05 AM, Benjamin Herrenschmidt wrote:
> On Wed, 2016-09-21 at 11:51 +1000, David Gibson wrote:
>> Ok, as noted elsewhere, I think you need to disassociate the PIR value
>> from the cpu_index. It may be a little less elegant, but it'll make
>> your life much easier in the short and medium term.
>> Apart from that, this looks pretty good, though I have one suggested
>> cleanup below.
> As long as the PIR value is what is used everywhere, ie, interrupt
> controller, XSCOM addressing of the cores, Doorbells, etc...
Yes. PowerNV needs the PIR that's all.
I need to get rid of all the different cpu identifiers which are used
under qemu. It should be possible with a "cpu hwid" -> "ipc index"
mapping table, like David proposed.