[PATCH] powerpc: align DTL buffer to AMS boundary
David.Laight at ACULAB.COM
Thu Apr 14 00:59:44 EST 2011
> linuxppc-dev-bounces+david.laight=aculab.com at lists.ozlabs.org
> [mailto:linuxppc-dev-bounces+david.laight=aculab.com at lists.ozl
> abs.org] On Behalf Of Nishanth Aravamudan
> Sent: 13 April 2011 15:53
> To: Ben Herrenschmidt
> Cc: linuxppc-dev at ozlabs.org; Paul Mackerras; Anton Blanchard
> Subject: [PATCH] powerpc: align DTL buffer to AMS boundary
> PAPR specifies that DTL buffers can not cross AMS environments (aka
> in the PAPR) and can not cross a memory entitlement granule boundary
How big is the buffer being allocated?
If it is much less than 4k then it might be worth allocating
a buffer of the correct size, and only if that crosses a 4k boundary
allocate the larger buffer.
Also, if the buffer is ever freed, the actual base address is needed
for the free.
More information about the Linuxppc-dev