[Bug 596268] New: ATI firmware cannot be loaded by radeon module in initrd
http://bugzilla.novell.com/show_bug.cgi?id=596268 http://bugzilla.novell.com/show_bug.cgi?id=596268#c0 Summary: ATI firmware cannot be loaded by radeon module in initrd Classification: openSUSE Product: openSUSE 11.3 Version: Milestone 4 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: eich@novell.com ReportedBy: sndirsch@novell.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com CC: mhopf@novell.com, sndirsch@novell.com, robin.knapp@ts.fujitsu.com Found By: --- Blocker: --- https://bugzilla.novell.com/show_bug.cgi?id=595653#c20 [...] However, I know why the firmware cannot be loaded: The order of scripts in initrd is: .. 03-kms.sh .. 04-udev.sh .. If nomodeset is set, kms.sh sets "dont_load_modules" - otherwise kms modules will be loaded automatically. BUT: The firmware loader needs a running udev. If I modify the run-all script and insert a "bash" after the udev.sh script, I can manually load them. It's not possible without the udev daemon. I'm not sure if it's enough to just start kms.sh after udev.sh because udev might load the modules automatically (is this the case with this kind of modules?) Otherwise kms would have to pre split in two scripts - the first sets options and always calls dont_load_modules, the seconds (after udev) then explicitely loads the modules. -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c1
--- Comment #1 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c2
--- Comment #2 from Robin Knapp
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c3
--- Comment #3 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c4
--- Comment #4 from Robin Knapp
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c5
--- Comment #5 from Robin Knapp
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c6
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c7
--- Comment #7 from Robin Knapp
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c8
--- Comment #8 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c9
--- Comment #9 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c10
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c13
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c14
--- Comment #14 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c15
--- Comment #15 from Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c17
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c18
--- Comment #18 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c19
--- Comment #19 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c20
--- Comment #20 from Stefan Dirsch
Confirmed. radeon/RS780_pfp.bin gets loaded in openSUSE 11.3 M5 after upgrading to mkinitrd-2.5.10-68.2.x86_64 from Base:System
However, boot.msg now shows <3>[ 3.033332] r600_cp: Failed to load firmware "radeon/R600_rlc.bin" <3>[ 3.033342] [drm:r600_startup] *ERROR* Failed to load firmware!
(apparently without any ill effects ?!)
Probably unrelated to being loaded in initrd. But you can double check by adding 'nomodeset 3' to kernel boot command line. Then unload "radeon" kernel module and reload it again manually via modrobe. (In reply to comment #19)
A bit more concerning is the need for "selinux=0" during boot. But it might as well be related to running the M5 kernel. Lets see what M6 brings ;-)
What happens if you don't use that option? -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c21
--- Comment #21 from Klaus Kämpf
Probably unrelated to being loaded in initrd. But you can double check by adding 'nomodeset 3' to kernel boot command line. Then unload "radeon" kernel module and reload it again manually via modrobe.
Ok, will do in a moment.
(In reply to comment #19)
A bit more concerning is the need for "selinux=0" during boot. But it might as well be related to running the M5 kernel. Lets see what M6 brings ;-)
What happens if you don't use that option?
The kernel stops booting with a selinux privilege violation. (I couldn't capture the kernel msg :-() -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c22
--- Comment #22 from Klaus Kämpf
Probably unrelated to being loaded in initrd. But you can double check by adding 'nomodeset 3' to kernel boot command line. Then unload "radeon" kernel module and reload it again manually via modrobe.
The 'radeon' module is not loaded after boot. modprobing it results in Apr 20 12:31:43 linux-lkbf kernel: [ 52.536362] [drm] Initialized drm 1.10 20060810 Apr 20 12:31:43 linux-lkbf kernel: [ 52.592933] [drm] VGACON disable radeon kernel modesetting. Apr 20 12:31:43 linux-lkbf kernel: [ 52.597777] pci 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 Apr 20 12:31:43 linux-lkbf kernel: [ 52.601959] pci 0000:01:05.0: setting latency timer to 64 Apr 20 12:31:43 linux-lkbf kernel: [ 52.602211] [drm] Initialized radeon 1.32.0 20080528 for 0000:01:05.0 on minor 0 -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c23
--- Comment #23 from Klaus Kämpf
What happens if you don't use that option?
This is shown on the console boot/93-boot.sh: line 28: [: =: unary operator expected boot/93-boot.sh: line 34: [: =: unary operator expected Machine in enforcing mode and cannot execute load_policy To disable selinux, add selinux=0 to the kernel command line. Not continuing -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c24
--- Comment #24 from Robin Knapp
(In reply to comment #20)
Probably unrelated to being loaded in initrd. But you can double check by adding 'nomodeset 3' to kernel boot command line. Then unload "radeon" kernel module and reload it again manually via modrobe.
The 'radeon' module is not loaded after boot.
modprobing it results in
Apr 20 12:31:43 linux-lkbf kernel: [ 52.536362] [drm] Initialized drm 1.1.0 20060810 Apr 20 12:31:43 linux-lkbf kernel: [ 52.592933] [drm] VGACON disable radeon kernel modesetting.
I found that when booting with "nomodeset", loading the radeon module does not enable modesetting. Or maybe it's caused by the udev rules. Try this: modprobe --ignore-install radeon modeset=1 -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c25
--- Comment #25 from Stefan Dirsch
The 'radeon' module is not loaded after boot.
Weird. It should be loaded, just with KMS disabled.
modprobing it results in
Apr 20 12:31:43 linux-lkbf kernel: [ 52.536362] [drm] Initialized drm 1.1.0 20060810 Apr 20 12:31:43 linux-lkbf kernel: [ 52.592933] [drm] VGACON disable radeon kernel modesetting. Apr 20 12:31:43 linux-lkbf kernel: [ 52.597777] pci 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18 Apr 20 12:31:43 linux-lkbf kernel: [ 52.601959] pci 0000:01:05.0: setting latency timer to 64 Apr 20 12:31:43 linux-lkbf kernel: [ 52.602211] [drm] Initialized radeon 1.32.0 20080528 for 0000:01:05.0 on minor 0
So no issues with loading ATI firmware? Sure that KMS is active? Verify with cat /sys/module/radeon/parameters/modeset 0 means disabled, 1 enabled, -1 default (i.e. KMS enabled). If it is 0 try with 'modprobe radeon modeset=1'. Do you now see any issues with loading the firmware? -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c26
--- Comment #26 from Klaus Kämpf
So no issues with loading ATI firmware? Sure that KMS is active? Verify with
cat /sys/module/radeon/parameters/modeset
0 means disabled, 1 enabled, -1 default (i.e. KMS enabled).
Its 0.
If it is 0 try with 'modprobe radeon modeset=1'. Do you now see any issues with loading the firmware?
Nothing different from comment #18 -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c27
--- Comment #27 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c28
--- Comment #28 from Stefan Dirsch
(In reply to comment #20)
What happens if you don't use that option?
This is shown on the console
boot/93-boot.sh: line 28: [: =: unary operator expected boot/93-boot.sh: line 34: [: =: unary operator expected Machine in enforcing mode and cannot execute load_policy To disable selinux, add selinux=0 to the kernel command line. Not continuing
I believe that's a differeent issue. Could you open a seperate bugreport for that? Thanks. -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c29
--- Comment #29 from Stefan Dirsch
If it is 0 try with 'modprobe radeon modeset=1'. Do you now see any issues withloading the firmware?
Nothing different from comment #18
Ok. So it's unrelated to initrd. :-) -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c30
--- Comment #30 from Klaus Kämpf
(In reply to comment #23)
(In reply to comment #20)
What happens if you don't use that option?
This is shown on the console
boot/93-boot.sh: line 28: [: =: unary operator expected boot/93-boot.sh: line 34: [: =: unary operator expected Machine in enforcing mode and cannot execute load_policy To disable selinux, add selinux=0 to the kernel command line. Not continuing
I believe that's a differeent issue. Could you open a seperate bugreport for that? Thanks.
Done. bnc#598075 -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c31
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c32
--- Comment #32 from Stefan Dirsch
(In reply to comment #26)
If it is 0 try with 'modprobe radeon modeset=1'. Do you now see any issues withloading the firmware?
Nothing different from comment #18
Ok. So it's unrelated to initrd. :-)
Klaus, you have kernel-firmware installed, do you? -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c33
--- Comment #33 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c34
--- Comment #34 from Stefan Dirsch
iirc, no. But I have to check @home to be sure.
You don't? This would explain a lot. :-) -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c35
--- Comment #35 from Klaus Kämpf
(In reply to comment #33)
iirc, no. But I have to check @home to be sure.
You don't? This would explain a lot. :-)
Indeed, kernel-firmware was _not_ installed. How does this package get installed ? Which dependencies trigger its installation ? -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c36
--- Comment #36 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c37
--- Comment #37 from Klaus Kämpf
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c38
--- Comment #38 from Jiri Slaby
Hmm, installing kernel-firmware doesn't change anything from comment #18
Did you remake your initrd? (In reply to comment #37)
kernel-desktop already includes /lib/firmware/2.6.34-rc3-3-desktop/radeon/*, so kernel-firmware is apparently not needed.
It is. I don't see a reason why we would need the firmware twice though. -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c39
--- Comment #39 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c40
--- Comment #40 from Klaus Kämpf
Indeed there are firmware files in /lib/firmware/2.6.34-rc4-4-desktop/radeon/ and /lib/firmware/radeon/, but apparenly two files are missing in /lib/firmware/2.6.34-rc4-4-desktop/radeon/. Apart from that the directories are identical.
Ah, so this would qualify as a kernel packaging bug ?!
Only in /lib/firmware/radeon/: R600_rlc.bin Only in /lib/firmware/radeon/: R700_rlc.bin
R600_rlc.bin is exactly the file you were missing. You need to run mkinitrd after installing the kernel-firmware package to add it to initrd. Otherwise it cannot be loaded from initrd.
Yeah, sorry to overlook the obvious. Will recreate initrd and test again when I'm back home. -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c41
--- Comment #41 from Stefan Dirsch
(In reply to comment #39)
Indeed there are firmware files in /lib/firmware/2.6.34-rc4-4-desktop/radeon/ and /lib/firmware/radeon/, but apparenly two files are missing in /lib/firmware/2.6.34-rc4-4-desktop/radeon/. Apart from that the directories are identical.
Ah, so this would qualify as a kernel packaging bug ?!
Maybe. Please report the issue and let me know about the results (or add me to Cc). I even don't understand why we have (about) the same firmware files at two different locations ... -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c42
Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c43
--- Comment #43 from Klaus Kämpf
Yeah, sorry to overlook the obvious. Will recreate initrd and test again when I'm back home.
Working fine now. All firmware files load properly and the console/bootsplash -> X11 switch is smooth. However, this display went dark after ~30 secs and the kernel oopsed (dead numlock). Fill file a separate bug for this :-/ -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c44
--- Comment #44 from Klaus Kämpf
Maybe. Please report the issue and let me know about the results (or add me to Cc). I even don't understand why we have (about) the same firmware files at two different locations ...
Filed as bnc#598624 -- 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=596268
http://bugzilla.novell.com/show_bug.cgi?id=596268#c45
Jeff Mahoney
participants (1)
-
bugzilla_noreply@novell.com