On Wed, Sep 21, 2022 at 04:28:32PM -0700, Bart Van Assche wrote: > I have been asked to add support for DMA segment sizes that are smaller > than the page size to support a UFS controller with a maximum DMA segment > size of 4 KiB and a page size > 4 KiB (my understanding of the JEDEC UFS > host controller specification is that UFS host controllers should support a > maximum DMA segment size of 256 KiB). Does anyone want to comment on this > before I start working on a patch series? Don't do it. This gets us into all kinds of corner cases, and even worse now requires to do the expensive segment walk for every I/O while right now we have a nice little fast path.