Skip to contentSkip to conversation

PROBLEM: [drm:r600_do_init_cp] *ERROR* Failed to load firmware!

DISCUSSION Treeve Jelbert 3 participants 6 messages Apr 23, 2012 – May 3, 2012

lore
Share & tools
lore
#0 lore raw

Linux-3.3.3

$ dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized radeon 1.33.0 20080528 for 0000:02:00.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading RV730 CP Microcode
[drm:r600_do_init_cp] *ERROR* Failed to load firmware!

This may be related to udev:
I have udev-182 + kmod-7

$ ls -l /lib/firmware/radeon/RV730*
-rw-r--r-- 1 root root 5440 Apr 23 08:43 /lib/firmware/radeon/RV730_me.bin
-rw-r--r-- 1 root root 3392 Apr 23 08:43 /lib/firmware/radeon/RV730_pfp.bin
# lspci -nn -v -d 1002:
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI 
RV730 PRO [Radeon HD 4650] [1002:9498] (prog-if 00 [VGA controller])
        Subsystem: Hightech Information System Ltd. Device [1787:2269]
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f3000000 (64-bit, non-prefetchable) [size=64K]
        I/O ports at a000 [size=256]
        [virtual] Expansion ROM at f2000000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 
<?>

02:00.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI Audio [Radeon HD 4000 series] [1002:aa38]
Subsystem: Hightech Information System Ltd. Device [1787:aa38]
Flags: bus master, fast devsel, latency 0, IRQ 41
Memory at f3010000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010
<?>
Kernel driver in use: snd_hda_intel

Full config and dmesg files attached

$ sh scripts/ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux Gemini-64 3.3.3 #21 SMP PREEMPT Mon Apr 23 08:43:10 CEST 2012 x86_64 GNU/Linux

Gnu C                  4.7.0
Gnu make               3.82
binutils               2.22
util-linux             2.21.1
mount                  support
module-init-tools      7
e2fsprogs              1.42.2
Linux C Library        2.15
Dynamic linker (ldd)   2.15
Linux C++ Library      6.0.17
Procps                 3.2.8
Net-tools              1.60
Kbd                    1.15.3
Sh-utils               8.16
Modules Loaded         radeon power_supply drm_kms_helper ttm drm i2c_algo_bit 

af_packet it87 hwmon_vid snd_pcm_oss snd_mixer_oss snd_seq_midi snd_seq_midi_event snd_seq fuse snd_hda_codec_hdmi snd_hda_codec_realtek snd_trident snd_util_mem snd_ac97_codec ac97_bus snd_mpu401_uart snd_rawmidi snd_hda_intel snd_hda_codec snd_seq_device snd_pcm snd_page_alloc snd_timer snd sr_mod cdrom 8250_pnp soundcore 8250 processor firewire_ohci serial_core firewire_core crc_itu_t psmouse i2c_nforce2 i2c_core forcedeth parport_pc parport button evdev k8temp

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw
Quoted 11 lines · Treeve Jelbert

Linux-3.3.3

$ dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized radeon 1.33.0 20080528 for 0000:02:00.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading RV730 CP Microcode
[drm:r600_do_init_cp] *ERROR* Failed to load firmware!

Does disabling CONFIG_FIRMWARE_IN_KERNEL in .config help?

Signature · 6 lines
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 13 lines · On Monday 23 April 2012 12:18:55 Michel Dänzer wrote:
Quoted 11 lines · Treeve Jelbert

Linux-3.3.3

$ dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized radeon 1.33.0 20080528 for 0000:02:00.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading RV730 CP Microcode
[drm:r600_do_init_cp] *ERROR* Failed to load firmware!
Quoted 1 line

Does disabling CONFIG_FIRMWARE_IN_KERNEL in .config help?

no change

