Skip to content

x86 dma_*_coherent rework patchset

Joerg Roedel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86: add alloc_coherent dma_ops callback to GART driverarch/x86/kernel/pci-gart_64.c+21 -03 replies
2/7x86: add free_coherent dma_ops callback to GART driverarch/x86/kernel/pci-gart_64.c+10 -02 replies
3/7x86: add free_coherent dma_ops callback to Calgary IOMMU driverarch/x86/kernel/pci-calgary_64.c+14 -01 reply
4/7x86: add alloc_coherent dma_ops callback to NOMMU driverarch/x86/kernel/pci-nommu.c+38 -01 reply
5/7x86: add free_coherent dma_ops callback to NOMMU driverarch/x86/kernel/pci-nommu.c+7 -00 replies
6/7x86: cleanup dma_*_coherent functionsarch/x86/kernel/pci-dma.c+10 -1062 replies
7/7x86, AMD IOMMU: remove obsolete FIXME commentarch/x86/kernel/amd_iommu.c+0 -20 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchMuli Ben-Yehuda
1/7
2/7
3/7A-b
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] x86 dma_*_coherent rework patchset

Hi,

this patchset reworks the dma_*_coherent functions in the DMA layer for the x86 architecture. The patch series extends the existing DMA backends with missing *coherent callbacks and simplifies the generic function to basically only call the registered backend. This allows future optimizations in hardware specific IOMMU implementations.
The code ist tested on AMD64 with AMD IOMMU and GART as well as on my old 486 box. It is not yet tested on a Calgary IOMMU system.

Joerg

git diff --stat tip/master:

 arch/x86/kernel/amd_iommu.c      |    2 -
 arch/x86/kernel/pci-calgary_64.c |   14 +++++
 arch/x86/kernel/pci-dma.c        |  116 +++----------------------------------
 arch/x86/kernel/pci-gart_64.c    |   31 ++++++++++
 arch/x86/kernel/pci-nommu.c      |   45 +++++++++++++++
 5 files changed, 100 insertions(+), 108 deletions(-)