Bug 62771 - [SNB] Screen turns to coloured snowstorm (or blanks) when KMS kicks in
Summary: [SNB] Screen turns to coloured snowstorm (or blanks) when KMS kicks in
Status: CLOSED DUPLICATE of bug 60029
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Imre Deak
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 16:32 UTC by Jack Cleaver
Modified: 2017-07-24 22:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg with drm.debug=0xe (60.97 KB, text/plain)
2013-03-26 16:32 UTC, Jack Cleaver
no flags Details
Xorg.log (33.51 KB, text/plain)
2013-03-26 16:33 UTC, Jack Cleaver
no flags Details
Picture of 'colourful snowstorm' display (1.19 MB, image/jpeg)
2013-03-26 16:41 UTC, Jack Cleaver
no flags Details
intel_reg_dump with kernel param i915.modeset=0 (14.62 KB, text/plain)
2013-03-27 13:39 UTC, Jack Cleaver
no flags Details
intel_reg_dumper with no kernel params (14.62 KB, text/plain)
2013-03-27 13:41 UTC, Jack Cleaver
no flags Details
Intel reg_dump after setting 640x480 (14.62 KB, text/plain)
2013-03-27 16:46 UTC, Jack Cleaver
no flags Details
intel_reg_dump for 1024x768 (14.62 KB, text/plain)
2013-03-27 16:49 UTC, Jack Cleaver
no flags Details
dmesg from the last vesa test (50.66 KB, text/plain)
2013-03-27 22:07 UTC, Jack Cleaver
no flags Details
A new dmesg (50.86 KB, text/plain)
2013-03-27 22:15 UTC, Jack Cleaver
no flags Details
reg dump after booting, before X (14.62 KB, text/plain)
2013-03-27 22:21 UTC, Jack Cleaver
no flags Details
regs after startx (14.62 KB, text/plain)
2013-03-27 22:22 UTC, Jack Cleaver
no flags Details
regs after xrandr mode=800x600 (14.62 KB, text/plain)
2013-03-27 22:25 UTC, Jack Cleaver
no flags Details
Xorg.log from the same session, after the xrandr step (75.79 KB, text/plain)
2013-03-27 22:26 UTC, Jack Cleaver
no flags Details
dmseg with drm.debug=6, no modeset kernel param (61.03 KB, text/plain)
2013-03-28 09:37 UTC, Jack Cleaver
no flags Details
Kernel config (59.71 KB, text/plain)
2013-03-28 11:04 UTC, Jack Cleaver
no flags Details
Yet another dmesg (67.07 KB, text/plain)
2013-03-28 12:32 UTC, Jack Cleaver
no flags Details
Kernel config updated with KMS enabled (61.13 KB, text/plain)
2013-03-28 12:35 UTC, Jack Cleaver
no flags Details

Description Jack Cleaver 2013-03-26 16:32:22 UTC
Created attachment 77065 [details]
dmesg with drm.debug=0xe

Linux boots, but display 'fails' when i915 KMS kicks in. Console input is possible, and system is useable via ssh; X can be launched from console.

'Fails': on tested 2.6 and 3.2 kernels, the entire screen is taken over by a colourful snowstorm. On 3.8.4, the snowstorm flashes briefly then the screen blanks; disconnecting and reconnecting the display again yields a colourful snowstorm. Launching X will also transform the black screen into a snowstorm.

I've tried with built-in i915 (fails on transition from initrd), loadable module (fails when i915 loads), and with i915 in initrd (fails immediately).

The system is a Acer Revo RL80, which has only DVI-I output. The display is a projector with native resolution 1024x576.

With KMS disabled in the kernel, the failure doesn't occur; but i915 cannot be used for X.
Comment 1 Jack Cleaver 2013-03-26 16:33:33 UTC
Created attachment 77066 [details]
Xorg.log
Comment 2 Jack Cleaver 2013-03-26 16:37:21 UTC
# lsmod
Module                  Size  Used by
fbcon                  33837  71
bitblit                 4278  1 fbcon
softcursor               937  1 bitblit
font                    7016  1 fbcon
xhci_hcd               77701  0
i915                  456317  2
cfbfillrect             3126  1 i915
cfbimgblt               1931  1 i915
cfbcopyarea             2890  1 i915
intel_agp               8521  1 i915
intel_gtt               9951  2 i915,intel_agp
drm_kms_helper         23671  1 i915
fb                     43517  5 i915,fbcon,drm_kms_helper,softcursor,bitblit
fbdev                    498  2 fb,fbcon

lspci -v (extract):
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
        Subsystem: Acer Incorporated [ALI] Device 074c
        Flags: bus master, fast devsel, latency 0, IRQ 43
        Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2
        Capabilities: [a4] PCI Advanced Features
        Kernel driver in use: i915

# lshw -c video
  *-display
       description: VGA compatible controller
       product: 2nd Generation Core Processor Family Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:43 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)
Comment 3 Jack Cleaver 2013-03-26 16:41:38 UTC
Created attachment 77067 [details]
Picture of 'colourful snowstorm' display
Comment 4 Daniel Vetter 2013-03-26 19:04:41 UTC
Nothing really jumps out from the debug logs, seems to be bog-standard dvi. Can you please grab the latest git of intel-gpu-tools from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/ and then attach the output of intel_reg_dumper both when booting with modeset enabled and with modesetting disabled?

Hopefully the register setup points at an obvious differences between i915.ko and what the bios does.
Comment 5 Jack Cleaver 2013-03-27 13:39:01 UTC
Created attachment 77101 [details]
intel_reg_dump with kernel param i915.modeset=0

I did this:
 mount -t debugfs none /sys/kernel/debug

But running the command still gave this error:
Couldn't find path to dri/debugfs entry

