video: driver: Convert debug messages
Add new print format using msm_vidc_inst. Convert existing sid print statements. Change-Id: Iba6774c31ff92997b4f8598e6a705f58bfa1b03c
This commit is contained in:
@@ -53,7 +53,7 @@ static u32 msm_vidc_decoder_bin_size_iris2(struct msm_vidc_inst *inst)
|
||||
HFI_BUFFER_BIN_VP9D(size, width, height,
|
||||
0, num_vpp_pipes);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ static u32 msm_vidc_decoder_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
else if (inst->codec == MSM_VIDC_HEVC)
|
||||
HFI_BUFFER_COMV_H265D(size, width, height, out_min_count);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ static u32 msm_vidc_decoder_non_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
}
|
||||
core = inst->core;
|
||||
if (!core->capabilities) {
|
||||
s_vpr_e(inst->sid, "%s: invalid core capabilities\n", __func__);
|
||||
i_vpr_e(inst, "%s: invalid core capabilities\n", __func__);
|
||||
return size;
|
||||
}
|
||||
num_vpp_pipes = core->capabilities[NUM_VPP_PIPE].value;
|
||||
@@ -114,7 +114,7 @@ static u32 msm_vidc_decoder_non_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
else if (inst->codec == MSM_VIDC_HEVC)
|
||||
HFI_BUFFER_NON_COMV_H265D(size, width, height, num_vpp_pipes);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ static u32 msm_vidc_decoder_line_size_iris2(struct msm_vidc_inst *inst)
|
||||
HFI_BUFFER_LINE_VP9D(size, width, height, out_min_count,
|
||||
is_opb, num_vpp_pipes);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ static u32 msm_vidc_decoder_persist_size_iris2(struct msm_vidc_inst *inst)
|
||||
else if (inst->codec == MSM_VIDC_VP9)
|
||||
HFI_BUFFER_PERSIST_VP9D(size);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ static u32 msm_vidc_decoder_dpb_size_iris2(struct msm_vidc_inst *inst)
|
||||
height));
|
||||
}
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@ static u32 msm_vidc_encoder_bin_size_iris2(struct msm_vidc_inst *inst)
|
||||
}
|
||||
core = inst->core;
|
||||
if (!core->capabilities) {
|
||||
s_vpr_e(inst->sid, "%s: invalid core capabilities\n", __func__);
|
||||
i_vpr_e(inst, "%s: invalid core capabilities\n", __func__);
|
||||
return size;
|
||||
}
|
||||
num_vpp_pipes = core->capabilities[NUM_VPP_PIPE].value;
|
||||
@@ -267,7 +267,7 @@ static u32 msm_vidc_encoder_bin_size_iris2(struct msm_vidc_inst *inst)
|
||||
else if (inst->codec == MSM_VIDC_HEVC)
|
||||
HFI_BUFFER_BIN_H265E(size, width, height, stage, num_vpp_pipes);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ static u32 msm_vidc_encoder_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
HFI_BUFFER_COMV_H265E(size, width, height, num_ref);
|
||||
}
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ static u32 msm_vidc_encoder_non_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
}
|
||||
core = inst->core;
|
||||
if (!core->capabilities) {
|
||||
s_vpr_e(inst->sid, "%s: invalid core capabilities\n", __func__);
|
||||
i_vpr_e(inst, "%s: invalid core capabilities\n", __func__);
|
||||
return size;
|
||||
}
|
||||
num_vpp_pipes = core->capabilities[NUM_VPP_PIPE].value;
|
||||
@@ -330,7 +330,7 @@ static u32 msm_vidc_encoder_non_comv_size_iris2(struct msm_vidc_inst* inst)
|
||||
else if (inst->codec == MSM_VIDC_HEVC)
|
||||
HFI_BUFFER_NON_COMV_H265E(size, width, height, num_vpp_pipes);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ static u32 msm_vidc_encoder_line_size_iris2(struct msm_vidc_inst *inst)
|
||||
}
|
||||
core = inst->core;
|
||||
if (!core->capabilities) {
|
||||
s_vpr_e(inst->sid, "%s: invalid core capabilities\n", __func__);
|
||||
i_vpr_e(inst, "%s: invalid core capabilities\n", __func__);
|
||||
return size;
|
||||
}
|
||||
num_vpp_pipes = core->capabilities[NUM_VPP_PIPE].value;
|
||||
@@ -368,7 +368,7 @@ static u32 msm_vidc_encoder_line_size_iris2(struct msm_vidc_inst *inst)
|
||||
else if (inst->codec == MSM_VIDC_HEVC)
|
||||
HFI_BUFFER_LINE_H265E(size, width, height, is_tenbit, num_vpp_pipes);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ static u32 msm_vidc_encoder_dpb_size_iris2(struct msm_vidc_inst *inst)
|
||||
else if (inst->codec == MSM_VIDC_HEVC)
|
||||
HFI_BUFFER_DPB_H265E(size, width, height, is_tenbit);
|
||||
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -413,7 +413,7 @@ static u32 msm_vidc_encoder_arp_size_iris2(struct msm_vidc_inst *inst)
|
||||
}
|
||||
|
||||
HFI_BUFFER_ARP_ENC(size);
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
@@ -445,7 +445,7 @@ static u32 msm_vidc_encoder_vpss_size_iris2(struct msm_vidc_inst* inst)
|
||||
|
||||
HFI_BUFFER_VPSS_ENC(size, width, height, ds_enable,
|
||||
rot_enable, flip_enable, is_tenbit);
|
||||
s_vpr_l(inst->sid, "%s: size %d\n", __func__, size);
|
||||
i_vpr_l(inst, "%s: size %d\n", __func__, size);
|
||||
return size;
|
||||
}
|
||||
|
||||
|
@@ -556,7 +556,7 @@ int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst* inst)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
s_vpr_h(inst->sid, "Configuring work mode = %u low latency = %u",
|
||||
i_vpr_h(inst, "Configuring work mode = %u low latency = %u",
|
||||
work_mode, lowlatency);
|
||||
inst->capabilities->cap[STAGE].value = work_mode;
|
||||
|
||||
@@ -602,7 +602,7 @@ int msm_vidc_decide_work_route_iris2(struct msm_vidc_inst* inst)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
s_vpr_h(inst->sid, "Configuring work route = %u", work_route);
|
||||
i_vpr_h(inst, "Configuring work route = %u", work_route);
|
||||
inst->capabilities->cap[PIPE].value = work_route;
|
||||
|
||||
return 0;
|
||||
|
@@ -125,14 +125,14 @@ u64 msm_vidc_calc_freq_iris2(struct msm_vidc_inst *inst, u32 data_size)
|
||||
vsp_cycles += mbs_per_second * base_cycles;
|
||||
|
||||
} else {
|
||||
s_vpr_e(inst->sid, "%s: Unknown session type\n", __func__);
|
||||
i_vpr_e(inst, "%s: Unknown session type\n", __func__);
|
||||
return msm_vidc_max_freq(inst);
|
||||
}
|
||||
|
||||
freq = max(vpp_cycles, vsp_cycles);
|
||||
freq = max(freq, fw_cycles);
|
||||
|
||||
s_vpr_p(inst->sid, "%s: inst %pK: filled len %d required freq %llu\n",
|
||||
i_vpr_p(inst, "%s: inst %pK: filled len %d required freq %llu\n",
|
||||
__func__, inst, data_size, freq);
|
||||
|
||||
return freq;
|
||||
@@ -660,7 +660,7 @@ static u64 __calculate(struct msm_vidc_inst* inst, struct vidc_bus_vote_data *d)
|
||||
value = __calculate_decoder(d);
|
||||
break;
|
||||
default:
|
||||
s_vpr_e(inst->sid, "%s: Unknown Domain %#x", __func__, d->domain);
|
||||
i_vpr_e(inst, "%s: Unknown Domain %#x", __func__, d->domain);
|
||||
}
|
||||
|
||||
return value;
|
||||
|
مرجع در شماره جدید
Block a user