Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a421290 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Add codec type detail to page fault handler"

parents f6ec744c 235329cf
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -1190,6 +1190,8 @@ int msm_vidc_smmu_fault_handler(struct iommu_domain *domain,
	struct buffer_info *temp;
	struct buffer_info *temp;
	struct internal_buf *buf;
	struct internal_buf *buf;
	int i = 0;
	int i = 0;
	bool is_decode = false;
	enum vidc_ports port;


	if (!domain || !core) {
	if (!domain || !core) {
		dprintk(VIDC_ERR, "%s - invalid param %p %p\n",
		dprintk(VIDC_ERR, "%s - invalid param %p %p\n",
@@ -1204,6 +1206,15 @@ int msm_vidc_smmu_fault_handler(struct iommu_domain *domain,


	mutex_lock(&core->lock);
	mutex_lock(&core->lock);
	list_for_each_entry(inst, &core->instances, list) {
	list_for_each_entry(inst, &core->instances, list) {
		is_decode = inst->session_type == MSM_VIDC_DECODER;
		port = is_decode ? OUTPUT_PORT : CAPTURE_PORT;
		dprintk(VIDC_ERR,
			"%s session, Codec type: %s HxW: %d x %d fps: %d bitrate: %d bit-depth: %s\n",
			is_decode ? "Decode" : "Encode", inst->fmts[port]->name,
			inst->prop.height[port], inst->prop.width[port],
			inst->prop.fps, inst->prop.bitrate,
			!inst->bit_depth ? "8" : "10");

		dprintk(VIDC_ERR,
		dprintk(VIDC_ERR,
			"---Buffer details for inst: %p of type: %d---\n",
			"---Buffer details for inst: %p of type: %d---\n",
			inst, inst->session_type);
			inst, inst->session_type);