Didn't happen with the run with no kernel params. I hope this is harmless!
Comment 6 Jack Cleaver 2013-03-27 13:41:55 UTC
Created attachment 77102 [details]
intel_reg_dumper with no kernel params

Gave no error iff debugfs was mounted.
Comment 7 Daniel Vetter 2013-03-27 13:51:56 UTC
This is _really_ strange. Both dumps have apparently no mode configured at all. The message about the lack of debugfs is ok for the nomodeset case, we only need that to ask the kernel to wake up the gpu. If you don't use kms, that's not required.

Can you try to install the vesa X driver and use that one to adjust the modes with xrandr (obviously requires that kms is disabled). Then pls grab a two reg dumps for different modes.

This is just to figure out where exactly the failure is, since according to the reg dumps here neither kms nor non-kms should work at all ...
Comment 8 Jack Cleaver 2013-03-27 16:46:42 UTC
Created attachment 77113 [details]
Intel reg_dump after setting 640x480

xrandr reports:
"Failed to get size of gamma for output default"

The default mode on launching X is 1024x768.
Comment 9 Jack Cleaver 2013-03-27 16:49:41 UTC
Created attachment 77114 [details]
intel_reg_dump for 1024x768

As before, xrandr complains about not being able to get the size of the gamma.

So I launched X, and got 1024x768.

I used xrandr to set mode 800x600; then to set mode 640x480; then I took the first reg_dump.

Then I set mode 1024x768; then I took the second reg_dump.
Comment 10 Daniel Vetter 2013-03-27 19:04:06 UTC
Hm, I've misread the dumps :( So now I don't see anything suspicious any longer ...
Comment 11 Chris Wilson 2013-03-27 21:49:41 UTC
The dmesg does not log any attempt to actually set the fbcon mode, and the intel_reg_dump for i915.modeset=1 also seems to imply that no fb had been set. Bizarre. Can you please grab a fresh drm.debug=6 dmesg to confirm, and make sure that it is complete?
Comment 12 Jack Cleaver 2013-03-27 22:07:15 UTC
Created attachment 77125 [details]
dmesg from the last vesa test

This is the dmesg from the boot corresponding to the foregoing vesa regdumps.
Comment 13 Jack Cleaver 2013-03-27 22:08:09 UTC
Ah - no debug=0xe. Sorry.
Comment 14 Jack Cleaver 2013-03-27 22:15:39 UTC
Created attachment 77126 [details]
A new dmesg

I will redo the regdumps and xrandr exercises under this boot.
Comment 15 Jack Cleaver 2013-03-27 22:21:13 UTC
Created attachment 77128 [details]
reg dump after booting, before X
Comment 16 Jack Cleaver 2013-03-27 22:22:54 UTC
Created attachment 77129 [details]
regs after startx
Comment 17 Jack Cleaver 2013-03-27 22:25:31 UTC
Created attachment 77130 [details]
regs after xrandr mode=800x600
Comment 18 Jack Cleaver 2013-03-27 22:26:47 UTC
Created attachment 77131 [details]
Xorg.log from the same session, after the xrandr step
Comment 19 Chris Wilson 2013-03-28 09:27:09 UTC
Sorry, I should have said I wanted the drm.debug=6 dmesg without i915.modeset=0.
Comment 20 Jack Cleaver 2013-03-28 09:37:14 UTC
Created attachment 77147 [details]
dmseg with drm.debug=6, no modeset kernel param
Comment 21 Daniel Vetter 2013-03-28 11:02:07 UTC
We seem to successfully register the fbdev, but the ->set_par callback never happens, leaving us in that funny state.

Can you please attach your kernel .config?
Comment 22 Jack Cleaver 2013-03-28 11:04:46 UTC
Created attachment 77149 [details]
Kernel config
Comment 23 Jack Cleaver 2013-03-28 12:32:44 UTC
Created attachment 77153 [details]
Yet another dmesg

I realised that the last dmesg I posted was for a kernel that had KMS disabled by default. 

This one has KMS enabled; and the behaviour is as I would expect: coloured snowstorm when i915 gets loaded.
Comment 24 Jack Cleaver 2013-03-28 12:35:49 UTC
Created attachment 77154 [details]
Kernel config updated with KMS enabled

I also enabled several i2c and GPIO modules. I don't know if GPIO is used, but it seems from the dmesg that i2c *is* used. I don't know what i2c hardware is available, so I enabled (loadable) anything thatn said it was Intel.
Comment 25 Daniel Vetter 2013-03-28 12:43:27 UTC
FDI link train fail is for Imre. Attachment situation is a bit confusion, the real deal happens in the last one:

https://bugs.freedesktop.org/attachment.cgi?id=77153
Comment 26 Jesse Barnes 2013-03-28 18:51:13 UTC
Wonder if this is a dupe of https://bugs.freedesktop.org/show_bug.cgi?id=60029?  Jack, can you try Paulo's patch?

If not, I'll cook up a SNB FDI training patch and see if that helps.
Comment 27 Jack Cleaver 2013-03-29 09:16:49 UTC
Gentlemen, that seems to have worked.

I applied the patch to http://cgit.freedesktop.org/~danvet/drm-intel/snapshot/drm-intel-next-2013-03-23.tar.gz, and built and installed the kernel.

The system came up with the console in 1024x768. When I launched X, it was still in 1024x768; however I was able to xrandr newmode and addmode to 1024x576 (i.e. native), and then set the native mode. So I guess I should be able to force this in xorg.conf.

Thanks a lot guys, I'm very impressed by your responsiveness!
Comment 28 Daniel Vetter 2013-04-02 08:32:09 UTC

*** This bug has been marked as a duplicate of bug 60029 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.