Re: Memory corruption with CONFIG_SWIOTLB_DYNAMIC=y

From: Christoph Hellwig
Date: Mon Nov 27 2023 - 10:59:21 EST


On Thu, Nov 23, 2023 at 11:16:08AM +0100, Petr Tesařík wrote:
> > To sum it up, there are two types of alignment:
> >
> > 1. specified by a device's min_align_mask; this says how many low
> > bits of a buffer's physical address must be preserved,
> >
> > 2. specified by allocation size and/or the alignment parameter;
> > this says how many low bits in the first IO TLB slot's physical
> > address must be zero.

Both are correct.