[openib-general] [PATCH 02/17] ehca: module infrastructure
Grant Grundler
iod00d at hp.com
Fri Mar 3 10:40:50 PST 2006
On Fri, Mar 03, 2006 at 07:57:24AM -0800, Roland Dreier wrote:
> Heiko> Hello Christoph, I only did kmalloc(PAGE_SIZE, GFP_KERNEL)
> Heiko> because we need some amount of memory which is 4k
> Heiko> aligned. I'm not sure, but I think if I use kmalloc(SIZE,
> Heiko> GFP_KERNEL) and SIZE is smaller as 4k the memory will not
> Heiko> be 4k aligned?
>
> If you need something 4K aligned then you should be using 4096 instead
> of PAGE_SIZE -- it's entirely possible to build a ppc64 kernel with
> PAGE_SIZE == 65536.
IA64 .config options allows 4k, 8K, 16K, 64K.
Default page size is 16k.
SLES9 versions for SGI/Altix use 64K as the default.
hth,
grant
More information about the general
mailing list