Re: [RFC PATCH 1/9] powerpc/pseries: add cpu DLPAR support for drc-info property

2019-10-31 Thread Nathan Lynch
Tyrel Datwyler writes: > On 10/10/19 11:56 AM, Nathan Lynch wrote: >> As an aside I don't understand how the add_by_count()/dlpar_cpu_exists() >> algorithm could be correct as it currently stands. It seems to pick the >> first X indexes for which a corresponding cpu node is absent, but that >> set

Re: [RFC PATCH 1/9] powerpc/pseries: add cpu DLPAR support for drc-info property

2019-10-30 Thread Tyrel Datwyler
On 10/10/19 11:56 AM, Nathan Lynch wrote: > Hi Tyrel, > > Tyrel Datwyler writes: >> +static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) >> +{ >> +const __be32 *indexes; >> +int i; >> + >> +if (of_find_property(parent, "ibm,drc-info", NULL)) >> +retu

Re: [RFC PATCH 1/9] powerpc/pseries: add cpu DLPAR support for drc-info property

2019-10-10 Thread Nathan Lynch
Hi Tyrel, Tyrel Datwyler writes: > +static bool valid_cpu_drc_index(struct device_node *parent, u32 drc_index) > +{ > + const __be32 *indexes; > + int i; > + > + if (of_find_property(parent, "ibm,drc-info", NULL)) > + return drc_info_valid_index(parent, drc_index); > + > +

[RFC PATCH 1/9] powerpc/pseries: add cpu DLPAR support for drc-info property

2019-09-30 Thread Tyrel Datwyler
From: Tyrel Datwyler Older firmwares provided information about Dynamic Reconfig Connectors (DRC) through several device tree properties, namely ibm,drc-types, ibm,drc-indexes, ibm,drc-names, and ibm,drc-power-domains. New firmwares have the ability to present this same information in a much cond