On Thu, Apr 24, 2025 at 11:07:44AM +0300, Leon Romanovsky wrote: > > I see, so yes order occupies 5 bits [-4,-5,-6,-7,-8] and the > > DMA_MAPPED overlaps, it should be 9 not 7 because of the backwardness. > > Thanks for the fix. Maybe we can use the chance to make the scheme less fragile? i.e. put flags in the high bits and derive the first valid bit from the pfn order?