$ grep FIRM .config
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
# CONFIG_FIRMWARE_IN_KERNEL is not set
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FIRMWARE_EDID=y
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_GOOGLE_FIRMWARE is not set
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw
Quoted 18 lines · Treeve Jelbert
Quoted 13 lines · On Monday 23 April 2012 12:18:55 Michel Dänzer wrote:
Quoted 11 lines · Treeve Jelbert

Linux-3.3.3

$ dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized radeon 1.33.0 20080528 for 0000:02:00.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading RV730 CP Microcode
[drm:r600_do_init_cp] *ERROR* Failed to load firmware!
Quoted 1 line

Does disabling CONFIG_FIRMWARE_IN_KERNEL in .config help?

no change

Quoted 11 lines
$ grep FIRM .config
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
# CONFIG_FIRMWARE_IN_KERNEL is not set
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FIRMWARE_EDID=y
CONFIG_FIRMWARE_MEMMAP=y
# CONFIG_GOOGLE_FIRMWARE is not set
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Does booting with "radeon.modeset=0 3" and then as root:
modprobe radeon modeset=1
works ?

If so then it's initrd issue

Jerome

#4 lore raw
In reply to Treeve Jelbert
Quoted 14 lines · On Monday 23 April 2012 11:18:52 you wrote:

Linux-3.3.3

$ dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized radeon 1.33.0 20080528 for 0000:02:00.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading RV730 CP Microcode
[drm:r600_do_init_cp] *ERROR* Failed to load firmware!

I have now booted using radeon.modeset=0
and then manually doing 'modprobe radeon modeset=1'

this gives the following messages on linux-3.3.4. The error message is now different, but it still fails.
The file /lib/firmware/radeon/RV730_pfp.bin exists
There are message about rv730/rv770

[drm] Initialized drm 1.1.0 20060810
[drm] radeon kernel modesetting enabled.
ACPI: PCI Interrupt Link [APC5] enabled at IRQ 16
[drm] initializing kernel modesetting (RV730 0x1002:0x9498 0x1787:0x2269). [drm] register mmio base: 0xF3000000
[drm] register mmio size: 65536
ATOM BIOS: 88209JCA.EFK
radeon 0000:02:00.0: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
radeon 0000:02:00.0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF [drm] Detected VRAM RAM=512M, BAR=256M
[drm] RAM width 128bits DDR
[TTM] Zone kernel: Available graphics memory: 2028866 kiB.
[TTM] Initializing pool allocator.
[TTM] Initializing DMA pool allocator.
[drm] radeon: 512M of VRAM memory ready
[drm] radeon: 512M of GTT memory ready.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] Driver supports precise vblank timestamp query.
radeon 0000:02:00.0: irq 42 for MSI/MSI-X
radeon 0000:02:00.0: radeon: using MSI.
[drm] radeon: irq initialized.
[drm] GART: num cpu pages 131072, num gpu pages 131072
[drm] radeon: ib pool ready.
[drm] Loading RV730 Microcode
r600_cp: Failed to load firmware "radeon/RV730_pfp.bin" [drm:rv770_startup] *ERROR* Failed to load firmware!
radeon 0000:02:00.0: disabling GPU acceleration
radeon 0000:02:00.0: ffff88011a561000 unpin not necessary
radeon 0000:02:00.0: ffff88011a46c000 unpin not necessary
radeon 0000:02:00.0: ffff88011a46c000 unpin not necessary
[drm] Radeon Display Connectors
[drm] Connector 0:

