Re: [PATCH] sparc32,leon: Remove unnecessary page_address calls in LEON DMA API.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 29, 2011 at 10:17:00AM +0200, Kristoffer Glembo wrote:
> The function mmu_inval_dma_area takes a virtual address as a parameter
> which is problematic in case the buffer is located in highmem and the
> mapping currently is unavailable.
> 
> Since the function was only implemented for LEON this patch removes
> calls to it in non LEON code paths and renames it to dma_make_coherent
> which instead takes a physical address (which for now is unused since we
> flush the whole cache). This way it is possible to remove several unnecessary
> calls to page_address which will fail if the virtual mapping is unavailable.
> 
> Signed-off-by: Kristoffer Glembo <kristoffer@xxxxxxxxxxx>
Looks good!

Acked-by: Sam Ravnborg <sam@xxxxxxxxxxxx>

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux