msm: eva: Remove warning during buf unmapping

Persistent buffer unmap is different than frame buffer. It's
expected to be released at the end of session instead of at
frame boundary. Remove the warning of "unexpected unmapping".

Change-Id: I24bfae0b67b1a8989e6a710556d94c8bc4e90aff
Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
George Shen
2021-07-09 14:26:17 -07:00
parent 022b7d2d1b
commit 966d521450
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni

Vedi File

@@ -484,6 +484,7 @@ static u32 msm_cvp_map_user_persist_buf(struct msm_cvp_inst *inst,
if (!smem)
goto exit;
smem->flags |= SMEM_PERSIST;
pbuf->smem = smem;
pbuf->fd = buf->fd;
pbuf->size = buf->size;
@@ -819,7 +820,7 @@ int msm_cvp_session_deinit_buffers(struct msm_cvp_inst *inst)
smem = inst->dma_cache.entries[i];
if (atomic_read(&smem->refcount) == 0) {
print_smem(CVP_MEM, "free", inst, smem);
} else {
} else if (!(smem->flags & SMEM_PERSIST)) {
print_smem(CVP_WARN, "in use", inst, smem);
}
msm_cvp_unmap_smem(inst, smem, "unmap cpu");

Vedi File

@@ -35,7 +35,8 @@ enum smem_prop {
SMEM_ADSP = 0x8,
SMEM_NON_PIXEL = 0x10,
SMEM_PIXEL = 0x20,
SMEM_CAMERA = 0x40
SMEM_CAMERA = 0x40,
SMEM_PERSIST = 0x100,
};
struct msm_cvp_list {