Jonas Ådahl
1d7920872d
kms: Gracefully handle page flipping direct scanouts failing
...
When drmModePageFlip() or drmModeAtomicCommit() unexpectedly failed (e.g.
ENOSPC, which has been seen in the wild), this failure was not handled
very gracefully. The page flip listener for the scanout was left in the
MetaKmsUpdate, meaning when the primary plane composition was later page
flipped, two page flip listeners were added, one for the primary plane,
and one for the scanout. This caused the 'page-flipped' event to be
handled twice, the second time being fatal.
Handle this by making 'no-discard' listener flag be somewhat reversed,
and say 'drop-on-error', and then drop all 'drop-on-error' listeners
when a MetaKmsUpdate failed to be processed.
Also for a "preserve" flagged update, don't ever trigger "discard"
callbacks just yet, as preserved updates are used again for the primary
plane composition, in order to not miss e.g. CRTC gamma updates, or
cursor plane updates, which were added separately.
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1809
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1910 >
2021-07-02 13:29:54 +00:00
..
2018-11-06 17:17:36 +01:00
2014-05-19 15:09:23 -04:00
2020-02-10 20:35:05 +01:00
2015-01-19 02:27:59 -08:00
2021-03-12 15:09:45 +00:00
2021-06-09 19:21:44 +00:00
2021-03-12 15:09:45 +00:00
2021-02-22 13:52:27 +01:00
2020-11-27 15:14:34 +00:00
2021-03-13 18:56:21 +00:00
2021-03-13 18:56:21 +00:00
2021-01-28 20:33:01 +00:00
2021-01-28 20:33:01 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-04-14 07:14:24 +00:00
2021-04-14 07:14:24 +00:00
2021-01-11 17:17:39 +00:00
2020-12-16 17:09:58 +01:00
2020-11-27 15:14:34 +00:00
2020-11-27 15:14:34 +00:00
2021-05-05 19:07:26 +00:00
2020-11-27 15:14:34 +00:00
2020-11-27 15:14:34 +00:00
2021-03-04 17:39:08 +00:00
2021-03-04 17:39:08 +00:00
2021-01-22 16:47:08 +00:00
2021-04-14 18:44:57 +00:00
2021-03-12 15:09:45 +00:00
2021-01-22 16:47:08 +00:00
2021-02-04 19:16:28 +01:00
2021-01-22 16:47:08 +00:00
2020-03-07 21:40:50 +00:00
2021-03-12 15:09:45 +00:00
2021-01-22 16:47:08 +00:00
2021-07-02 13:29:54 +00:00
2021-01-22 16:47:08 +00:00
2021-04-14 12:53:25 +00:00
2021-03-12 15:09:45 +00:00
2021-07-02 13:29:54 +00:00
2021-01-22 16:47:08 +00:00
2021-07-02 13:29:54 +00:00
2021-07-02 13:29:54 +00:00
2021-07-02 13:29:54 +00:00
2021-07-02 13:29:54 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2021-07-02 13:29:54 +00:00
2021-01-22 16:47:08 +00:00
2021-01-22 16:47:08 +00:00
2020-03-07 21:40:50 +00:00
2020-08-04 08:57:06 +00:00
2021-04-14 07:14:24 +00:00
2021-07-02 13:29:54 +00:00
2021-07-02 13:29:54 +00:00
2021-07-02 13:29:54 +00:00
2021-03-05 14:37:48 +00:00
2021-03-05 14:37:48 +00:00
2021-07-02 13:29:54 +00:00
2021-05-05 19:52:04 +00:00
2021-04-14 12:53:25 +00:00
2021-01-28 20:05:23 +00:00
2021-04-29 18:04:04 +00:00
2021-03-12 15:09:45 +00:00
2021-07-02 13:29:54 +00:00
2021-02-09 08:27:11 +00:00
2021-04-27 16:12:18 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2020-11-27 15:14:33 +00:00
2020-11-27 15:14:33 +00:00
2020-08-29 09:10:31 +00:00
2018-11-19 22:53:13 +00:00
2021-01-30 09:11:45 +00:00
2021-06-12 21:09:55 +02:00
2021-03-12 15:09:45 +00:00
2021-04-27 08:37:38 +00:00
2021-03-12 15:09:45 +00:00
2021-03-13 18:56:21 +00:00
2021-04-14 12:53:25 +00:00
2021-03-12 15:09:45 +00:00
2017-10-05 18:08:09 -04:00
2021-04-30 15:10:28 +02:00
2021-04-30 15:10:28 +02:00
2021-02-23 10:05:32 +00:00
2019-08-24 08:59:08 +00:00
2021-03-12 15:09:45 +00:00
2021-03-12 15:09:45 +00:00
2020-11-27 15:14:34 +00:00
2020-11-27 15:14:34 +00:00