[Bug 609607] New: Black screen after boot ( radeon / kms?? )
http://bugzilla.novell.com/show_bug.cgi?id=609607 http://bugzilla.novell.com/show_bug.cgi?id=609607#c0 Summary: Black screen after boot ( radeon / kms?? ) Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 7 Platform: x86 OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: heisecke@zad-northeim.de QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.3) Gecko/20100401 SUSE/3.6.3-1.2 Firefox/3.6.3 hello, i have an ati x700 radeon mobility card. and i've tried m7 kde live-cd. when the system is up there is only a black screen. i have tried out runlevel 3 and grub parameter: radeon.modeset=1 and when the system is up, the radeon driver isn`t loaded. but when i load it, and run into runlevel 5, than it work. It doesn`t work with: radeon.modeset=0 thanx Reproducible: Always Steps to Reproduce: 1. grub without parameters x crashes and the console is displayed 2. grub with runlevel 3 and radeon.modeset=0 and after bootup load driver radeon, run into RL5 doesn`t work 3.grub with runlevel 3 and radeon.modeset=1 and after bootup load driver radeon run into RL5 everythings fine! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c1
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c2
--- Comment #2 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c3
--- Comment #3 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c4
--- Comment #4 from Stefan Dirsch
Hmm. So radeon module gets added to initrd. Maybe in initrd something is missing which then is available in system. Could you attach your /var/log/boot.msg?
Of course with KMS enabled. Then boot with KMS disabled into runlevel 3, login and run 'modprobe radeon'. Afterwards attach the lines in /var/log/messages when the kernel module gets loaded. Maybe there is a significant difference. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c5
--- Comment #5 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c6
--- Comment #6 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c7
--- Comment #7 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c8
--- Comment #8 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c9
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c10
--- Comment #10 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c11
--- Comment #11 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c12
--- Comment #12 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c13
--- Comment #13 from Alex Deucher
Alex, I would like to know how other Linux distributions handle the issue, that radeon kernel module isn't initialized in time when not already loaded in initrd.
You need to include the modules in the initrd. You need radeon and and the drm modules (and fbcon if you want console at boot) and for AGP cards, you need the AGP modules. If you didn't want to include the AGP modules, you could force radeon to use the on-chip gart by passing radeon.agpmode=-1 on the kernel command line. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c14
--- Comment #14 from Stefan Dirsch
(In reply to comment #9) You need to include the modules in the initrd. You need radeon and and the drm modules (and fbcon if you want console at boot)
AFAICS that would be drm, drm_kms_helper, i915, nouveau, radeon.
and for AGP cards, you need the AGP modules.
And that would be intel-agp, sis-agp, via-agp. The issue is that there are no deps from the drm to the appropriate agp module. In an installed system the required agp module is loaded automatically during boot. Then afterwards the drm module once the Xserver gets started. Since that's not possible in initrd Egbert patched mkinitrd in a way that the correct agp/drm module gets loaded in initrd. But that doesn't work for a LiveCD due to obvious reasons.
If you didn't want to include the AGP modules, you could force radeon to use the on-chip gart by passing radeon.agpmode=-1 on the kernel command line.
That would be something for Tobias to try. And Alex, do you happen to know how Fedora/Ubuntu resolve that timing issue with radeon with their LiveCD? BTW, we've never seen that timing issue with nouveau. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c15
--- Comment #15 from Tobias Heisecke
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c16
--- Comment #16 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c17
--- Comment #17 from Alex Deucher
(In reply to comment #13)
(In reply to comment #9) You need to include the modules in the initrd. You need radeon and and the drm modules (and fbcon if you want console at boot)
AFAICS that would be drm, drm_kms_helper, i915, nouveau, radeon.
And that would be intel-agp, sis-agp, via-agp.
yes. and fbcon for console on the fbdev provided by the drm.
The issue is that there are no deps from the drm to the appropriate agp module. In an installed system the required agp module is loaded automatically during boot. Then afterwards the drm module once the Xserver gets started.
Since that's not possible in initrd Egbert patched mkinitrd in a way that the correct agp/drm module gets loaded in initrd. But that doesn't work for a LiveCD due to obvious reasons.
I'm not following. What's the problem with including them in the initrd?
If you didn't want to include the AGP modules, you could force radeon to use the on-chip gart by passing radeon.agpmode=-1 on the kernel command line.
That would be something for Tobias to try. And Alex, do you happen to know how Fedora/Ubuntu resolve that timing issue with radeon with their LiveCD? BTW, we've never seen that timing issue with nouveau.
x700 mobility cards are pcie so agp is not used at all. Other distros just include the drm and agp modules in the initrd that they can be loaded at boot time as needed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c18
Stefan Dirsch
I'm not following. What's the problem with including them in the initrd?
The correct agp/drm module combination wouldn't be loaded in initrd. Also they need to be loaded in the right order. First agp, then drm.
x700 mobility cards are pcie so agp is not used at all. Other distros just include the drm and agp modules in the initrd that they can be loaded at boot time as needed.
Thanks for letting us know this. Not sure how they make sure the right agp/drm module in the right order are loaded though. Need to continue the discussion with Egbert/Matthias on monday. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c19
--- Comment #19 from Alex Deucher
I'm not following. What's the problem with including them in the initrd?
The correct agp/drm module combination wouldn't be loaded in initrd. Also they need to be loaded in the right order. First agp, then drm.
The proper agp modules should load based on the agp bridge pci ids, so there shouldn't be any issue with needing to know what agp module before hand. (as a side note, you'll also need amd64-agp for 64-bit AMD platforms with agp). Also, I haven't looked at the agp code in a while, but IIRC, I think the drm will request the agp module if it hasn't loaded yet. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c20
--- Comment #20 from Stefan Dirsch
The proper agp modules should load based on the agp bridge pci ids, so there shouldn't be any issue with needing to know what agp module before hand.
This is news to me.
(as a side note, you'll also need amd64-agp for 64-bit AMD platforms with agp).
That one appears to be compiled into the kernel.
Also, I haven't looked at the agp code in a while, but IIRC, I think the drm will request the agp module if it hasn't loaded yet.
My experience has always been that this is *not* the case. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c21
--- Comment #21 from Matthias Hopf
The proper agp modules should load based on the agp bridge pci ids, so there shouldn't be any issue with needing to know what agp module before hand.
The order is still undefined. The dri modules cannot depend on the agp module, because the right agp module doesn't depend on the drm vendor, but on the north bridge vendor.
Also, I haven't looked at the agp code in a while, but IIRC, I think the drm will request the agp module if it hasn't loaded yet.
My experience has always been that this is *not* the case.
I'm unsure whether that is even possible. Only udev knows which agp module is to be loaded. Except for if you try all of them. Alex, don't you still "need" agpgart for setting up GART memory for additional texture space, even with PCIe cards? Not strictly required for operation, but helpful? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c22
--- Comment #22 from Alex Deucher
Alex, don't you still "need" agpgart for setting up GART memory for additional texture space, even with PCIe cards? Not strictly required for operation, but helpful?
agpgart is only needed for AGP cards. The internal non-AGP gart mechanisms (pci/pcie/igp) are handled completely within the radeon drm. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c23
--- Comment #23 from Matthias Hopf
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c24
--- Comment #24 from Matthias Hopf
- All agpgart modules are compiled into the kernel
Fedora 13 is using this method. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c25
--- Comment #25 from Matthias Hopf
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c26
Matthias Hopf
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c27
Stephan Kulow
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c28
--- Comment #28 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c29
Stefan Dirsch
the live cd of the live cds are done by kiwi. More I can't really say - you need to talk to the maintainers of kiwi and mkinitrd.
Thanks. Adding Marcus/Micha. Marcus/Micha, can you share us more details in which way initrd is created differently for LiveCD? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c30
--- Comment #30 from Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c31
--- Comment #31 from Stefan Dirsch
The following steps have to be taken to create a live CD:
- Egbert's mkinitrd scriptlet has to be blown up to include *all* agp modules and *all* drm modules (including firmwares) - The udev rule 79-kms.rules that prohibits loading of the drm module has to be nuked - Egbert's boot script 05-kms.sh that is called *after* udev has to be replacedby a script that's called *before* udev and just loads *all* agp modules. Which basically resembles a kernel that has all agp modules built in
Then the right drm module will be loaded by udev, and agp will already be active by then.
Ok. Since it's to late for 11.3 meanwhile. For openSUSE > 11.3 let's do the Fedora way and make sure that all agpgart modules are compiled *into* the kernel. Additionally - Egbert's mkinitrd scriptlet has to be blown up to include *all* drm modules (including firmwares) - The udev rule 79-kms.rules that prohibits loading of the drm module has to be nuked -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c32
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c33
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c34
--- Comment #34 from Stefan Dirsch
I've enabled the AGP modules on x86/x86_64.
Means agp drivers are now builtin. Thanks, Jeff! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c35
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c36
Stefan Dirsch
I've enabled the AGP modules on x86/x86_64.
Jeff, sure that you did this also for i586? I'm running 2.6.37-rc3-git1-4-pae from Kernel:HEAD / openSUSE_11.3 and I still agp kernel modules # zcat /proc/config.gz |grep -i agp CONFIG_AGP=y CONFIG_AGP_ALI=m CONFIG_AGP_ATI=m CONFIG_AGP_AMD=m CONFIG_AGP_AMD64=y CONFIG_AGP_INTEL=y CONFIG_AGP_NVIDIA=m CONFIG_AGP_SIS=y CONFIG_AGP_SWORKS=m CONFIG_AGP_VIA=y CONFIG_AGP_EFFICEON=m -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c37
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c38
--- Comment #38 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c39
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c40
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c41
--- Comment #41 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c42
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c43
--- Comment #43 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c44
--- Comment #44 from Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c45
--- Comment #45 from Stefan Dirsch
Egbert, could you take care about the remaining topics?
- Egbert's mkinitrd scriptlet has to be blown up to include *all* drm modules (including firmwares)
60644 State:new By:sndirsch When:2011-02-12T13:50:27 submit: home:sndirsch:branches:Base:System/mkinitrd -> Base:System Descr: - scripts/setup-kms.sh: add all KMS modules to initrd (bnc #609607, comment #42)
- The udev rule 79-kms.rules that prohibits loading of the drm module has to be nuked
60643 State:new By:sndirsch When:2011-02-12T13:50:22 submit: home:sndirsch:branches:Base:System/udev -> Base:System Descr: - removed 79-kms.rules (bnc #609607, comment #42) Frederic, if you could test my changes by building a new LiveCD, that would be great. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c46
--- Comment #46 from Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c47
--- Comment #47 from Stefan Dirsch
Why *all* drm modules and not just the ones used on that system?
You are aware of that we're talking about the LiveCD ?!?
BTW, the firmware dependencies are documented inside each module and mkinitrd handles those automatically.
Yes, this works fine. Therefore adding i915, radeon, and nouveau has been sufficient. :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c48
--- Comment #48 from Michal Marek
(In reply to comment #42)
Egbert, could you take care about the remaining topics?
- Egbert's mkinitrd scriptlet has to be blown up to include *all* drm modules (including firmwares)
60644 State:new By:sndirsch When:2011-02-12T13:50:27 submit: home:sndirsch:branches:Base:System/mkinitrd -> Base:System Descr: - scripts/setup-kms.sh: add all KMS modules to initrd (bnc #609607, comment #42)
The LiveCD is created by kiwi, which uses its own mkinitd version, see comment 30. So patching the mkinitd package won't help here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c49
--- Comment #49 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c50
--- Comment #50 from Stefan Dirsch
- The udev rule 79-kms.rules that prohibits loading of the drm module has to be nuked
60643 State:new By:sndirsch When:2011-02-12T13:50:22 submit: home:sndirsch:branches:Base:System/udev -> Base:System Descr: - removed 79-kms.rules (bnc #609607, comment #42)
Meanwhile already accepted also for openSUSE:Factory. -:) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c51
--- Comment #51 from Stefan Dirsch
I guess someone needs to explain Marcus what to do. The kiwi configs have a hard coded list of modules, kms.sh does more afaik.
Thanks. I've contacted him meanwhile and he's going to patch kiwi accordingly for openSUSE 11.4 (kiwi/system/boot/ix86/netboot/suse-11.4/config.xml). Please forget aobut kms.sh. It has always been dead code, since "nomodeset" has a "special" meaning .. My patch was for setup-kms.sh. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=609607
https://bugzilla.novell.com/show_bug.cgi?id=609607#c53
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=609607
http://bugzilla.novell.com/show_bug.cgi?id=609607#c54
--- Comment #54 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com