Bug 24247

Summary: R300 and KMS causes kernel crash on X init
Product: xorg Reporter: Kristian <kristian>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Output of dmesg
none
Output of lspci -nnxx
none
Packages installed on the Ubuntu system
none
The Xorg log file none

Description Kristian 2009-09-30 22:54:54 UTC
When trying to launch X with KMS enabled on a R300 I get a kernel crash. The same software versions works fine on another computer with KMS and RV770.
Comment 1 Kristian 2009-09-30 22:55:30 UTC
Created attachment 29968 [details] [review]
Output of dmesg
Comment 2 Kristian 2009-09-30 22:55:48 UTC
Created attachment 29969 [details]
Output of lspci -nnxx
Comment 3 Kristian 2009-09-30 22:56:09 UTC
Created attachment 29970 [details]
Packages installed on the Ubuntu system
Comment 4 Kristian 2009-09-30 22:56:35 UTC
Created attachment 29971 [details]
The Xorg log file
Comment 5 Kristian 2009-09-30 23:01:32 UTC
This laptop doesn't have it's flat panel attached. The only monitor is a lcd connected through the vga connector.
Comment 6 Michel Dänzer 2009-10-01 03:20:20 UTC
Looks like it misdetects the LVDS panel size as 0x0 and then crashes as a consequence of that.
Comment 7 Kristian 2009-10-01 03:24:53 UTC
(In reply to comment #6)
> Looks like it misdetects the LVDS panel size as 0x0 and then crashes as a
> consequence of that.
> 

Is there some simple way to work around this or is this something that needs to be fixed in the initialization code?
Comment 8 Alex Deucher 2009-10-02 16:47:27 UTC
The DDX has code to skip panels that are 0x0.  Needs to be ported to kms.
Comment 9 Kristian 2009-10-06 05:41:57 UTC
(In reply to comment #6)
> Looks like it misdetects the LVDS panel size as 0x0 and then crashes as a
> consequence of that.

I can now confirm this. I did reconnect the LVDS and now everything works as expected.
Comment 10 Alex Deucher 2009-10-12 07:05:47 UTC
Can you try again with drm-next?  Should be fixed in:
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=commitdiff;h=2ffb842948ba64b03986f4064140a74c1780c44b
Comment 11 Kristian 2009-10-12 23:10:25 UTC
Works perfectly. Thanks.

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.