Skip to content

extended allocator for amd iommu

Joerg Roedel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12amd-iommu: introduce aperture_range structurearch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+43 -350 replies
2/12amd-iommu: move page table allocation code to seperate functionarch/x86/kernel/amd_iommu.c+61 -250 replies
3/12amd-iommu: handle page table allocation failures in dma_ops codearch/x86/kernel/amd_iommu.c+18 -20 replies
4/12amd-iommu: make address allocator aware of multiple aperture rangesarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+110 -390 replies
5/12amd-iommu: change dma_dom->next_bit to dma_dom->next_addressarch/x86/include/asm/amd_iommu_types.h arch/x86/kernel/amd_iommu.c+10 -90 replies
6/12amd-iommu: move aperture_range allocation code to seperate functionarch/x86/kernel/amd_iommu.c+59 -360 replies
7/12amd-iommu: handle exlusion ranges and unity mappings in alloc_new_rangearch/x86/kernel/amd_iommu.c+60 -110 replies
8/12amd-iommu: enlarge the aperture dynamicallyarch/x86/kernel/amd_iommu.c+18 -20 replies
9/12amd-iommu: remove amd_iommu_size kernel parameterDocumentation/kernel-parameters.txt arch/x86/kernel/amd_iommu.c arch/x86/kernel/amd_iommu_init.c+4 -340 replies
10/12amd-iommu: disable round-robin allocator for CONFIG_IOMMU_STRESSarch/x86/kernel/amd_iommu.c+5 -00 replies
11/12amd-iommu: don't preallocate page tables with CONFIG_IOMMU_STRESSarch/x86/kernel/amd_iommu.c+4 -00 replies
12/12amd-iommu: don't free dma adresses below 512MB with CONFIG_IOMMU_STRESSarch/x86/kernel/amd_iommu.c+5 -00 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/12] extended allocator for amd iommu

This patchset changes the allocator for dma addresses in the AMD IOMMU driver for Linux to support a dynamic size. This patchset extends the default size for the dma_ops aperture to 128MB per default with pre-allocated page tables. If the address space is too small it will be extended dynamically by another 128MB, this time without preallocating the page tables. This way the aperture can grow up to 4GB. It is designed to be easily extendable to even larger dma_ops apertures. The code also introduces three changes to enable stress testing of this code with CONFIG_IOMMU_STRESS. Please review.

diffstat:

 Documentation/kernel-parameters.txt    |    5 -
 arch/x86/include/asm/amd_iommu_types.h |   41 +++-
 arch/x86/kernel/amd_iommu.c            |  439 +++++++++++++++++++++++---------
 arch/x86/kernel/amd_iommu_init.c       |   15 -
 4 files changed, 352 insertions(+), 148 deletions(-)

shortlog:

Joerg Roedel (12):
amd-iommu: introduce aperture_range structure
amd-iommu: move page table allocation code to seperate function
amd-iommu: handle page table allocation failures in dma_ops code
amd-iommu: make address allocator aware of multiple aperture ranges
amd-iommu: change dma_dom->next_bit to dma_dom->next_address
amd-iommu: move aperture_range allocation code to seperate function
amd-iommu: handle exlusion ranges and unity mappings in alloc_new_range
amd-iommu: enlarge the aperture dynamically
amd-iommu: remove amd_iommu_size kernel parameter
amd-iommu: disable round-robin allocator for CONFIG_IOMMU_STRESS
amd-iommu: don't preallocate page tables with CONFIG_IOMMU_STRESS
amd-iommu: don't free dma adresses below 512MB with CONFIG_IOMMU_STRESS