[drm]   HDMI-A
[drm]   HPD2
[drm]   DDC: 0x7f10 0x7f10 0x7f14 0x7f14 0x7f18 0x7f18 0x7f1c 0x7f1c
[drm]   Encoders:
[drm]     DFP2: INTERNAL_UNIPHY1
[drm] Connector 1:
[drm]   VGA
[drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
[drm]   Encoders:
[drm]     CRT2: INTERNAL_KLDSCP_DAC2
[drm] Connector 2:
[drm]   DVI-I
[drm]   HPD1
[drm]   DDC: 0x7e20 0x7e20 0x7e24 0x7e24 0x7e28 0x7e28 0x7e2c 0x7e2c
[drm]   Encoders:

[drm] CRT1: INTERNAL_KLDSCP_DAC1
[drm] DFP1: INTERNAL_UNIPHY
[drm] Internal thermal controller without fan control [drm] radeon: power management initialized
[drm] fb mappable at 0xE0040000
[drm] vram apper at 0xE0000000
[drm] size 5242880
[drm] fb depth is 24
[drm] pitch is 5120
bcon: radeondrmfb (fb0) is primary device
Console: switching to colour frame buffer device 160x64
fb0: radeondrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized radeon 2.13.0 20080528 for 0000:02:00.0 on minor 0

Quoted 77 lines

This may be related to udev:
I have udev-182 + kmod-7

$ ls -l /lib/firmware/radeon/RV730*
(quoted diff) +0 -2
-rw-r--r-- 1 root root 5440 Apr 23 08:43 /lib/firmware/radeon/RV730_me.bin
-rw-r--r-- 1 root root 3392 Apr 23 08:43 /lib/firmware/radeon/RV730_pfp.bin

# lspci -nn -v -d 1002:
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee
ATI RV730 PRO [Radeon HD 4650] [1002:9498] (prog-if 00 [VGA controller])
Subsystem: Hightech Information System Ltd. Device [1787:2269] Flags: bus
master, fast devsel, latency 0, IRQ 16
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f3000000 (64-bit, non-prefetchable) [size=64K]
        I/O ports at a000 [size=256]
        [virtual] Expansion ROM at f2000000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1
Len=010 <?>

02:00.1 Audio device [0403]: Advanced Micro Devices [AMD] nee ATI RV710/730 HDMI Audio [Radeon HD 4000 series] [1002:aa38]
Subsystem: Hightech Information System Ltd. Device [1787:aa38]
Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at f3010000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1
Len=010 <?>
Kernel driver in use: snd_hda_intel

Full config and dmesg files attached

$ sh scripts/ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux Gemini-64 3.3.3 #21 SMP PREEMPT Mon Apr 23 08:43:10 CEST 2012 x86_64 GNU/Linux

Gnu C                  4.7.0
Gnu make               3.82
binutils               2.22
util-linux             2.21.1
mount                  support
module-init-tools      7
e2fsprogs              1.42.2
Linux C Library        2.15
Dynamic linker (ldd)   2.15
Linux C++ Library      6.0.17
Procps                 3.2.8
Net-tools              1.60
Kbd                    1.15.3
Sh-utils               8.16
Modules Loaded         radeon power_supply drm_kms_helper ttm drm

i2c_algo_bit af_packet it87 hwmon_vid snd_pcm_oss snd_mixer_oss snd_seq_midi
snd_seq_midi_event snd_seq fuse snd_hda_codec_hdmi snd_hda_codec_realtek snd_trident snd_util_mem snd_ac97_codec ac97_bus snd_mpu401_uart snd_rawmidi snd_hda_intel snd_hda_codec snd_seq_device snd_pcm snd_page_alloc snd_timer snd sr_mod cdrom 8250_pnp soundcore 8250 processor firewire_ohci serial_core firewire_core crc_itu_t psmouse i2c_nforce2 i2c_core forcedeth parport_pc parport button evdev k8temp

#5 lore raw
Quoted 16 lines · Treeve Jelbert
Quoted 14 lines · On Monday 23 April 2012 11:18:52 you wrote:

Linux-3.3.3

$ dmesg|grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized radeon 1.33.0 20080528 for 0000:02:00.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading RV730 CP Microcode
[drm:r600_do_init_cp] *ERROR* Failed to load firmware!
Quoted 6 lines

I have now booted using radeon.modeset=0
and then manually doing 'modprobe radeon modeset=1'

this gives the following messages on linux-3.3.4. The error message is now different, but it still fails.

Odd. I suppose it really couldn't hurt talking to udev people for tracking down why it's failing.

Signature · 6 lines
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel