Skip to content

Small fixes for swiotlb

Chao Gao linux-iommu lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/23 patches 0 repliesNew
  2. v1 posting 1/23 patches 1 replyApplied

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3swiotlb: remove unused fields in io_tlb_meminclude/linux/swiotlb.h kernel/dma/swiotlb.c+0 -70 replies
2/3swiotlb: consolidate rounding up default_nslabskernel/dma/swiotlb.c+18 -160 replies
3/3swiotlb: ensure a segment doesn't cross the area boundarykernel/dma/swiotlb.c+10 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RESEND PATCH 0/3] Small fixes for swiotlb

Resend reason: use correct IOMMU mailing list.
---

They are found when I try to rebase my swiotlb optimizations onto the latest dma-mapping tree.

Patch 1 is to remove unused fields.
Patch 2-3 are to fix a corner case that area size can be smaller than the number of slots in a segment (128). Such small areas conflict with an implication of the mechanism used to track free slots.

Chao Gao (3):
swiotlb: remove unused fields in io_tlb_mem
swiotlb: consolidate rounding up default_nslabs
swiotlb: ensure a segment doesn't cross the area boundary

 include/linux/swiotlb.h |  5 -----
 kernel/dma/swiotlb.c    | 45 ++++++++++++++++++++++++-----------------
 2 files changed, 27 insertions(+), 23 deletions(-)
Signature · 1 line
2.25.1