Re: [PATCH v9 10/24] mm/hmm: let users to tag specific PFN with DMA mapped bit
From: Christoph Hellwig
Date: Thu Apr 24 2025 - 04:12:25 EST
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?