This series improves the FastRPC driver by first refactoring mmap and munmap logic into helper functions, and then adding support for mapping userspace-allocated buffers to the DSP.
Patch 1 introduces helper functions for DSP-side operations, improving code readability and preparing for future enhancements. Patch 2 builds on this by enabling applications to share memory allocated in userspace (via rpcmem or DMABUF) with the DSP through SMMU, improving flexibility and performance. No functional changes are introduced in the first patch; the second patch adds the new feature. Patch [v1]: https://lore.kernel.org/all/[email protected]/ Changes in v2: - Split change into meaningful patches. - Replaced uintptr_t with u64. - Fixed commit message. Ekansh Gupta (2): misc: fastrpc: Refactor mmap and munmap logic into helper functions misc: fastrpc: Support mapping userspace-allocated buffers drivers/misc/fastrpc.c | 190 ++++++++++++++++++++++++++++++++--------- 1 file changed, 151 insertions(+), 39 deletions(-) -- 2.34.1
