On 2/22/22 9:05 PM, Christoph Hellwig wrote: > If force bouncing is enabled we can't release the bufffers. typo ^^^^ > > Signed-off-by: Christoph Hellwig <h...@lst.de> > --- > kernel/dma/swiotlb.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c > index f1e7ea160b433..36fbf1181d285 100644 > --- a/kernel/dma/swiotlb.c > +++ b/kernel/dma/swiotlb.c > @@ -378,6 +378,9 @@ void __init swiotlb_exit(void) > unsigned long tbl_vaddr; > size_t tbl_size, slots_size; > > + if (swiotlb_force == SWIOTLB_FORCE) > + return; > + > if (!mem->nslabs) > return; > > Reviewed-by: Anshuman Khandual <anshuman.khand...@arm.com>
- cleanup swiotlb initialization Christoph Hellwig
- [PATCH 01/11] dma-direct: use is_swiotlb_active in ... Christoph Hellwig
- Re: [PATCH 01/11] dma-direct: use is_swiotlb_ac... Anshuman Khandual
- [PATCH 02/11] swiotlb: make swiotlb_exit a no-op if... Christoph Hellwig
- Re: [PATCH 02/11] swiotlb: make swiotlb_exit a ... Anshuman Khandual
- [PATCH 04/11] swiotlb: rename swiotlb_late_init_wit... Christoph Hellwig
- Re: [PATCH 04/11] swiotlb: rename swiotlb_late_... Anshuman Khandual
- [PATCH 05/11] swiotlb: pass a gfp_mask argument to ... Christoph Hellwig
- Re: [PATCH 05/11] swiotlb: pass a gfp_mask argu... Anshuman Khandual
- [PATCH 03/11] swiotlb: simplify swiotlb_max_segment Christoph Hellwig
- Re: [PATCH 03/11] swiotlb: simplify swiotlb_max... Anshuman Khandual
- [PATCH 06/11] MIPS/octeon: use swiotlb_init instead... Christoph Hellwig
- [PATCH 07/11] x86: remove the IOMMU table infrastru... Christoph Hellwig
- Re: [PATCH 07/11] x86: remove the IOMMU table i... Anshuman Khandual
- [PATCH 09/11] swiotlb: add a SWIOTLB_ANY flag to li... Christoph Hellwig