anholt/mesa

Black screen/out of sync upon booting

skgucek opened this issue · 2 comments

Hello,
I am having some problems when your driver is enabled on RPi2 (first model, not 1.2). I am currently using ArchARM but I also tested this issue with a spare SD card running the latest Raspbian and they both behave the same in this regard.

Description:
When I enable your driver (manually in Arch with dtoverlay=... & avoid_warnings=2 in config.txt; with raspi-config in Raspbian), the system boots to a completely black screen and my monitor (LG 1920x1080 75Hz) reports Out of sync on screen, but only if I disconnect and reconnect the HDMI cable, otherwise the screen just stays black forever.

I was going crazy around this but I unintentionaly figured out a workaround: when I turn on the RPi2, I have to leave the HDMI cable out and only connect it a few seconds after the boot process has started. Then it detects the monitor just fine when your driver is loaded during the boot process, so text appears and the DM and X are loaded properly. However, this is a very unconvenient temporary fix, since now every time I restart the RPi2 I have to unplug the HDMI and plug it back in...
End of description.

Could you guide me into some direction of how to provide more information to you if you are interested in fixing this. If you want, I can leave the RPi2 to boot into black screen/out of sync state and SSH to it to get some logs etc.

Soon I will also recieve a RPi3 and will be able to report if this behaviour is also present there with your driver.

Regards and thanks for an even so great driver (Quake3 plays like a charm in 720p)!

This ought to be in the linux repo, but github doesn't let you move issues between repos. Sigh.

I'm not currently doing modesetting debug, so hopefully mripard will have a chance to look into this. To have information ready when he gets a chance, we'd want to see the xrandr --verbose output in working and not-working mode, and the full dmesg output with drm.debug=0x1e on your kernel command line. Be sure those are attachments, not pastes.

Here you are, hope you get the other guy to look at it! Thanks.

dmesg-notworking.txt
dmesg-working.txt
xrandr-working.txt