disp: msm: sde: add esd check during wr_ptr wait

Move esd check to write pointer wait instead of during
write pointer timeout. With this change display will avoid
improperly signaling a retire fence and allowing two flushes
to happen within a single vsync in cases where ESD failure
is happening.

Change-Id: I6fbd76a2f6b47d3237039f66a3b1edd1f72a0a1d
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
Samantha Tran
2021-06-14 12:53:26 -07:00
父節點 eacfafbaed
當前提交 dc56d01f20
共有 2 個文件被更改,包括 17 次插入3 次删除

查看文件

@@ -742,6 +742,21 @@ static inline enum sde_rm_topology_name sde_connector_get_old_topology_name(
return c_state->old_topology_name;
}
/**
* sde_connector_panel_dead - check if panel is dead
* @conn: pointer to drm connector
* Returns: bool indicating whether or not panel is dead based on connector
*/
static inline bool sde_connector_panel_dead(struct drm_connector *conn)
{
struct sde_connector *sde_conn = to_sde_connector(conn);
if (!sde_conn)
return true;
return sde_conn->panel_dead;
}
/**
* sde_connector_set_old_topology_name - helper to cache value of previous
* mode's topology