disp: msm: sde: add input fence dump upon commit done timeout
This change adds debug changes to dump the input fences during a commit done timeout, when input hw-fences are enabled. Change-Id: Ia778d3d73ab8ee795613587da70ef9bebb7c73ca Signed-off-by: Christina Oliveira <quic_coliveir@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

szülő
8eff68bdf0
commit
87bee41901
@@ -647,6 +647,12 @@ static inline void sde_crtc_set_needs_hw_reset(struct drm_crtc *crtc)
|
||||
int sde_crtc_reset_hw(struct drm_crtc *crtc, struct drm_crtc_state *old_state,
|
||||
bool recovery_events);
|
||||
|
||||
/**
|
||||
* sde_crtc_dump_fences - dump info for input fences of each crtc plane
|
||||
* @crtc: Pointer to DRM crtc instance
|
||||
*/
|
||||
void sde_crtc_dump_fences(struct drm_crtc *crtc);
|
||||
|
||||
/**
|
||||
* sde_crtc_request_frame_reset - requests for next frame reset
|
||||
* @crtc: Pointer to drm crtc object
|
||||
@@ -657,6 +663,9 @@ static inline int sde_crtc_request_frame_reset(struct drm_crtc *crtc,
|
||||
{
|
||||
struct sde_crtc *sde_crtc = to_sde_crtc(crtc);
|
||||
|
||||
if (test_bit(HW_FENCE_IN_FENCES_ENABLE, sde_crtc->hwfence_features_mask))
|
||||
sde_crtc_dump_fences(crtc);
|
||||
|
||||
if (sde_crtc->frame_trigger_mode == FRAME_DONE_WAIT_POSTED_START ||
|
||||
!sde_encoder_is_dsi_display(encoder))
|
||||
sde_crtc_reset_hw(crtc, crtc->state, false);
|
||||
|
Reference in New Issue
Block a user