diff options
author | Maarten Lankhorst <[email protected]> | 2017-08-14 12:07:21 +0200 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2017-08-14 15:47:57 +0200 |
commit | 7f5d6dac548b983702dd7aac1d463bd88dff50a8 (patch) | |
tree | af273b0ed62e08a4f9ed76a377aa5acef24f77cc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 491ab4700d1b64f5cf2f9055e01613a923df5fab (diff) |
drm/atomic: Handle -EDEADLK with out-fences correctly
complete_crtc_signaling is freeing fence_state, but when retrying
num_fences and fence_state are not zero'd. This caused duplicate
fd's in the fence_state array, followed by a BUG_ON in fs/file.c
because we reallocate freed memory, and installing over an existing
fd, or potential other fun.
Zero fence_state and num_fences correctly in the retry loop, which
allows kms_atomic_transition to pass.
Fixes: beaf5af48034 ("drm/fence: add out-fences support")
Cc: Gustavo Padovan <[email protected]>
Cc: Brian Starkey <[email protected]> (v10)
Cc: Sean Paul <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: David Airlie <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
Cc: <[email protected]> # v4.10+
Testcase: kms_atomic_transitions.plane-all-modeset-transition-fencing
(with CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y)
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Daniel Vetter <[email protected]> #intel-gfx on irc
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions