disp: msm: sde: add support for hw fence error handling

Register callback function to hw fence driver and implement the
callback funtion.

As part of fence error handling, address out of ordering of HW
fences, SW override for release fence signal and handle BW voting
in both cmd and video mode.

Change-Id: I22902762b4cc09a5f5a20cf0dd01fc336a0f0cb4
Signed-off-by: GG Hou <quic_renjhou@quicinc.com>
这个提交包含在:
GG Hou
2023-03-22 11:26:41 +08:00
提交者 Gerrit - the friendly Code Review server
父节点 97b1afdda8
当前提交 725c7a0f3d
修改 10 个文件,包含 236 行新增3 行删除

查看文件

@@ -375,6 +375,7 @@ enum sde_crtc_hw_fence_flags {
* sde_crtc_hw_fence_flags for available fields.
* @hwfence_out_fences_skip: number of frames to skip before create a new hw-fence, this can be
* used to slow-down creation of output hw-fences for debugging purposes.
* @hanle_fence_error_bw_update: bool to indicate if it is fence error and need to avoid bw vote.
*/
struct sde_crtc {
struct drm_crtc base;
@@ -489,6 +490,7 @@ struct sde_crtc {
DECLARE_BITMAP(hwfence_features_mask, HW_FENCE_FEATURES_MAX);
u32 hwfence_out_fences_skip;
bool handle_fence_error_bw_update;
};
enum sde_crtc_dirty_flags {