WSL2-Linux-Kernel/arch/arm/xen
Stefano Stabellini d7b461caa6 xen/arm: call dma_to_phys on the dma_addr_t parameter of dma_cache_maint
dma_cache_maint is getting called passing a dma address which could be
different from a physical address.

Add a struct device* parameter to dma_cache_maint.

Translate the dma_addr_t parameter of dma_cache_maint by calling
dma_to_phys. Do it for the first page and all the following pages, in
case of multipage handling.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Corey Minyard <cminyard@mvista.com>
Tested-by: Roman Shaposhnik <roman@zededa.com>
Link: https://lore.kernel.org/r/20200710223427.6897-11-sstabellini@kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
2020-08-04 07:54:58 +02:00
..
Makefile xen/efi: have a common runtime setup function 2019-10-02 10:31:07 -04:00
enlighten.c arm/xen: remove the unused macro GRANT_TABLE_PHYSADDR 2020-06-29 16:16:06 -07:00
grant-table.c
hypercall.S
mm.c xen/arm: call dma_to_phys on the dma_addr_t parameter of dma_cache_maint 2020-08-04 07:54:58 +02:00
p2m.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00