Skip to content
Snippets Groups Projects
Commit 4c786679 authored by Olav Haugan's avatar Olav Haugan Committed by Iliyan Malchev
Browse files

gpu: ion: Minimize allocation fallback delay


When we allocate from iommu heap we first try to allocate 1M pages. If
that fails we try 64K pages, which falls back to 4K pages. However,
we don't want to incur too much overhead when allocating with fallbacks
so we don't want the higher order page allocation to retry, perform
reclaim, or run memory compaction.

Configure the GFP flags to ensure that when we allocate pages greater
than order 0 we don't try to do any retries, reclaim, access emergency
pools, or run memory compaction. This will ensure lower memory allocation
latency for applications.

CRs-Fixed: 470389
Change-Id: Ibb3483dddbedbc733a1f7968821e7bc47bedffcd
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
(cherry picked from commit 365a6e06)
parent 5cbb13d7
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment