Subject: Re: [PATCH v3 4/5] powerpc/vphn: parsing code rewrite

From: Greg Kurz <[email-masked]>
Date: Tue, 17 Mar 2015 11:48:09 +0100

On Tue, 17 Mar 2015 15:20:50 +0530
Anshuman Khandual <[email-masked]> wrote:

> > diff --git a/arch/powerpc/mm/vphn.h b/arch/powerpc/mm/vphn.h
> > index 96af9a4..fe8b780 100644
> > --- a/arch/powerpc/mm/vphn.h
> > +++ b/arch/powerpc/mm/vphn.h
> > @@ -6,10 +6,10 @@
> >  #define VPHN_REGISTER_COUNT 6
> >  
> >  /*
> > - * 6 64-bit registers unpacked into 12 32-bit associativity values. To form
> > - * the complete property we have to add the length in the first cell.
> > + * 6 64-bit registers unpacked into up to 24 be32 associativity values. To
> 
> I guess its be16 instead of be32 here		^^^^

The output array is supposed to mimic the ibm,associativity property in the
device tree. It is hence an array of be32 values, even if the hypervisor
passes them as be16 values.

Cheers.

--
Greg