On Wed, Feb 11, 2026 at 10:51:32AM -0800, Matthew Brost wrote:
> > So to be a little nicer on the IOVA allocator we could use the below?
> > 
> >             dma_iova_try_alloc(dev, &state->dma_state,
> >                                        (npages - i) * PAGE_SIZE >=
> >                                        HPAGE_PMD_SIZE ?
> >                                        HPAGE_PMD_SIZE : 0,
> >                                        (npages - i) * PAGE_SIZE);
> > 
> 
> Yes, we can do that. No reason to force alignment if our copy code isn't
> going to try to use 2M GPU pages.

When it comes to this I prefer we try to add alignment information
down to the iova allocator because I have other use cases for this
alignment optimization.

Jason

Reply via email to