If atomic_complete_pending is true at the time of disconnect, display is not coming up if I reconnect the display.
I am seeing the following logs in weston at the time of disconnect:
destroy output while page flip pending
Output 'DP-32' no heads left, disabling.
background surface gone
panel surface gone
After this, I can see that display is not up after multiple hotplugs.
If we set atomic_complete_pending to false, disconnect is happening properly. After monitor is connected back, new atomic commits are received and weston screen is coming up.