Răsfoiți Sursa

msm: eva: improve frame buf dump info

Fix a missing pkt_type dump from dma_cache.

Change-Id: I99bbbb7bd6278ecf04c8bfcbba041373ab28826d
Signed-off-by: George Shen <[email protected]>
George Shen 2 ani în urmă
părinte
comite
18119d7649
2 a modificat fișierele cu 5 adăugiri și 3 ștergeri
  1. 4 2
      msm/eva/msm_cvp_buf.c
  2. 1 1
      msm/eva/msm_cvp_common.c

+ 4 - 2
msm/eva/msm_cvp_buf.c

@@ -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);

+ 1 - 1
msm/eva/msm_cvp_common.c

@@ -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;