Message ID | 20230511141146.30465-3-me@dylanvanassche.be |
---|---|
State | Accepted |
Commit | ba2174057252b296ed73fdfa60235a9e20e807ce |
Headers | show |
Series | misc: fastrpc: FastRPC reserved memory assignment for SDM845 SLPI | expand |
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 1ced553ae959..3d47d3d13b5d 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -939,7 +939,10 @@ static int fastrpc_get_args(u32 kernel, struct fastrpc_invoke_ctx *ctx) ctx->msg_sz = pkt_size; - err = fastrpc_buf_alloc(ctx->fl, dev, pkt_size, &ctx->buf); + if (ctx->fl->sctx->sid) + err = fastrpc_buf_alloc(ctx->fl, dev, pkt_size, &ctx->buf); + else + err = fastrpc_remote_heap_alloc(ctx->fl, dev, pkt_size, &ctx->buf); if (err) return err;