[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <54645B38.10603@lge.com>
Date: Thu, 13 Nov 2014 16:18:16 +0900
From: Gioh Kim <gioh.kim@....com>
To: Colin Cross <ccross@...roid.com>, Joonsoo Kim <js1304@...il.com>
CC: John Stultz <john.stultz@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
lauraa@...eaurora.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
"ÀÌ°ÇÈ£/Ã¥ÀÓ¿¬±¸¿ø/SW Platform(¿¬)AOTÆÀ(gunho.lee@....com)"
<gunho.lee@....com>
Subject: Why does ion_cma_allocate need GFP_HIGHUSER | __GFP_ZERO flags?
Hi,
I'm wondering why dma_alloc_coherent needs GFP_HIGHUSER | __GFP_ZERO flags in ion_cma_allocate().
I think dma_alloc_coherent can go to __dma_alloc if the system has CMA area.
If __GFP_WAIT flag is set, it allocates memory from atomic pool.
So I think calling dma_alloc_coherent with __GFP_WAIT is enough.
And can I get zero-filled-memory from CMA if I set __GFP_ZERO?
--
Thanks,
Gioh Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists