[PATCH 0/2] xen: swiotlb: 2 fixes SoCs w/o IOMMU (e.g. iMX8QXP)
From: John Ernberg
Date: Fri May 02 2025 - 07:56:28 EST
There's 2 problems with DMA today when running Xen on the iMX8QXP SoC.
The first identifies as a USB corruption, but is actually a memory
corruption risk with any small DMA transfer, and just manifests itself
in USB transfers.
This is a regression fix tracing back to Linux 6.5 when the blamed commit
(patch series) landed.
The second one causes any attempt to use DMA via the iMX8QXP eDMA v3 block
to fail with DMA_MAPPING_ERROR when running under Xen because this DMA
controller wants to do DMA in MMIO space.
I'm a little bit more on the fence with the second one, as that never
worked, but is still fixing an issue. There is no Fixes or Cc stable on
this one because of this.
John Ernberg (2):
xen: swiotlb: Use swiotlb bouncing if kmalloc allocation demands it
xen: swiotlb: Implement map_resource callback
drivers/xen/swiotlb-xen.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
--
2.49.0