Re: [PATCH v5 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-07-23 Thread Madhavan Srinivasan
On Thursday 23 July 2015 02:46 PM, Michael Ellerman wrote: > On Thu, 2015-07-23 at 11:24 +0530, Madhavan Srinivasan wrote: >> On Wednesday 22 July 2015 09:19 AM, Daniel Axtens wrote: >>> Hi, >>> +static struct perchip_nest_info p8_nest_perchip_info[P8_NEST_MAX_CHIPS]; + +static int

Re: [PATCH v5 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-07-23 Thread Michael Ellerman
On Thu, 2015-07-23 at 11:24 +0530, Madhavan Srinivasan wrote: > > On Wednesday 22 July 2015 09:19 AM, Daniel Axtens wrote: > > Hi, > > > >> +static struct perchip_nest_info p8_nest_perchip_info[P8_NEST_MAX_CHIPS]; > >> + > >> +static int nest_ima_dt_parser(void) > >> +{ > >> + const __be32 *gcid;

Re: [PATCH v5 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-07-22 Thread Madhavan Srinivasan
On Wednesday 22 July 2015 09:19 AM, Daniel Axtens wrote: > Hi, > >> +static struct perchip_nest_info p8_nest_perchip_info[P8_NEST_MAX_CHIPS]; >> + >> +static int nest_ima_dt_parser(void) >> +{ >> +const __be32 *gcid; >> +const __be64 *chip_ima_reg; >> +const __be64 *chip_ima_size; >>

Re: [PATCH v5 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-07-21 Thread Daniel Axtens
Hi, > +static struct perchip_nest_info p8_nest_perchip_info[P8_NEST_MAX_CHIPS]; > + > +static int nest_ima_dt_parser(void) > +{ > + const __be32 *gcid; > + const __be64 *chip_ima_reg; > + const __be64 *chip_ima_size; > + struct device_node *dev; > + struct perchip_nest_info *p8

[PATCH v5 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-07-16 Thread Madhavan Srinivasan
Create a file "nest-pmu.c" to contain nest pmu related functions. Code to detect nest pmu support and parser to collect per-chip reserved memory region information from device tree (DT). Detection mechanism is to look for specific property "ibm,ima-chip" in DT. For Nest pmu, device tree will have