msm: adsprpc: stub out buffer ownership for TVM
In TVM buffers might be lend from PVM and ownership might be shared between TVM and PVM. This might lead to some issues in TVM. Change-Id: I9c2ea67c1c4664512881a301cf57ab5e204f6a65 Signed-off-by: Edgar Flores <quic_edgarf@quicinc.com>
Tento commit je obsažen v:

odevzdal
Gerrit - the friendly Code Review server

rodič
c0787f2846
revize
1c15545211
@@ -1196,7 +1196,10 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd, struct dma_buf *
|
||||
err = -EBADFD;
|
||||
goto bail;
|
||||
}
|
||||
|
||||
#if !IS_ENABLED(CONFIG_MSM_ADSPRPC_TRUSTED)
|
||||
map->secure = (mem_buf_dma_buf_exclusive_owner(map->buf)) ? 0 : 1;
|
||||
#endif
|
||||
map->va = 0;
|
||||
map->phys = 0;
|
||||
|
||||
@@ -1261,7 +1264,10 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd, struct dma_buf *
|
||||
goto bail;
|
||||
}
|
||||
}
|
||||
|
||||
#if !IS_ENABLED(CONFIG_MSM_ADSPRPC_TRUSTED)
|
||||
map->secure = (mem_buf_dma_buf_exclusive_owner(map->buf)) ? 0 : 1;
|
||||
#endif
|
||||
if (map->secure) {
|
||||
if (!fl->secsctx)
|
||||
err = fastrpc_session_alloc(chan, 1, me->share_securecb,
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele