diff options
author | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2020-07-10 15:34:17 -0700 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2020-08-04 07:42:09 +0200 |
commit | 8b1e868f66076490189a36d984fcce286cdd6295 (patch) | |
tree | 29a3dcc2300c1716541cbda504a4052ee4c37eee /drivers/soc/xilinx | |
parent | f5ec6723269d9652ce42927cc03485061d663b23 (diff) | |
download | linux-stable-8b1e868f66076490189a36d984fcce286cdd6295.tar.gz linux-stable-8b1e868f66076490189a36d984fcce286cdd6295.tar.bz2 linux-stable-8b1e868f66076490189a36d984fcce286cdd6295.zip |
swiotlb-xen: use vmalloc_to_page on vmalloc virt addresses
xen_alloc_coherent_pages might return pages for which virt_to_phys and
virt_to_page don't work, e.g. ioremap'ed pages.
So in xen_swiotlb_free_coherent we can't assume that virt_to_page works.
Instead add a is_vmalloc_addr check and use vmalloc_to_page on vmalloc
virt addresses.
This patch fixes the following crash at boot on RPi4 (the underlying
issue is not RPi4 specific):
https://marc.info/?l=xen-devel&m=158862573216800
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
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-1-sstabellini@kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/soc/xilinx')
0 files changed, 0 insertions, 0 deletions