Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-25 Thread Ritesh Harjani
On Thu, Mar 26, 2015 at 6:04 AM, David Rientjes wrote: > On Thu, 26 Mar 2015, Ritesh Harjani wrote: > >> > diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c >> > index 83cd5ac..3f1ac51 100644 >> > --- a/arch/arm/mm/dma-mapping.c >> > +++ b/arch/arm/mm/dma-mapping.c >> > @@ -1150,1

Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-25 Thread David Rientjes
On Thu, 26 Mar 2015, Ritesh Harjani wrote: > > diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c > > index 83cd5ac..3f1ac51 100644 > > --- a/arch/arm/mm/dma-mapping.c > > +++ b/arch/arm/mm/dma-mapping.c > > @@ -1150,13 +1150,28 @@ static struct page **__iommu_alloc_buffer(struct

Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-25 Thread Ritesh Harjani
Hi On Mon, Mar 23, 2015 at 12:57 PM, Tomasz Figa wrote: > IOMMU should be able to use single pages as well as bigger blocks, so if > higher order allocations fail, we should not affect state of the system, > with events such as OOM killer, but rather fall back to order 0 > allocations. > > This p

Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-24 Thread Marek Szyprowski
Hello, On 2015-03-23 08:27, Tomasz Figa wrote: IOMMU should be able to use single pages as well as bigger blocks, so if higher order allocations fail, we should not affect state of the system, with events such as OOM killer, but rather fall back to order 0 allocations. This patch changes the be

Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-23 Thread David Rientjes
On Mon, 23 Mar 2015, Tomasz Figa wrote: > IOMMU should be able to use single pages as well as bigger blocks, so if > higher order allocations fail, we should not affect state of the system, > with events such as OOM killer, but rather fall back to order 0 > allocations. > > This patch changes the

Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations

2015-03-23 Thread Doug Anderson
Tomasz, On Mon, Mar 23, 2015 at 12:27 AM, Tomasz Figa wrote: > IOMMU should be able to use single pages as well as bigger blocks, so if > higher order allocations fail, we should not affect state of the system, > with events such as OOM killer, but rather fall back to order 0 > allocations. > > T