diff options
Diffstat (limited to 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index c2fc470b6ed8..5bdeaaea57fd 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c | |||
@@ -142,8 +142,8 @@ swiotlb_init_with_default_size (size_t default_size) | |||
142 | /* | 142 | /* |
143 | * Get IO TLB memory from the low pages | 143 | * Get IO TLB memory from the low pages |
144 | */ | 144 | */ |
145 | io_tlb_start = alloc_bootmem_low_pages(io_tlb_nslabs * | 145 | io_tlb_start = alloc_bootmem_low_pages_limit(io_tlb_nslabs * |
146 | (1 << IO_TLB_SHIFT)); | 146 | (1 << IO_TLB_SHIFT), 0x100000000); |
147 | if (!io_tlb_start) | 147 | if (!io_tlb_start) |
148 | panic("Cannot allocate SWIOTLB buffer"); | 148 | panic("Cannot allocate SWIOTLB buffer"); |
149 | io_tlb_end = io_tlb_start + io_tlb_nslabs * (1 << IO_TLB_SHIFT); | 149 | io_tlb_end = io_tlb_start + io_tlb_nslabs * (1 << IO_TLB_SHIFT); |