Messages in this thread | | | Subject | Re: Can Linux live without DMA zone? | From | Krzysztof Halasa <> | Date | Fri, 03 Nov 2006 18:54:13 +0100 |
| |
Arjan van de Ven <arjan@infradead.org> writes:
> you're right in theory, but the kernel only has a few pools of memory > available, but not at every bit boundary. there is a 32 bit pool > (GFP_DMA32) on some, a 30-ish bit pool (GFP_KERNEL) on others, and a 24 > bit pool (GFP_DMA) with basically nothing inbetween.
Perhaps naive question, but... what's wrong with allocating memory from the top (within given address mask[1], size-wise)? I think we don't allocate more than 1 page with kmalloc anymore, do we?
[1] - some devices (a specific StrongARM only?) need non-continuous masks due to a hardware bug(s). -- Krzysztof Halasa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |