X-Git-Url: https://nv-tegra.nvidia.com/r/gitweb?p=linux-2.6.git;a=blobdiff_plain;f=lib%2Fswiotlb.c;h=5bdeaaea57fda3d5bee69e47c5167de6d218f368;hp=c2fc470b6ed8290f7e3baa5c63380b866953cd8f;hb=9cec58dc138d6fcad9f447a19c8ff69f6540e667;hpb=17e5ad6c0ce5a970e2830d0de8bdd60a2f077d38 diff --git a/lib/swiotlb.c b/lib/swiotlb.c index c2fc470b6ed..5bdeaaea57f 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -142,8 +142,8 @@ swiotlb_init_with_default_size (size_t default_size) /* * Get IO TLB memory from the low pages */ - io_tlb_start = alloc_bootmem_low_pages(io_tlb_nslabs * - (1 << IO_TLB_SHIFT)); + io_tlb_start = alloc_bootmem_low_pages_limit(io_tlb_nslabs * + (1 << IO_TLB_SHIFT), 0x100000000); if (!io_tlb_start) panic("Cannot allocate SWIOTLB buffer"); io_tlb_end = io_tlb_start + io_tlb_nslabs * (1 << IO_TLB_SHIFT);