diff options
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_debug_xlog.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/video/fbdev/msm/mdss_debug_xlog.c b/drivers/video/fbdev/msm/mdss_debug_xlog.c index 3a9cb310d17c..b03fc948ef5c 100644 --- a/drivers/video/fbdev/msm/mdss_debug_xlog.c +++ b/drivers/video/fbdev/msm/mdss_debug_xlog.c @@ -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); |
