On Mon, Sep 09, 2019 at 02:56:56PM +0200, Thierry Reding wrote: > From: Thierry Reding <treding@xxxxxxxxxx> > > When enabling the DMA map merging capability for a queue, ensure that > the maximum segment size does not exceed the device's limit. We can't do that unfortunately. If we use the virt_boundary setting we do aggressive merges that there is no accounting for. So we can't limit the segment size. And at least for the case how devices usually do the addressing (page based on not sgl based) that needs the virt_boundary there isn't really any concept like a segment anyway.