From: Thomas Petazzoni > Sent: 04 February 2017 14:00 ... > This makes complete sense. We use the cookie to store the phys_addr_t > rather than the virtual address. I might be missing something, but it > seems like a very good solution. Thanks for the suggestion, I'll try > this! Why not just store an array index for the buffer info? That would save you having to regenerate kernel virtual addresses from limited info. Or realise that the low bits (page offset) of the dma address and kernel virtual address (and kernel physical for that matter) will always match. 50 bits might be enough for a kernel virtual address. David -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html