[PATCH] swiotlb: make sure initial DMA allocations really are in DMA memory
[linux-drm-fsl-dcu.git] / arch / ia64 / lib / swiotlb.c
index dbc0b3e449c5fe7ad8e81c284d00c85b0bf600fe..a604efc7f6c9db2f859243dae31a35760b6406da 100644 (file)
@@ -123,8 +123,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);