summaryrefslogtreecommitdiffstats
path: root/arch/metag/kernel/dma.c
Commit message (Collapse)AuthorAgeFilesLines
* metag: convert to dma_map_opsChristoph Hellwig2016-01-201-34/+112
| | | | | | | | | | Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: James Hogan <james.hogan@imgtec.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Joerg Roedel <jroedel@suse.de> Cc: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* metag: dma: remove dead code in dma_alloc_init()James Hogan2013-11-251-5/+0
| | | | | | | | | | | | 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) == 0 Remove the check. Reported-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: James Hogan <james.hogan@imgtec.com>
* mm/arch: use __free_reserved_page() to simplify the codeXishi Qiu2013-11-131-3/+1
| | | | | | | | | | | | | | | | | | | | 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 <qiuxishi@huawei.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* metag: DMAJames Hogan2013-03-021-0/+507
Add DMA mapping code. Signed-off-by: James Hogan <james.hogan@imgtec.com>