Intermittent Black Screen on LVDS Display With gma500_gfx driver On Atom N2600

Jared Hagel jared.hagel at vontas.com
Fri Jan 12 16:52:54 UTC 2024


Hello,

This issue was initially reported at https://www.linuxquestions.org/questions/linux-hardware-18/intermittent-black-screen-on-lvds-display-with-gma500_gfx-driver-on-atom-n2600-4175732670/. mrmazda suggested to report this on intel-gfx at lists.freedesktop.org<mailto:intel-gfx at lists.freedesktop.org>. I also created a gitlab issue at https://gitlab.freedesktop.org/drm/misc/-/issues/35, but based on the comment 'Hi. No one reads this issue tracker.' here https://gitlab.freedesktop.org/drm/misc/-/issues/33 I decided to post to this list instead. Problem description follows:

Our device containing the Atom N2600 processor sometimes boots to a black display just before displaying an xfce desktop. When this problem occurs, I see the BIOS screen and startup text for grub and initramfs, but the screen goes black at some point before displaying the desktop and remains black. The backlight seems to work. This occurs about once out of every 5 reboots of my device. I am running Ubuntu 22 with an xfce desktop, but this same problem occurs on Ubuntu 20 with an LXQt desktop.

Our display is connected via an LVDS interface. I've used an oscillisciope to probe the LVDS A clock and the 3 data pair signals (A0-A2) when this problem occurs, and it appears that the processor is setting every pixel to black on the display. I suspect this is the casebecause if I force the display to solid black (via the command 'dd if=/dev/zero of=/dev/fb0' after pressing Ctrl+Alt+F1 to get into a virtual console) when the device starts normally I see the same activity on the LVDS clock and data lines. When the display is showing black the LVDS clock is running at 25MHz, the A0 data line is very busy, and the A1 and A2 data lines are idle. When this problem occurs everything else works fine - I can connect to the device via SSH and VNC. VNC shows the XFCE desktop I normally see.

I believe this is an issue with the gma500_gfx driver because if I blacklist the gma500_gfx driver, only the i915 driver is used (with a non-optimal 800x600 resolution) and no matter how many times I reboot this device the LVDS display always works as expected.

I've tried to debug this issue by using drm.debug=6 as a kernel command line argument and recompiling the gma500_gfx driver to output additional register information, but nothing I've seen yet in dmesg or xrandr output is different between a normal and bad boot up of this device. I've just discovered the intel-gpu-tools package, but most of those tools fail with a message 'Couldn't map MMIO region' or 'No known gpu found for chipset flags 0x1 (intel)'. I suspect these tools don't support the gpu in the Atom N2600 processor.

Note that when the problem occurs, if I switch from TTY7 (default) to TTY1 the display remains blank (ie. no text login prompt). Also I don't even see a mouse cursor. Once the device boots up with this issue, I haven't yet found a way to get the display working again without another reboot.

I'd appreciate any other debugging advice. I'm new to gpu debugging and have already looked into this problem for days.

Output from 'uname -a' is below. Attached is output from the more verbose lspci, dmesg (when the problem occurs with original driver and drm.debug=6), xrandr, dmidecode and intel_bios_dumper commands.

volaris at Ubuntu-V8:~$ uname -a
Linux Ubuntu-V8 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Thank you,
Jared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20240112/9c877a68/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmesg.txt
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20240112/9c877a68/attachment-0004.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lspci.txt
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20240112/9c877a68/attachment-0005.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xrandr.txt
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20240112/9c877a68/attachment-0006.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dmidecode.txt
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20240112/9c877a68/attachment-0007.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intel_bios_dump
Type: application/octet-stream
Size: 131072 bytes
Desc: intel_bios_dump
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20240112/9c877a68/attachment-0001.obj>


More information about the Intel-gfx mailing list