summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-10-11 10:40:25 -0700
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2010-10-11 17:08:36 -0400
commite79f86b2ef9c0a8c47225217c1018b7d3d90101c (patch)
tree53ba03cad303a566831fa03ebbfc408ab36ae36c /net
parent03620b2d7545fee29ecd3bb270f206b9cff75e58 (diff)
downloadop-kernel-dev-e79f86b2ef9c0a8c47225217c1018b7d3d90101c.zip
op-kernel-dev-e79f86b2ef9c0a8c47225217c1018b7d3d90101c.tar.gz
swiotlb: Use page alignment for early buffer allocation
We could call free_bootmem_late() if swiotlb is not used, and it will shrink to page alignment. So alloc them with page alignment at first, to avoid lose two pages before patch: [ 0.000000] memblock_x86_reserve_range: [00d3600000, 00d7600000] swiotlb buffer [ 0.000000] memblock_x86_reserve_range: [00d7e7ef40, 00d7e9ef40] swiotlb list [ 0.000000] memblock_x86_reserve_range: [00d7e3ef40, 00d7e7ef40] swiotlb orig_ad [ 0.000000] memblock_x86_reserve_range: [000008a000, 0000092000] swiotlb overflo after patch will get [ 0.000000] memblock_x86_reserve_range: [00d3600000, 00d7600000] swiotlb buffer [ 0.000000] memblock_x86_reserve_range: [00d7e7e000, 00d7e9e000] swiotlb list [ 0.000000] memblock_x86_reserve_range: [00d7e3e000, 00d7e7e000] swiotlb orig_ad [ 0.000000] memblock_x86_reserve_range: [000008a000, 0000092000] swiotlb overflo Signed-off-by: Yinghai Lu <yinghai@kernel.org> Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Becky Bruce <beckyb@kernel.crashing.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud