Re: [RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-13 Thread Toshi Kani
On Fri, 2013-09-13 at 11:36 +0800, Tang Chen wrote: > Hi Toshi, > > On 09/13/2013 03:22 AM, Toshi Kani wrote: > .. > >> + if (memblock_direction_bottom_up()) { > >> + addr = memblock_alloc_bottom_up( > >> +

Re: [RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-13 Thread Toshi Kani
On Fri, 2013-09-13 at 11:36 +0800, Tang Chen wrote: Hi Toshi, On 09/13/2013 03:22 AM, Toshi Kani wrote: .. + if (memblock_direction_bottom_up()) { + addr = memblock_alloc_bottom_up( + MEMBLOCK_ALLOC_ACCESSIBLE, +

Re: [RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-12 Thread Tang Chen
Hi Toshi, On 09/13/2013 03:22 AM, Toshi Kani wrote: .. + if (memblock_direction_bottom_up()) { + addr = memblock_alloc_bottom_up( + MEMBLOCK_ALLOC_ACCESSIBLE, +

Re: [RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-12 Thread Toshi Kani
On Thu, 2013-09-12 at 17:52 +0800, Tang Chen wrote: > During early boot, if the bottom up mode is set, just > try allocating bottom up from the end of kernel image, > and if that fails, do normal top down allocation. > > So in function dma_contiguous_reserve(), we add the > above logic. > >

[RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-12 Thread Tang Chen
During early boot, if the bottom up mode is set, just try allocating bottom up from the end of kernel image, and if that fails, do normal top down allocation. So in function dma_contiguous_reserve(), we add the above logic. Signed-off-by: Tang Chen Reviewed-by: Zhang Yanfei ---

[RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-12 Thread Tang Chen
During early boot, if the bottom up mode is set, just try allocating bottom up from the end of kernel image, and if that fails, do normal top down allocation. So in function dma_contiguous_reserve(), we add the above logic. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com Reviewed-by: Zhang

Re: [RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-12 Thread Toshi Kani
On Thu, 2013-09-12 at 17:52 +0800, Tang Chen wrote: During early boot, if the bottom up mode is set, just try allocating bottom up from the end of kernel image, and if that fails, do normal top down allocation. So in function dma_contiguous_reserve(), we add the above logic.

Re: [RESEND PATCH v2 3/9] x86, dma: Support allocate memory from bottom upwards in dma_contiguous_reserve().

2013-09-12 Thread Tang Chen
Hi Toshi, On 09/13/2013 03:22 AM, Toshi Kani wrote: .. + if (memblock_direction_bottom_up()) { + addr = memblock_alloc_bottom_up( + MEMBLOCK_ALLOC_ACCESSIBLE, +