[Skiboot] [PATCH V3 2/6] phb3: Load CAPP ucode to both CAPP units on Naples

Michael Neuling mikey at neuling.org
Fri Apr 1 21:51:00 AEDT 2016


On Fri, 2016-04-01 at 08:41 +0200, Philippe Bergheaud wrote:

> 
> On 04/01/2016 04:02 AM, Stewart Smith wrote:

> > Philippe Bergheaud <felix at linux.vnet.ibm.com> writes:
> > 

> > > On 03/31/2016 06:09 AM, Stewart Smith wrote:

> > > > Philippe Bergheaud <felix at linux.vnet.ibm.com> writes:

> > > > > --- a/include/phb3.h
> > > > > +++ b/include/phb3.h
> > > > > @@ -314,6 +314,13 @@ struct phb3 {
> > > > >    	struct phb		phb;
> > > > >    };
> > > > > 
> > > > > +#define PHB3_IS_NAPLES(p) ((p)->rev == PHB3_REV_NAPLES_DD10)
> > > > Should this be the other way around?
> > > > 
> > > I am not sure I understand what you mean.
> > > Should I swap the operands around the operator == ?
> > I replied to the wrong line, i meant this one:
> > 
> >   +#define PHB3_MAX_CAPP_PHB_INDEX(p) (PHB3_IS_NAPLES(p) ? 1 : 2)
> > 
> This line is correct indeed, but deserves the following comment:

Might be better to rename it PHB3_CAPP_MAX_PHB_INDEX()

Mikey

> 
> /*
>   * Venice/Murano have one CAPP unit, than can be attached to either 
> PHB0,1 or 2.
>   * Naples has two CAPP units: CAPP0 attached to PHB0, CAPP1 attached to 
> PHB1.
>   */
> 
> Philippe
> 


More information about the Skiboot mailing list