[PATCH 0/3] Small fixes for swiotlb

From: Chao Gao
Date: Fri Jul 15 2022 - 06:45:53 EST


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(-)

--
2.25.1