]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
powerpc/pseries: Use a kmem cache for DTL buffers
authorNishanth Aravamudan <nacc@us.ibm.com>
Wed, 13 Apr 2011 19:45:59 +0000 (19:45 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 18 Apr 2011 03:08:08 +0000 (13:08 +1000)
commit127493d5dc73589cbe00ea5ec8357cc2a4c0d82a
treeaae7b2ce16ed3950cf49cd0ad00a5ee780b40344
parent7c7a81b53e581d727d069cc45df5510516faac31
powerpc/pseries: Use a kmem cache for DTL buffers

PAPR specifies that DTL buffers can not cross AMS environments (aka CMO
in the PAPR) and can not cross a memory entitlement granule boundary
(4k). This is found in section 14.11.3.2 H_REGISTER_VPA of the PAPR.
kmalloc does not guarantee an alignment of the allocation, though,
beyond 8 bytes (at least in my understanding). Create a special kmem
cache for DTL buffers with the alignment requirement.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/setup.c