Re: [PATCH kernel] x86/swiotlb/amd: Half the size if allocation failed

From: Christoph Hellwig
Date: Sun Oct 30 2022 - 04:05:53 EST


The subject looks wrong - this just touches the swiotlb code, and
nothing x86 or AMD specific.

The code flow now looks a little confusing. Can yu just add a little
swiotlb_memblock_alloc helper that does the two variants of memblock
allocation and remap, so that we can keep a simply
loop around them in the caller?