disp: msm: sde: allow input fence status show only when kickoff in progress
Allow input fence status read only when crtc kickoff is in progress to avoid race between status read and fence destroy. Change-Id: I3402bfcb38940628f09f645a3cee31f821daeae9 Signed-off-by: Andhavarapu Karthik <kartkart@codeaurora.org>
This commit is contained in:

committed by
Nilaan Gunabalachandran

parent
75f3403326
commit
78b4029179
@@ -6562,6 +6562,9 @@ static int _sde_debugfs_fence_status_show(struct seq_file *s, void *data)
|
|||||||
dev = crtc->dev;
|
dev = crtc->dev;
|
||||||
cstate = to_sde_crtc_state(crtc->state);
|
cstate = to_sde_crtc_state(crtc->state);
|
||||||
|
|
||||||
|
if (!sde_crtc->kickoff_in_progress)
|
||||||
|
goto skip_input_fence;
|
||||||
|
|
||||||
/* Dump input fence info */
|
/* Dump input fence info */
|
||||||
seq_puts(s, "===Input fence===\n");
|
seq_puts(s, "===Input fence===\n");
|
||||||
drm_atomic_crtc_for_each_plane(plane, crtc) {
|
drm_atomic_crtc_for_each_plane(plane, crtc) {
|
||||||
@@ -6589,6 +6592,7 @@ static int _sde_debugfs_fence_status_show(struct seq_file *s, void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
skip_input_fence:
|
||||||
/* Dump release fence info */
|
/* Dump release fence info */
|
||||||
seq_puts(s, "\n");
|
seq_puts(s, "\n");
|
||||||
seq_puts(s, "===Release fence===\n");
|
seq_puts(s, "===Release fence===\n");
|
||||||
|
Reference in New Issue
Block a user