Re: [PATCH v1 0/2] swiotlb: Fix a couple of bugs in sizing areas

From: Roberto Sassu
Date: Mon Jun 26 2023 - 10:09:07 EST


On Mon, 2023-06-26 at 15:01 +0200, Petr Tesarik wrote:
> From: Petr Tesarik <petr.tesarik.ext@xxxxxxxxxx>
>
> While reworking the dynamic SWIOTLB implementation, I ran into some
> locking issues with the current implementation. I believe the bugs
> are serious enough to be fixed separately.

Thanks, excellent work!

Reviewed-by: Roberto Sassu <roberto.sassu@xxxxxxxxxx>

Roberto

> Petr Tesarik (2):
> swiotlb: Always set the number of areas before allocating the pool
> swiotlb: Reduce the number of areas to match actual memory pool size
>
> kernel/dma/swiotlb.c | 46 +++++++++++++++++++++++++++++++++-----------
> 1 file changed, 35 insertions(+), 11 deletions(-)
>