Skip to content

RFC allow fallback to swiotlb on hw iommu init failures

Chris Wright lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bootmem: refactor free_all_bootmem_coremm/bootmem.c+41 -200 replies
2/3bootmem: add free_bootmem_lateinclude/linux/bootmem.h mm/bootmem.c+39 -50 replies
3/3iommu: allow fallback to swiotlb upon hw iommu initialization failurearch/x86/include/asm/swiotlb.h arch/x86/kernel/pci-dma.c arch/x86/kernel/pci-swiotlb.c +2 more+41 -70 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/3] allow fallback to swiotlb on hw iommu init failures

This short series gives us the ability to allocate the swiotlb and then conditionally free it if we discover it isn't needed. This allows us to put swiotlb to use when the hw iommu fails to initialize properly.

This needs some changes to the bootmem allocator to give the ability to free reserved bootmem directly to the page allocator after bootmem is torn down.

 arch/x86/include/asm/swiotlb.h |    4 ++
 arch/x86/kernel/pci-dma.c      |    4 +-
 arch/x86/kernel/pci-swiotlb.c  |   27 +++++++++---
 include/linux/bootmem.h        |    1 +
 include/linux/swiotlb.h        |    3 +
 lib/swiotlb.c                  |   10 ++++
 mm/bootmem.c                   |   98 +++++++++++++++++++++++++++++++---------
 7 files changed, 118 insertions(+), 29 deletions(-)

thanks,
-chris