Thread (38 messages) flat view 38 messages, 7 authors, 2018-12-05

[PATCH 9/9] csky: use the generic remapping dma alloc implementation

From: hch@lst.de (Christoph Hellwig)
Date: 2018-11-09 07:52:02
Also in: linux-iommu, lkml

On Tue, Nov 06, 2018 at 03:01:41PM +0800, Guo Ren wrote:
quoted
+	return dma_atomic_pool_init(GFP_KERNEL, pgprot_noncached(PAGE_KERNEL));
 }
 postcore_initcall(atomic_pool_init);
Seems also could remove atomic_pool_init from csky, why not put them in
common?
The code basically moved to common code, but the architecture needs
to pick the gfp mask (GFP_DMA32 on arm vs GFP_KERNEL on csky for example)
and the pgprot it needs for uncached remappings.
Reviewed-by: Guo Ren <redacted>

Compile is OK, qemu boot OK. Functions are the same and just move to common.
Thanks for your review!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help