[v1,0/2] Add changes for cached buffer and persistent header buffers

Message ID 1686307187-15199-1-git-send-email-quic_ekangupt@quicinc.com
Headers
Series Add changes for cached buffer and persistent header buffers |

Message

Ekansh Gupta June 9, 2023, 10:39 a.m. UTC
  This patch series carries changes to reduce RPC call overhead by
skippikng DMA API allocation calls for all type of buffer allocation
requests.

Cached buffer support enables caching of allocated buffers
instead of freeing which can be reused for any new request.

Persistent header buffer changes allocated a number for header
buffers during CDSP process initialization which is then used
for remote calls by the process.

When any process make a remote call, the metadata buffer is first
tried to be used from allocated persistent header buffers. If due
to any reason, persistent header buffers are not available, the
allocation request falls back to cached buffers and allocations
using DMA API.

Ekansh Gupta (2):
  misc: fastrpc: Add cached buffer support
  misc: fastrpc: Add persistent header buffer support

 drivers/misc/fastrpc.c      | 348 ++++++++++++++++++++++++++++++++++++--------
 include/uapi/misc/fastrpc.h |   8 +
 2 files changed, 295 insertions(+), 61 deletions(-)