diff options
| author | John Ernberg <[email protected]> | 2025-05-02 11:40:55 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2025-05-07 13:27:42 +0000 |
| commit | cd9c058489053e172a6654cad82ee936d1b09fab (patch) | |
| tree | 8d87556e058cfca92d55c76a23c7c3d1e39d7376 /rust/helpers/platform.c | |
| parent | xen: fix multicall debug feature (diff) | |
| download | kernel-cd9c058489053e172a6654cad82ee936d1b09fab.tar.gz kernel-cd9c058489053e172a6654cad82ee936d1b09fab.zip | |
xen: swiotlb: Use swiotlb bouncing if kmalloc allocation demands it
Xen swiotlb support was missed when the patch set starting with
4ab5f8ec7d71 ("mm/slab: decouple ARCH_KMALLOC_MINALIGN from
ARCH_DMA_MINALIGN") was merged.
When running Xen on iMX8QXP, a SoC without IOMMU, the effect was that USB
transfers ended up corrupted when there was more than one URB inflight at
the same time.
Add a call to dma_kmalloc_needs_bounce() to make sure that allocations too
small for DMA get bounced via swiotlb.
Closes: https://lore.kernel.org/linux-usb/[email protected]/
Fixes: 4ab5f8ec7d71 ("mm/slab: decouple ARCH_KMALLOC_MINALIGN from ARCH_DMA_MINALIGN")
Cc: [email protected] # v6.5+
Signed-off-by: John Ernberg <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
