In drm_wait_one_vblank() add a delay when we're "cold". Interrupts aren't
authorkettenis <kettenis@openbsd.org>
Thu, 13 Sep 2018 09:32:27 +0000 (09:32 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 13 Sep 2018 09:32:27 +0000 (09:32 +0000)
commita7d85a90615128cd35aa341990485181fd361e50
tree649e6ab9342425b1d27dfa7264fbeec171dfc7b2
parent5cc093ee4e9be3a3eb9e014e552b81e0c519d809
In drm_wait_one_vblank() add a delay when we're "cold".  Interrupts aren't
enabled at that point, so we cannot wait for one to happen.  But having no
delay at all breaks detection of some output connectors.

Thanks to Philippe Meunier for tracking down the issue.

ok millert@, jsg@
sys/dev/pci/drm/drm_irq.c