Skip to content

[WESTON][i.MX] fix crash on monitor hotplug (or unplug)

Gianfranco Mariotti requested to merge kirkstone-gm_weston into kirkstone

In case of streaming data to the video outputs through playing a video or similar, weston crashed on i.MX SoCs on HDMI hotplug (or unplug). This happened because of incorrect handling of atomic operations failing to update the KMS (kernel mode setting) state, as seen through the following log messages:

atomic: couldn't commit new state: Device or resource busy
applying repaint-start state failed: No such file or directory

REFERENCES:

https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/922
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/923
https://github.com/nxp-imx/weston-imx/commit/327bb906096167c1e37a87b431897ad4273be5d4
https://github.com/nxp-imx/weston-imx/commit/4b221d65223f8b56a0980f188193c8f0a7f4a630
https://github.com/nxp-imx/weston-imx/commit/f84423707cf825dd17c24548a78ca575665eadac
Edited by Gianfranco Mariotti

Merge request reports

Loading