disp: msm: sde: add support for hwfence profiling

This change adds hwfence input and output fence profiling
registers and debugfs to enable them.
To enable input hw fences timestamps:
echo 0x1 > /d/dri/0/debug/hw_fence_status
To enable output hw fences timestamps:
echo 0x2 > /d/dri/0/debug/hw_fence_status
To enable both, input and output hw fences timestamps:
echo 0x3 > /d/dri/0/debug/hw_fence_status.

Change-Id: I269a38f3843a01ec8c0816890e50bb7d847a4ed9
Signed-off-by: Christina Oliveira <quic_coliveir@quicinc.com>
This commit is contained in:
Christina Oliveira
2022-05-18 09:38:40 -07:00
parent d2d060cf80
commit 21ca2acab9
11 changed files with 252 additions and 23 deletions

View File

@@ -172,6 +172,8 @@ static int _sde_debugfs_init(struct sde_kms *sde_kms)
debugfs_create_u32("pm_suspend_clk_dump", 0600, debugfs_root,
(u32 *)&sde_kms->pm_suspend_clk_dump);
debugfs_create_u32("hw_fence_status", 0600, debugfs_root,
(u32 *)&sde_kms->debugfs_hw_fence);
return 0;
}