Skip to content

integrate dma_ops

Glauber Costa kvm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28x86: introduce pci-dma.carch/x86/kernel/Makefile arch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c +1 more+15 -220 replies
2/28x86: delete empty functions from pci-nommu_64.carch/x86/kernel/pci-nommu_64.c+0 -150 replies
3/28x86: implement mapping_error in pci-nommu_64.carch/x86/kernel/pci-nommu_64.c+12 -00 replies
4/28x86: Add flush_write_buffers in nommu functionsarch/x86/kernel/pci-nommu_64.c+2 -00 replies
5/28x86: use sg_phys in x86_64arch/x86/kernel/pci-nommu_64.c+1 -10 replies
6/28x86: use dma_length in i386arch/x86/kernel/pci-base_32.c include/asm-x86/scatterlist.h+1 -20 replies
7/28x86: use WARN_ON in mapping functionsarch/x86/kernel/pci-nommu_64.c+3 -00 replies
8/28x86: move definition to pci-dma.carch/x86/kernel/pci-base_32.c arch/x86/kernel/pci-dma.c arch/x86/mm/init_64.c+11 -60 replies
9/28x86: move initialization functions to pci-dma.carch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_64.c+25 -230 replies
10/28x86: unify pci-nommuarch/x86/kernel/Makefile arch/x86/kernel/pci-base_32.c arch/x86/kernel/pci-dma.c +3 more+110 -1710 replies
11/28x86: move pci fixup to pci-dma.carch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c arch/x86/kernel/pci-dma_64.c +1 more+19 -290 replies
12/28x86: move x86_64-specific to common code.arch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_64.c+73 -680 replies
13/28x86: merge dma_supportedarch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c arch/x86/kernel/pci-dma_64.c+45 -670 replies
14/28x86: merge iommu initialization parametersDocumentation/feature-removal-schedule.txt arch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c +2 more+89 -910 replies
15/28x86: move dma_coherent functions to pci-dma.carch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c include/asm-x86/dma-mapping.h+89 -850 replies
16/28x86: isolate coherent mapping functionsarch/x86/kernel/pci-dma_32.c arch/x86/kernel/pci-dma_64.c+45 -170 replies
17/28x86: adjust dma_free_coherent for i386arch/x86/kernel/pci-dma_32.c+2 -00 replies
18/28x86: move bad_dma_addressarch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c arch/x86/kernel/pci-dma_64.c+2 -60 replies
19/28x86: remove virt_to_bus in pci-dma_64.carch/x86/kernel/pci-dma_64.c+7 -70 replies
20/28x86: use numa allocation function in i386arch/x86/kernel/pci-dma_32.c+22 -50 replies
21/28x86: retry allocation if failedarch/x86/kernel/pci-dma_32.c+29 -50 replies
22/28x86: use a fallback dev for i386arch/x86/kernel/pci-dma_32.c+13 -00 replies
23/28x86: don't try to allocate from DMA zone at firstarch/x86/kernel/pci-dma_32.c+0 -30 replies
24/28x86: unify gfp masksarch/x86/kernel/pci-dma_32.c arch/x86/kernel/pci-dma_64.c+6 -20 replies
25/28x86: remove kludge from x86_64arch/x86/kernel/pci-dma_64.c+0 -40 replies
26/28x86: return conditional to mmuarch/x86/kernel/pci-dma_32.c+32 -20 replies
27/28x86: don't do dma if mask is NULL.arch/x86/kernel/pci-dma_32.c+3 -00 replies
28/28x86: integrate pci-dma.carch/x86/kernel/Makefile arch/x86/kernel/pci-dma.c arch/x86/kernel/pci-dma_32.c +1 more+176 -3280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/28] integrate dma_ops

Hi,

This is the final integration of dma_ops between x86_64 and i386. The final code is closer to x86_64 than to i386, which is obviously expected.

At the end, pci-dma_{32,64}.c are gone, pci-nommu_64.c is gone, and the temporary pci-base_32.c is gone too.

This patchset received the same level of scrutiny as the others from my side:
compiled tested in at least 6 different random configs, boot tested in my hardware.

The final diffstat says:

 Documentation/feature-removal-schedule.txt |    7 
 arch/x86/kernel/Makefile                   |    9 
 arch/x86/kernel/pci-base_32.c              |   72 ---
 arch/x86/kernel/pci-dma.c                  |  524 +++++++++++++++++++++++++++++
 arch/x86/kernel/pci-dma_32.c               |  503 +++++++--------------------
 arch/x86/kernel/pci-dma_64.c               |  443 +-----------------------
 arch/x86/kernel/pci-nommu.c                |  100 +++++
 arch/x86/kernel/pci-nommu_64.c             |  140 -------
 arch/x86/mm/init_64.c                      |    4 
 include/asm-x86/dma-mapping.h              |   14 
 include/asm-x86/scatterlist.h              |    3 
 11 files changed, 832 insertions(+), 987 deletions(-)