Thread (35 messages) 35 messages, 8 authors, 2018-12-05

[PATCH v2 0/3] iommu/io-pgtable-arm-v7s: Use DMA32 zone for page tables

From: mhocko@kernel.org (Michal Hocko)
Date: 2018-11-23 12:30:45
Also in: linux-iommu, linux-mm, lkml

On Fri 23-11-18 13:23:41, Vlastimil Babka wrote:
On 11/22/18 9:23 AM, Christoph Hellwig wrote:
[...]
quoted
But I do agree with the sentiment of not wanting to spread GFP_DMA32
futher into the slab allocator.
I don't see a problem with GFP_DMA32 for custom caches. Generic
kmalloc() would be worse, since it would have to create a new array of
kmalloc caches. But that's already ruled out due to the alignment.
Yes that makes quite a lot of sense to me. We do not really need a
generic support. Just make sure that if somebody creates a GFP_DMA32
restricted cache then allow allocating restricted memory from that.

Is there any fundamental reason that this wouldn't be possible?
-- 
Michal Hocko
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help