msm: eva: improve frame buf dump info

Fix a missing pkt_type dump from dma_cache.

Change-Id: I99bbbb7bd6278ecf04c8bfcbba041373ab28826d
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
This commit is contained in:
George Shen
2022-08-03 22:53:08 -07:00
parent e30e31d72b
commit 18119d7649
2 changed files with 5 additions and 3 deletions

View File

@@ -1068,7 +1068,8 @@ void msm_cvp_cache_operations(struct msm_cvp_smem *smem, u32 type,
}
static struct msm_cvp_smem *msm_cvp_session_find_smem(struct msm_cvp_inst *inst,
struct dma_buf *dma_buf)
struct dma_buf *dma_buf,
u32 pkt_type)
{
struct msm_cvp_smem *smem;
int i;
@@ -1082,6 +1083,7 @@ static struct msm_cvp_smem *msm_cvp_session_find_smem(struct msm_cvp_inst *inst,
SET_USE_BITMAP(i, inst);
smem = inst->dma_cache.entries[i];
smem->bitmap_index = i;
smem->pkt_type = pkt_type;
atomic_inc(&smem->refcount);
/*
* If we find it, it means we already increased
@@ -1182,7 +1184,7 @@ static struct msm_cvp_smem *msm_cvp_session_get_smem(struct msm_cvp_inst *inst,
return smem;
}
smem = msm_cvp_session_find_smem(inst, dma_buf);
smem = msm_cvp_session_find_smem(inst, dma_buf, pkt_type);
if (!smem) {
found = 0;
smem = kmem_cache_zalloc(cvp_driver->smem_cache, GFP_KERNEL);

View File

@@ -1563,7 +1563,7 @@ int cvp_print_inst(u32 tag, struct msm_cvp_inst *inst)
dprintk(tag, "%s inst stype %d %pK id = %#x ptype %#x prio %#x secure %#x kmask %#x dmask %#x, kref %#x state %#x\n",
inst->proc_name, inst->session_type, inst, hash32_ptr(inst->session),
inst->prop.type, inst->prop.priority, inst->prop.is_secure,
inst, inst->prop.kernel_mask, inst->prop.dsp_mask,
inst->prop.kernel_mask, inst->prop.dsp_mask,
kref_read(&inst->kref), inst->state);
return 0;