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

Greg Kurz gkurz at linux.vnet.ibm.com
Tue Mar 17 21:48:09 AEDT 2015


On Tue, 17 Mar 2015 15:20:50 +0530
Anshuman Khandual <khandual at linux.vnet.ibm.com> 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



More information about the Linuxppc-dev mailing list