All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Tomasz Figa <tfiga@chromium.org>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org,
	Russell King <linux@arm.linux.org.uk>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Will Deacon <will.deacon@arm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Laura Abbott <lauraa@codeaurora.org>,
	Ritesh Harjani <ritesh.harjani@gmail.com>,
	Carlo Caione <carlo@caione.org>,
	Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	Douglas Anderson <dianders@chromium.org>,
	Sonny Rao <sonnyrao@chromium.org>
Subject: Re: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations
Date: Mon, 23 Mar 2015 16:07:49 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.10.1503231607380.24576@chino.kir.corp.google.com> (raw)
In-Reply-To: <1427095620-20994-1-git-send-email-tfiga@chromium.org>

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 behavior of ARM IOMMU DMA allocator to use
> __GFP_NORETRY, which bypasses OOM invocation, for orders higher than
> zero and, only if that fails, fall back to normal order 0 allocation
> which might invoke OOM killer.
> 
> Signed-off-by: Tomasz Figa <tfiga@chromium.org>

Acked-by: David Rientjes <rientjes@google.com>

WARNING: multiple messages have this Message-ID (diff)
From: rientjes@google.com (David Rientjes)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations
Date: Mon, 23 Mar 2015 16:07:49 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.10.1503231607380.24576@chino.kir.corp.google.com> (raw)
In-Reply-To: <1427095620-20994-1-git-send-email-tfiga@chromium.org>

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 behavior of ARM IOMMU DMA allocator to use
> __GFP_NORETRY, which bypasses OOM invocation, for orders higher than
> zero and, only if that fails, fall back to normal order 0 allocation
> which might invoke OOM killer.
> 
> Signed-off-by: Tomasz Figa <tfiga@chromium.org>

Acked-by: David Rientjes <rientjes@google.com>

  parent reply	other threads:[~2015-03-23 23:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23  7:27 [PATCH v2] ARM: mm: Do not invoke OOM for higher order IOMMU DMA allocations Tomasz Figa
2015-03-23  7:27 ` Tomasz Figa
2015-03-23 16:30 ` Doug Anderson
2015-03-23 16:30   ` Doug Anderson
2015-03-23 23:07 ` David Rientjes [this message]
2015-03-23 23:07   ` David Rientjes
2015-03-24  9:02 ` Marek Szyprowski
2015-03-24  9:02   ` Marek Szyprowski
2015-03-25 18:39 ` Ritesh Harjani
2015-03-25 18:39   ` Ritesh Harjani
2015-03-26  0:34   ` David Rientjes
2015-03-26  0:34     ` David Rientjes
2015-03-26  4:31     ` Ritesh Harjani
2015-03-26  4:31       ` Ritesh Harjani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.10.1503231607380.24576@chino.kir.corp.google.com \
    --to=rientjes@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=carlo@caione.org \
    --cc=dianders@chromium.org \
    --cc=lauraa@codeaurora.org \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=m.szyprowski@samsung.com \
    --cc=ritesh.harjani@gmail.com \
    --cc=sonnyrao@chromium.org \
    --cc=tfiga@chromium.org \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.