public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] misc: fastrpc: Refactor and add userspace buffer support
@ 2025-11-28 10:34 Ekansh Gupta
  2025-11-28 10:34 ` [PATCH v2 1/2] misc: fastrpc: Refactor mmap and munmap logic into helper functions Ekansh Gupta
  2025-11-28 10:34 ` [PATCH v2 2/2] misc: fastrpc: Support mapping userspace-allocated buffers Ekansh Gupta
  0 siblings, 2 replies; 6+ messages in thread
From: Ekansh Gupta @ 2025-11-28 10:34 UTC (permalink / raw)
  To: srini, linux-arm-msm
  Cc: gregkh, quic_bkumar, linux-kernel, quic_chennak, dri-devel, arnd,
	dmitry.baryshkov

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/20250704083726.1901705-1-ekansh.gupta@oss.qualcomm.com/

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-02  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-28 10:34 [PATCH v2 0/2] misc: fastrpc: Refactor and add userspace buffer support Ekansh Gupta
2025-11-28 10:34 ` [PATCH v2 1/2] misc: fastrpc: Refactor mmap and munmap logic into helper functions Ekansh Gupta
2025-11-29 11:10   ` kernel test robot
2025-11-28 10:34 ` [PATCH v2 2/2] misc: fastrpc: Support mapping userspace-allocated buffers Ekansh Gupta
2025-11-28 15:32   ` Greg KH
2025-12-02  6:07     ` Ekansh Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox