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:
@@ -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,
|
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;
|
struct msm_cvp_smem *smem;
|
||||||
int i;
|
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);
|
SET_USE_BITMAP(i, inst);
|
||||||
smem = inst->dma_cache.entries[i];
|
smem = inst->dma_cache.entries[i];
|
||||||
smem->bitmap_index = i;
|
smem->bitmap_index = i;
|
||||||
|
smem->pkt_type = pkt_type;
|
||||||
atomic_inc(&smem->refcount);
|
atomic_inc(&smem->refcount);
|
||||||
/*
|
/*
|
||||||
* If we find it, it means we already increased
|
* 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;
|
return smem;
|
||||||
}
|
}
|
||||||
|
|
||||||
smem = msm_cvp_session_find_smem(inst, dma_buf);
|
smem = msm_cvp_session_find_smem(inst, dma_buf, pkt_type);
|
||||||
if (!smem) {
|
if (!smem) {
|
||||||
found = 0;
|
found = 0;
|
||||||
smem = kmem_cache_zalloc(cvp_driver->smem_cache, GFP_KERNEL);
|
smem = kmem_cache_zalloc(cvp_driver->smem_cache, GFP_KERNEL);
|
||||||
|
@@ -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",
|
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->proc_name, inst->session_type, inst, hash32_ptr(inst->session),
|
||||||
inst->prop.type, inst->prop.priority, inst->prop.is_secure,
|
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);
|
kref_read(&inst->kref), inst->state);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user