281dd25cdc
This introduces a limit parameter to the core bootmem allocator; The new parameter indicates that physical memory allocated by the bootmem allocator should be within the requested limit. We also introduce alloc_bootmem_low_pages_limit, alloc_bootmem_node_limit, alloc_bootmem_low_pages_node_limit apis, but alloc_bootmem_low_pages_limit is the only api used for swiotlb. The existing alloc_bootmem_low_pages() api could instead have been changed and made to pass right limit to the core allocator. But that would make the patch more intrusive for 2.6.14, as other arches use alloc_bootmem_low_pages(). We may be done that post 2.6.14 as a cleanup. With this, swiotlb gets memory within 4G for both x86_64 and ia64 arches. Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com> Cc: Ravikiran G Thirumalai <kiran@scalex86.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> |
||
---|---|---|
.. | ||
bitop.c | ||
carta_random.S | ||
checksum.c | ||
clear_page.S | ||
clear_user.S | ||
copy_page_mck.S | ||
copy_page.S | ||
copy_user.S | ||
csum_partial_copy.c | ||
do_csum.S | ||
flush.S | ||
idiv32.S | ||
idiv64.S | ||
io.c | ||
ip_fast_csum.S | ||
Makefile | ||
memcpy_mck.S | ||
memcpy.S | ||
memset.S | ||
strlen_user.S | ||
strlen.S | ||
strncpy_from_user.S | ||
strnlen_user.S | ||
swiotlb.c | ||
xor.S |