On Tuesday 13 May 2014 11:53:40 albuer wrote:
I use __dma_free_remap() to unmap this area that come from dma_alloc_coherent().
Ah, right. This probably fails when it gets unmapped again. It also seems you had to export this interface first, since in the upstream version it is marked 'static'.
According to your suggestion, i don't do map in __alloc_from_contiguous() , the test looks all right, i still need to do more tests, it takes about two days.
If the test can pass, may i submit the code to your kernel?
Please submit it for review to linux-arm-kernel@lists.infradead.org first, and put the people on Cc that are listed frequently in the git history for arch/arm/mm/dma-mapping.c. Russell will be the one to merge the patch once it's been reviewed successfully.
Arnd