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

Commit 9620e782 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

msm: mdss: add arb/xin client and test point info in vbif dbg log



Include arb/xin client information and test point
information in vbif debug bus log for easy parsing.

Change-Id: I366819e98ec9b9815d5cc88587c914bdebf7b4f4
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 1c6b02e6
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -299,11 +299,15 @@ static void __vbif_debug_bus(struct vbif_debug_bus *head,
			/* make sure that test point is enabled */
			wmb();
			val = readl_relaxed(vbif_base + MMSS_VBIF_TEST_BUS_OUT);
			if (dump_addr)
			if (dump_addr) {
				*dump_addr++ = head->block_bus_addr;
				*dump_addr++ = i;
				*dump_addr++ = j;
				*dump_addr++ = val;
			}
			if (in_log)
				pr_err("arb/xin id=%d index=%d val=0x%x\n",
					i, j, val);
				pr_err("testpoint:%x arb/xin id=%d index=%d val=0x%x\n",
					head->block_bus_addr, i, j, val);
		}
	}
}
@@ -343,8 +347,8 @@ static void mdss_dump_vbif_debug_bus(u32 bus_dump_flag,
		list_size += (head->block_cnt * head->test_pnt_cnt);
	}

	/* will keep in 4 bytes each entry*/
	list_size *= 4;
	/* 4 bytes * 4 entries for each test point*/
	list_size *= 16;

	in_log = (bus_dump_flag & MDSS_DBG_DUMP_IN_LOG);
	in_mem = (bus_dump_flag & MDSS_DBG_DUMP_IN_MEM);
@@ -381,7 +385,7 @@ static void mdss_dump_vbif_debug_bus(u32 bus_dump_flag,
		wmb();

		__vbif_debug_bus(head, vbif_base, dump_addr, in_log);
		dump_addr += (head->block_cnt * head->test_pnt_cnt);
		dump_addr += (head->block_cnt * head->test_pnt_cnt * 4);
	}

	mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF);