The patch titled Subject: c6x: dma mapping fixes has been added to the -mm tree. Its filename is c6x-convert-to-dma_map_ops-fix-2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/c6x-convert-to-dma_map_ops-fix-2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/c6x-convert-to-dma_map_ops-fix-2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Christoph Hellwig <hch@xxxxxx> Subject: c6x: dma mapping fixes Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/c6x/include/asm/dma-mapping.h | 6 ++++++ arch/c6x/kernel/dma.c | 2 ++ arch/c6x/mm/dma-coherent.c | 10 ++++------ 3 files changed, 12 insertions(+), 6 deletions(-) diff -puN arch/c6x/include/asm/dma-mapping.h~c6x-convert-to-dma_map_ops-fix-2 arch/c6x/include/asm/dma-mapping.h --- a/arch/c6x/include/asm/dma-mapping.h~c6x-convert-to-dma_map_ops-fix-2 +++ a/arch/c6x/include/asm/dma-mapping.h @@ -26,4 +26,10 @@ static inline struct dma_map_ops *get_dm #include <asm-generic/dma-mapping-common.h> +extern void coherent_mem_init(u32 start, u32 size); +void *c6x_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, + gfp_t gfp, struct dma_attrs *attrs); +void c6x_dma_free(struct device *dev, size_t size, void *vaddr, + dma_addr_t dma_handle, struct dma_attrs *attrs); + #endif /* _ASM_C6X_DMA_MAPPING_H */ diff -puN arch/c6x/kernel/dma.c~c6x-convert-to-dma_map_ops-fix-2 arch/c6x/kernel/dma.c --- a/arch/c6x/kernel/dma.c~c6x-convert-to-dma_map_ops-fix-2 +++ a/arch/c6x/kernel/dma.c @@ -122,7 +122,9 @@ struct dma_map_ops c6x_dma_ops = { .alloc = c6x_dma_alloc, .free = c6x_dma_free, .map_page = c6x_dma_map_page, + .unmap_page = c6x_dma_unmap_page, .map_sg = c6x_dma_map_sg, + .unmap_sg = c6x_dma_unmap_sg, .sync_single_for_device = c6x_dma_sync_single_for_device, .sync_single_for_cpu = c6x_dma_sync_single_for_cpu, .sync_sg_for_device = c6x_dma_sync_sg_for_device, diff -puN arch/c6x/mm/dma-coherent.c~c6x-convert-to-dma_map_ops-fix-2 arch/c6x/mm/dma-coherent.c --- a/arch/c6x/mm/dma-coherent.c~c6x-convert-to-dma_map_ops-fix-2 +++ a/arch/c6x/mm/dma-coherent.c @@ -73,8 +73,8 @@ static void __free_dma_pages(u32 addr, i * Allocate DMA coherent memory space and return both the kernel * virtual and DMA address for that space. */ -void *dma_alloc_coherent(struct device *dev, size_t size, - dma_addr_t *handle, gfp_t gfp) +void *c6x_dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, + gfp_t gfp, struct dma_attrs *attrs) { u32 paddr; int order; @@ -94,13 +94,12 @@ void *dma_alloc_coherent(struct device * return phys_to_virt(paddr); } -EXPORT_SYMBOL(dma_alloc_coherent); /* * Free DMA coherent memory as defined by the above mapping. */ -void dma_free_coherent(struct device *dev, size_t size, void *vaddr, - dma_addr_t dma_handle) +void c6x_dma_free(struct device *dev, size_t size, void *vaddr, + dma_addr_t dma_handle, struct dma_attrs *attrs) { int order; @@ -111,7 +110,6 @@ void dma_free_coherent(struct device *de __free_dma_pages(virt_to_phys(vaddr), order); } -EXPORT_SYMBOL(dma_free_coherent); /* * Initialise the coherent DMA memory allocator using the given uncached region. _ Patches currently in -mm which might be from hch@xxxxxx are dma-mapping-make-the-generic-coherent-dma-mmap-implementation-optional.patch arc-convert-to-dma_map_ops.patch arc-convert-to-dma_map_ops-fix.patch avr32-convert-to-dma_map_ops.patch blackfin-convert-to-dma_map_ops.patch c6x-convert-to-dma_map_ops.patch c6x-convert-to-dma_map_ops-fix-2.patch cris-convert-to-dma_map_ops.patch nios2-convert-to-dma_map_ops.patch frv-convert-to-dma_map_ops.patch parisc-convert-to-dma_map_ops.patch mn10300-convert-to-dma_map_ops.patch m68k-convert-to-dma_map_ops.patch metag-convert-to-dma_map_ops.patch sparc-use-generic-dma_set_mask.patch tile-uninline-dma_set_mask.patch dma-mapping-always-provide-the-dma_map_ops-based-implementation.patch dma-mapping-remove-asm-generic-dma-coherenth.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html