disp: msm: dsi: add debug ability to read TE read pointer line count

The change adds register mapping of MDP_INTF_[1/2]_TEAR_INT_COUNT_VAL
register to DSI controller. This allows for the controller to read the
line count and frame count of the read pointer during trigger and
successful transfer of DMA command.

To enable the debug feature:
echo 1 > /d/<panel_name>/dsi-ctrl-0/enable_cmd_dma_stats.

To disable the debug feature
echo 0 > /d/<panel_name>/dsi-ctrl-0/enable_cmd_dma_stats.

To read line count value:
cat /d/<panel_name>/dsi-ctrl-0/cmd_dma_stats.

Change-Id: I5cdeb54ca941af05b226a9d7ab332b899ecc5797
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
这个提交包含在:
Satya Rama Aditya Pinapala
2020-07-15 02:10:24 -07:00
父节点 50af1eb43b
当前提交 3deb5c353e
修改 6 个文件,包含 264 行新增2 行删除

查看文件

@@ -229,6 +229,19 @@ struct dsi_ctrl_interrupts {
* insert null packet.
* @modeupdated: Boolean to send new roi if mode is updated.
* @split_link_supported: Boolean to check if hw supports split link.
* @enable_cmd_dma_stats: Boolean to indicate the verbose logging during
* CMD transfer.
* count.
* @cmd_mode: Boolean to indicate if panel is running in
* command mode.
* @cmd_trigger_line: unsigned integer that indicates the line at
* which command gets triggered.
* @cmd_trigger_frame: unsigned integer that indicates the frame at
* which command gets triggered.
* @cmd_success_line: unsigned integer that indicates the line at
* which command transfer is successful.
* @cmd_success_frame: unsigned integer that indicates the frame at
* which command transfer is successful.
*/
struct dsi_ctrl {
struct platform_device *pdev;
@@ -289,6 +302,12 @@ struct dsi_ctrl {
bool null_insertion_enabled;
bool modeupdated;
bool split_link_supported;
bool enable_cmd_dma_stats;
bool cmd_mode;
u32 cmd_trigger_line;
u32 cmd_trigger_frame;
u32 cmd_success_line;
u32 cmd_success_frame;
};
/**