Thread (20 messages) 20 messages, 4 authors, 2012-02-24

[PATCHv6 7/7] ARM: dma-mapping: add support for IOMMU mapper

From: m.szyprowski@samsung.com (Marek Szyprowski)
Date: 2012-02-24 15:30:22
Also in: linux-arch, linux-iommu, linux-mm, linux-samsung-soc

Hello,

On Friday, February 24, 2012 3:31 PM Arnd Bergmann wrote:
On Friday 24 February 2012, Marek Szyprowski wrote:
quoted
I want to use some kind of chained arrays, each of at most of PAGE_SIZE. This code
doesn't really need to keep these page pointers in contiguous virtual memory area, so
it will not be a problem here.
Sounds like sg_alloc_table(), could you reuse that instead of rolling your own?
I only need to store 'struct page *' there. sg_alloc_table() operates on 'struct statterlist'
entries, which are 4 to 6 times larger than a simple 'struct page *' entry. I don't want to waste
so much memory just for reusing a two function. Implementing the same idea with pure 
'struct page *' pointers will be just a matter of a few lines.

Best regards
-- 
Marek Szyprowski
Samsung Poland R&D Center
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help