ppc/pnv: add memory regions for the ICP registers
authorCédric Le Goater <clg@kaod.org>
Mon, 3 Apr 2017 07:46:05 +0000 (09:46 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:00:42 +0000 (12:00 +1000)
commitbf5615e77cbe5518f201a9be96e13bedb6a5b26d
treed41ed30da1d7125b5ecb3ac72ff6628a5845929c
parent5509db4aec13217022d41b131c8216040fb723f1
ppc/pnv: add memory regions for the ICP registers

This provides to a PowerNV chip (POWER8) access to the Interrupt
Management area, which contains the registers of the Interrupt Control
Presenters of each thread. These are used to accept, return, forward
interrupts in the system.

This area is modeled with a per-chip container memory region holding
all the ICP registers. Each thread of a chip is then associated with
its ICP registers using a memory subregion indexed by its PIR number
in the overall region.

The device tree is populated accordingly.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c
include/hw/ppc/pnv.h