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

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

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

parents 6d22aacd 9620e782
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);