OpenCloudOS-Kernel/arch/arm
Stefano Stabellini 97729b653d xen/swiotlb: check if the swiotlb has already been initialized
xen_swiotlb_init calls swiotlb_late_init_with_tbl, which fails with
-ENOMEM if the swiotlb has already been initialized.

Add an explicit check io_tlb_default_mem != NULL at the beginning of
xen_swiotlb_init. If the swiotlb is already initialized print a warning
and return -EEXIST.

On x86, the error propagates.

On ARM, we don't actually need a special swiotlb buffer (yet), any
buffer would do. So ignore the error and continue.

CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrvsky@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210512201823.1963-3-sstabellini@kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
2021-05-14 15:52:11 +02:00
..
boot Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
common ARM: 9049/1: locomo: make locomo bus's remove callback return void 2021-02-01 19:44:30 +00:00
configs Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
crypto crypto: arm/curve25519 - Move '.fpu' after '.arch' 2021-04-16 21:16:34 +10:00
include Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
kernel Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
lib
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: Move prototypes to mutually included header 2021-03-26 18:20:49 +01:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci ARM: davinci: Constify the software nodes 2021-04-08 23:45:55 +02:00
mach-digicolor
mach-dove
mach-ep93xx
mach-exynos ARM: exynos: correct kernel doc in platsmp 2021-04-06 22:30:02 +02:00
mach-footbridge ARM updates for 5.13-rc1: 2021-05-06 09:28:07 -07:00
mach-gemini
mach-highbank
mach-hisi ARM: hisi: use the correct HiSilicon copyright 2021-04-02 15:36:27 +08:00
mach-imx ARM: SoC changes for v5.13 2021-04-26 11:48:26 -07:00
mach-integrator
mach-iop32x ARM: iop32x: disable N2100 PCI parity reporting 2021-03-31 12:29:40 -05:00
mach-ixp4xx
mach-keystone ARM: keystone: fix integer overflow warning 2021-04-01 16:32:37 +02:00
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp
mach-moxart
mach-mstar ARM: mstar: Select MSTAR_MSC313_MPLL 2021-04-01 12:40:55 +02:00
mach-mv78xx0
mach-mvebu of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
mach-mxs
mach-nomadik
mach-npcm ARM: npcm: Introduce Nuvoton WPCM450 SoC 2021-04-09 14:11:22 +09:30
mach-nspire
mach-omap1 Merge branch 'i2c/for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2021-04-30 13:01:02 -07:00
mach-omap2 ARM: SoC drivers for v5.13 2021-04-26 12:11:52 -07:00
mach-orion5x
mach-oxnas
mach-pxa Merge branch 'i2c/for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2021-04-30 13:01:02 -07:00
mach-qcom
mach-rda
mach-realtek
mach-realview
mach-rockchip
mach-rpc
mach-s3c Merge branch 'i2c/for-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2021-04-30 13:01:02 -07:00
mach-s5pv210
mach-sa1100 ARM: 9049/1: locomo: make locomo bus's remove callback return void 2021-02-01 19:44:30 +00:00
mach-shmobile
mach-socfpga ARM: socfpga: drop ARCH_SOCFPGA 2021-03-23 11:03:36 -05:00
mach-spear ARM/spi: spear: Drop PL022 num_chipselect 2021-04-08 15:21:58 +01:00
mach-sti
mach-stm32 ARM: stm32: Add a new SoC - STM32H750 2021-04-01 09:54:45 +02:00
mach-sunxi
mach-tegra
mach-uniphier
mach-ux500 ARM: ux500: make ux500_cpu_die static 2021-04-01 22:30:49 +02:00
mach-versatile
mach-vexpress
mach-vt8500
mach-zynq
mm ARM updates for 5.13-rc1: 2021-05-06 09:28:07 -07:00
net
nwfpe
plat-omap ARM: OMAP2+: Use DEFINE_SPINLOCK() for spinlock 2021-03-31 08:58:42 +03:00
plat-orion
plat-pxa
plat-versatile
probes ARM updates for 5.13-rc1: 2021-05-06 09:28:07 -07:00
tools ARM updates for 5.13-rc1: 2021-05-06 09:28:07 -07:00
vdso ARM: 9051/1: vdso: remove unneded extra-y addition 2021-02-01 19:48:06 +00:00
vfp
xen xen/swiotlb: check if the swiotlb has already been initialized 2021-05-14 15:52:11 +02:00
Kbuild
Kconfig mm: drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE 2021-05-05 11:27:25 -07:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM: socfpga: introduce common ARCH_INTEL_SOCFPGA 2021-03-23 11:03:35 -05:00
Makefile ARM: socfpga: introduce common ARCH_INTEL_SOCFPGA 2021-03-23 11:03:35 -05:00