On 25.02.24 08:56, Vivek Kasireddy wrote:
Currently, some drivers (e.g, Udmabuf) that want to longterm-pin the pages/folios associated with a memfd, do so by simply taking a reference on them. This is not desirable because the pages/folios may reside in Movable zone or CMA block. Therefore, having drivers use memfd_pin_folios() API ensures that the folios are appropriately pinned via FOLL_PIN for longterm DMA. This patchset also introduces a few helpers and converts the Udmabuf driver to use folios and memfd_pin_folios() API to longterm-pin the folios for DMA. Two new Udmabuf selftests are also included to test the driver and the new API. ---
Sorry Vivek, I got distracted. What's the state of this? I assume it's not in an mm tree yet.
I try to get this reviewed this week. If I fail to do that, please ping me. -- Cheers, David / dhildenb