25 Nov, 2013
1 commit
-
Meta has 2 levels of page table so the pmd folds into the pud which
folds into the pgd. Therefore the !pmd check in dma_alloc_init() is dead
code since it essentially checks whether:
(init_mm->pgd + 0x770) == 0Remove the check.
Reported-by: Chen Gang
Signed-off-by: James Hogan
13 Nov, 2013
1 commit
-
Use __free_reserved_page() to simplify the code in arch.
It used split_page() in consistent_alloc()/__dma_alloc_coherent()/dma_alloc_coherent(),
so page->_count == 1, and we can free it safely.__free_reserved_page()
ClearPageReserved()
init_page_count() // it won't change the value
__free_page()Signed-off-by: Xishi Qiu
Cc: James Hogan
Cc: Michal Simek
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
03 Mar, 2013
1 commit
-
Add DMA mapping code.
Signed-off-by: James Hogan