On Tue, Jun 16, 2026 at 06:04:03AM +0000, Kasireddy, Vivek wrote:
This is helpful for importers like net/core/devmem that expect dmabuf sg
IMO, udmabuf needs to detect whether importers can handle segments that are > PAGE_SIZE and set the entries appropriately. Please look into how the GPU drivers and other dmabuf exporters/importers handle this situation, so that we can adopt best practices to address this issue.
Importers have to handle arbitary scatterlists, devmem is just broken if it can't handle the output of sg_alloc_table_from_pages().
Jason