public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xen: swiotlb: 2 fixes SoCs w/o IOMMU (e.g. iMX8QXP)
@ 2025-05-02 11:40 John Ernberg
  2025-05-02 11:40 ` [PATCH 1/2] xen: swiotlb: Use swiotlb bouncing if kmalloc allocation demands it John Ernberg
  2025-05-02 11:40 ` [PATCH 2/2] xen: swiotlb: Implement map_resource callback John Ernberg
  0 siblings, 2 replies; 11+ messages in thread
From: John Ernberg @ 2025-05-02 11:40 UTC (permalink / raw)
  To: Juergen Gross, Stefano Stabellini
  Cc: Oleksandr Tyshchenko, Catalin Marinas, Andrew Morton,
	xen-devel@lists.xenproject.org, iommu@lists.linux.dev,
	linux-kernel@vger.kernel.org, imx@lists.linux.dev, John Ernberg

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-05-09  7:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 11:40 [PATCH 0/2] xen: swiotlb: 2 fixes SoCs w/o IOMMU (e.g. iMX8QXP) John Ernberg
2025-05-02 11:40 ` [PATCH 1/2] xen: swiotlb: Use swiotlb bouncing if kmalloc allocation demands it John Ernberg
2025-05-02 17:07   ` Stefano Stabellini
2025-05-08 15:21   ` Catalin Marinas
2025-05-02 11:40 ` [PATCH 2/2] xen: swiotlb: Implement map_resource callback John Ernberg
2025-05-02 17:20   ` Stefano Stabellini
2025-05-06 12:22     ` John Ernberg
2025-05-07 23:09       ` Stefano Stabellini
2025-05-08  4:14         ` Christoph Hellwig
2025-05-08 23:14           ` Stefano Stabellini
2025-05-09  7:48             ` John Ernberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox