weston hard freezes system on poweroff/poweron of a second monitor
On Ryzen and Radeon with linux 5.11.4, mesa 21, with weston 9 and weston git, turning off the second monitor (connected via DP) and turning it back on causes immediate hard freeze of the system. Turning off the second monitor (connected via DP) and turning it back on works in sway and the framebuffer terminal, although in the latter case the first monitor turns off/on momentarily. So it's not an issue with the cable, or the amd driver or is an issue with how weston and the driver interact. Hard freeze also occurs if after turning off the DP monitor, weston is killed with Ctrl+Alt+Backspace. If weston is killed with killall -9 weston, it goes back to the console.)
weston-log.txt Attached is the weston-debug log drm, it seems to stop before the power on event.
weston config
-Dbackend-drm-screencast-vaapi=false \
-Dbackend-headless=false \
-Dscreenshare=false \
-Dbackend-rdp=false \
-Dsimple-dmabuf-drm= \
-Dshell-ivi=false \
-Dremoting=false \
-Dscreenshare=false \
-Dbackend-x11=false \
-Dbackend-fbdev=false \
-Dsystemd=true \
-Dshell-fullscreen=false \
-Dshell-ivi=false \
-Dshell-kiosk=false \
-Dcolor-management-lcms=false \
-Dcolor-management-colord=false \
-Dlauncher-logind=true \
-Dimage-webp=false \
-Dtools=terminal,debug,info \
-Ddemo-clients=false \
-Dpipewire=false \
-Dsimple-clients= \
-Ddemo-clients=false \
-Dresize-pool=false \
-Dwcap-decode=false \
-Dtest-junit-xml=false \
-Dxwayland=false ```