Bug 24710 - nouveau KMS fails on NV11 - screen freeze
Summary: nouveau KMS fails on NV11 - screen freeze
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-24 03:30 UTC by Jan Buecken
Modified: 2009-11-20 17:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg output after loading nouveau with KMS enabled (22.28 KB, text/plain)
2009-10-24 03:30 UTC, Jan Buecken
no flags Details
forced kernel command line option (19.83 KB, text/plain)
2009-11-01 01:34 UTC, Jan Buecken
no flags Details
get-edid | parse-edid output (924 bytes, text/plain)
2009-11-06 09:34 UTC, Jan Buecken
no flags Details
forced 1024x768 but drm debug=4 (30.82 KB, text/plain)
2009-11-06 10:37 UTC, Jan Buecken
no flags Details
set_crtc_info_for_cmdline_modes.patch (496 bytes, patch)
2009-11-06 12:56 UTC, Francisco Jerez
no flags Details | Splinter Review

Description Jan Buecken 2009-10-24 03:30:32 UTC
Created attachment 30652 [details]
dmesg output after loading nouveau with KMS enabled

I build the nouveau-kernel as recommended here: 
http://nouveau.freedesktop.org/wiki/InstallDRM
(Tried both master and master-compat)

Steps to reproduce
(I'm on gentoo)
1) I boot this kernel and login as root (VT)
2) modprobe -r nouveau
3) modprobe nouveau modeset=1
4) See a black screen shortly, then see the old VT, but now you cannot see new inputs

Login with ssh still works or you can use the VT blindly
Comment 1 Maarten Maathuis 2009-10-24 04:02:09 UTC
Is fbcon builtin or loaded (if it's a module)?
Comment 2 Jan Buecken 2009-10-26 05:07:57 UTC
(In reply to comment #1)
> Is fbcon builtin or loaded (if it's a module)?
> 
builtin.
I know the fbcon thing from the ati-kms ( I have a second system with r600 ati and the kms works for me...)

Comment 3 Jan Buecken 2009-10-26 09:02:34 UTC
Now I compiled fbcon as module, git today, branch master.
I booted the new kernel, unload nouveau, modprobe fbcon, modprobe nouveau modeset=1

The problem still holds.

More precisely I see my frozen VT, but today I recognized the Cursor is blinking (this is not a different to fbcon builtin, I just recognized it today). But I don't know if this makes any differences.

greetings
Comment 4 Francisco Jerez 2009-10-26 11:53:08 UTC
(In reply to comment #3)
> Now I compiled fbcon as module, git today, branch master.
> I booted the new kernel, unload nouveau, modprobe fbcon, modprobe nouveau
> modeset=1
> 
> The problem still holds.
> 
> More precisely I see my frozen VT, but today I recognized the Cursor is
> blinking (this is not a different to fbcon builtin, I just recognized it
> today). But I don't know if this makes any differences.
> 
> greetings
> 

From your logs:
> [drm:edid_is_valid] *ERROR* EDID checksum is invalid, remainder is 141

Doesn't sound like nouveau's fault, your monitor probably reports a broken EDID. To workaround it you can manually set the framebuffer resolution in the kernel command line, like:
> video=VGA-1:1024x768e
(The trailing "e" forces the output to be enabled)
Comment 5 Jan Buecken 2009-11-01 01:34:48 UTC
Created attachment 30875 [details]
forced kernel command line option

> Doesn't sound like nouveau's fault, your monitor probably reports a broken
> EDID. To workaround it you can manually set the framebuffer resolution in the
> kernel command line, like:
> > video=VGA-1:1024x768e
> (The trailing "e" forces the output to be enabled)

Tried this, but the problem still exists!

But the message

> > [drm:edid_is_valid] *ERROR* EDID checksum is invalid, remainder is 141

disappear (see new dmesg log)

New ideas?
Comment 6 Jan Buecken 2009-11-01 01:38:51 UTC
Reopen because forcing the video output is not a solution. And thus the wrong EDID is not the problem (?)
Comment 7 Jan Buecken 2009-11-01 15:29:12 UTC
checked out new git today. behavior changed:
After loading KMS I get a simple black screen instead of a frozen screen.
Comment 8 Jan Buecken 2009-11-06 08:40:14 UTC
Tried an other monitor (MD6155AH) today. Does work!

But: Tried forcing the resolution with the command line option (video=VGA-1:1024x768e) with this monitor. Does not work (same problem, black screen)! The monitor tells me it has no connection any more.

Tried other resolutions with the old monitor (LT1772ie, which is technical the same like an Acerview 76ie)
The resolution 800x600e does work! This seems to be the resolution the kernel boots with (so there is no resolution switch?). Maybe it is not possible to switch the resolutions if it is forced by kernel command line?

If necessary I can upload the new dmesg outputs of the different cases.
Comment 9 Jan Buecken 2009-11-06 09:34:14 UTC
Created attachment 31015 [details]
get-edid | parse-edid output

get-edid | parse-edid output from the "read-edid" toolkit
Comment 10 Jan Buecken 2009-11-06 10:37:45 UTC
Created attachment 31016 [details]
forced 1024x768 but drm debug=4

New dmesg with command line option video=VGA-1:1024x768e
but first 
modprobe -r nouveau, 
modprobe drm debug=4, 
then modprobe nouveau modeset=1
Comment 11 Francisco Jerez 2009-11-06 12:56:10 UTC
Created attachment 31018 [details] [review]
set_crtc_info_for_cmdline_modes.patch

Does the attached patch help?
Comment 12 Jan Buecken 2009-11-07 04:36:39 UTC
(In reply to comment #11)
> Created an attachment (id=31018) [details]
> set_crtc_info_for_cmdline_modes.patch
> 
> Does the attached patch help?
> 

Yes, this patch works! (I only test the situation with the command line video=VGA-1:1024x768e )

Thanks.
Comment 13 Francisco Jerez 2009-11-20 17:36:59 UTC
The patch is already in Linus' kernel tree and it will eventually flow back to nouveau, so I'm marking this bug as closed.


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.