Problem with radeonfb on PowerPC 7448&MV64560
Hi all,
since several days I'm trying to run an ATI 9250 (PCI) graphic card under Linux Kernel 2.6.27.19. Nevertheless without success. The kernel shows the following message:
videoboot: Booting PCI video card bus 0, function 0, device 7
biosEmu: undefined interrupt 15h called! biosEmu/bios.int42: unknown function AH=0x0, AL=0x7, BL=0x0 radeonfb (0000:00:07.0): Cannot match card to OF node !
RADEON: CHIP_FAMILY 10 (0xa)
RADEON: MMIO_BASE 0xf1058000
RADEON: MMIO_BASE_PHYS 0x88000000
radeonfb (0000:00:07.0): Found 0k of SDRAM 64 bits wide videoram
RADEON: Try map FB Phys 0x80000000, size 0, 16777216. 0 radeonfb (0000:00:07.0): cannot map FB
radeonfb: probe of 0000:00:07.0 failed with error -5
This is the PCI initialization :
PCI: Probing PCI hardware
pci 0000:00:00.0: unknown header type 7f, ignoring device
pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.0: PME# disabled
pci 0000:00:08.1: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.1: PME# disabled
pci 0000:00:08.2: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.2: PME# disabled
PCI: PHB (bus 0) bridge rsrc 0: 0000000000011000-0000000000020fff [0x100], parent c0439ce0 (PCI IO)
PCI BUS: 0xc063e044:0xc0439ce0, 0xc063e060:0xc0439cc4
PCI: PHB (bus 0) bridge rsrc 1: 0000000080000000-00000000bfffffff [0x200], parent c0439cc4 (PCI mem)
PCI: PHB (bus 0) bridge rsrc 0: 00000000d8080000-00000000d808ffff [0x100], parent c0439ce0 (PCI IO)
PCI: PHB (bus 0) bridge rsrc 1: 0000000060000000-000000007fffffff [0x200], parent c0439cc4 (PCI mem)
PCI: Allocating 0000:00:07.0: Resource 0: 0000000080000000..0000000087ffffff [21208]
PCI: Allocating 0000:00:07.0: Resource 1: 00000000d8011000..00000000d80110ff [20101]
PCI: Cannot allocate resource region 1 of device 0000:00:07.0, will remap
PCI: Allocating 0000:00:07.0: Resource 2: 0000000088000000..000000008800ffff [20200]
PCI: Allocating 0000:00:07.1: Resource 0: 0000000090000000..0000000097ffffff [21208]
PCI: Allocating 0000:00:07.1: Resource 1: 0000000098000000..000000009800ffff [20200]
PCI: Allocating 0000:00:08.0: Resource 0: 0000000098010000..0000000098010fff [20200]
PCI: Allocating 0000:00:08.1: Resource 0: 0000000098011000..0000000098011fff [20200]
PCI: Allocating 0000:00:08.2: Resource 0: 0000000098012000..00000000980120ff [20200]
PCI: Allocating 0000:00:09.0: Resource 0: 00000000d8011100..00000000d8011107 [20101]
PCI: Cannot allocate resource region 0 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 1: 00000000d8011108..00000000d801110b [20101]
PCI: Cannot allocate resource region 1 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 2: 00000000d8011110..00000000d8011117 [20101]
PCI: Cannot allocate resource region 2 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 3: 00000000d8011118..00000000d801111b [20101]
PCI: Cannot allocate resource region 3 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 4: 00000000d8011120..00000000d801112f [20101]
PCI: Cannot allocate resource region 4 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 5: 0000000098012400..00000000980127ff [20200]
PCI: Allocating 0000:00:0a.0: Resource 0: 000000009c000000..000000009fffffff [20200]
PCI: Assigning unassigned resouces...
bus: 00 index 0 io port: [11000, 20fff]
bus: 00 index 1 mmio: [80000000, bfffffff]
bus: 00 index 0 io port: [d8080000, d808ffff]
bus: 00 index 1 mmio: [60000000, 7fffffff]
At chipset's MV6450 init, I haven't found any errors. Otherwise an PCI SATA controller and an 3Com network card running very well. I have no more ideas, where can be the possible problem. Do you have any suggestions?
Best regards
Eduard Fuchs
Quoted 9 lines · Eduard Fuchs
Hi all,
since several days I'm trying to run an ATI 9250 (PCI) graphic card under Linux Kernel 2.6.27.19. Nevertheless without success. The kernel shows the following message:
videoboot: Booting PCI video card bus 0, function 0, device 7
biosEmu: undefined interrupt 15h called! biosEmu/bios.int42: unknown function AH=0x0, AL=0x7, BL=0x0
The above comes from some patches you added to the kernel ? You should probably do the softboot in the firmware instead...
Quoted 1 line
radeonfb (0000:00:07.0): Cannot match card to OF node !
The above should be mostly harmless.
Quoted 5 lines
RADEON:
CHIP_FAMILY10 (0xa)
RADEON:MMIO_BASE0xf1058000
RADEON:MMIO_BASE_PHYS0x88000000
radeonfb (0000:00:07.0): Found 0k of SDRAM 64 bits wide videoram
RADEON: Try map FB Phys0x80000000, size 0, 16777216. 0
The above sounds wrong, was the card properly initialized ? Looks like your videoboot failed...
Quoted 77 lines
radeonfb (0000:00:07.0): cannot map FB
radeonfb: probe of 0000:00:07.0 failed with error -5This is the PCI initialization :
PCI: Probing PCI hardware
pci 0000:00:00.0: unknown header type 7f, ignoring device
pci 0000:00:08.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.0: PME# disabled
pci 0000:00:08.1: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.1: PME# disabled
pci 0000:00:08.2: PME# supported from D0 D1 D2 D3hot
pci 0000:00:08.2: PME# disabled
PCI: PHB (bus 0) bridge rsrc 0: 0000000000011000-0000000000020fff [0x100], parentc0439ce0(PCI IO)
PCI BUS: 0xc063e044:0xc0439ce0, 0xc063e060:0xc0439cc4
PCI: PHB (bus 0) bridge rsrc 1: 0000000080000000-00000000bfffffff [0x200], parentc0439cc4(PCI mem)
PCI: PHB (bus 0) bridge rsrc 0: 00000000d8080000-00000000d808ffff [0x100], parentc0439ce0(PCI IO)
PCI: PHB (bus 0) bridge rsrc 1: 0000000060000000-000000007fffffff [0x200], parentc0439cc4(PCI mem)
PCI: Allocating 0000:00:07.0: Resource 0: 0000000080000000..0000000087ffffff [21208]
PCI: Allocating 0000:00:07.0: Resource 1:00000000d8011000..00000000d80110ff[20101]
PCI: Cannot allocate resource region 1 of device 0000:00:07.0, will remap
PCI: Allocating 0000:00:07.0: Resource 2: 0000000088000000..000000008800ffff [20200]
PCI: Allocating 0000:00:07.1: Resource 0: 0000000090000000..0000000097ffffff [21208]
PCI: Allocating 0000:00:07.1: Resource 1: 0000000098000000..000000009800ffff [20200]
PCI: Allocating 0000:00:08.0: Resource 0: 0000000098010000..0000000098010fff [20200]
PCI: Allocating 0000:00:08.1: Resource 0: 0000000098011000..0000000098011fff [20200]
PCI: Allocating 0000:00:08.2: Resource 0: 0000000098012000..00000000980120ff [20200]
PCI: Allocating 0000:00:09.0: Resource 0:00000000d8011100..00000000d8011107[20101]
PCI: Cannot allocate resource region 0 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 1:00000000d8011108..00000000d801110b[20101]
PCI: Cannot allocate resource region 1 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 2:00000000d8011110..00000000d8011117[20101]
PCI: Cannot allocate resource region 2 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 3:00000000d8011118..00000000d801111b[20101]
PCI: Cannot allocate resource region 3 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 4:00000000d8011120..00000000d801112f[20101]
PCI: Cannot allocate resource region 4 of device 0000:00:09.0, will remap
PCI: Allocating 0000:00:09.0: Resource 5: 0000000098012400..00000000980127ff [20200]
PCI: Allocating 0000:00:0a.0: Resource 0:000000009c000000..000000009fffffff[20200]
PCI: Assigning unassigned resouces...
bus: 00 index 0 io port: [11000, 20fff]
bus: 00 index 1 mmio: [80000000, bfffffff]
bus: 00 index 0 io port: [d8080000,d808ffff]
bus: 00 index 1 mmio: [60000000,7fffffff]At chipset's MV6450 init, I haven't found any errors. Otherwise an PCI SATA controller and an 3Com network card running very well. I have no more ideas, where can be the possible problem. Do you have any suggestions?
Best regards
Eduard Fuchs
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Am Mittwoch 18 M=E4rz 2009 00:05:00 schrieb Benjamin Herrenschmidt:
Quoted 4 lines · Eduard Fuchs
Quoted 3 lines
Hi all,
since several days I'm trying to run an ATI 9250 (PCI) graphic card und=
er
Quoted 9 lines
Quoted 6 lines
Linux Kernel 2.6.27.19. Nevertheless without success. The kernel shows the following message:
videoboot: Booting PCI video card bus 0, function 0, device 7
biosEmu: undefined interrupt 15h called! biosEmu/bios.int42: unknown function AH=3D0x0, AL=3D0x7, BL=3D0x0The above comes from some patches you added to the kernel ? You should probably do the softboot in the firmware instead...
Yes. I'm using the videoboot-2.6x.patch (this patch contain also the xf86em= u=20
from www.scitechsoft.com). With this pach the radeon card work properly wit= h=20
2.6.12 kernel version. On the 2.6.27 kernel the "videoboot" fetch the bios= =20
from the video card and start them in the xf86emu.
Can I initialize the video card in uboot too?
Quoted 5 lines
Quoted 2 lines
radeonfb (0000:00:07.0): Cannot match card to OF node !
The above should be mostly harmless.
Quoted 8 lines
Quoted 5 lines
RADEON:
CHIP_FAMILY10 (0xa)
RADEON:MMIO_BASE0xf1058000
RADEON:MMIO_BASE_PHYS0x88000000
radeonfb (0000:00:07.0): Found 0k of SDRAM 64 bits wide videoram
RADEON: Try map FB Phys0x80000000, size 0, 16777216. 0The above sounds wrong, was the card properly initialized ? Looks like your videoboot failed...
I dont know what exactly happens when the xf86emu runs the video bios and i= =20
have no idea how can i verify that the card was properly initialized.
Best regards
Eduard Fuchs
Hi Eduard,
Quoted 15 lines
Am Mittwoch 18 März 2009 00:05:00 schrieb Benjamin Herrenschmidt:
Quoted 7 lines · Eduard Fuchs
Quoted 6 lines
Hi all,
since several days I'm trying to run an ATI 9250 (PCI) graphic card under Linux Kernel 2.6.27.19. Nevertheless without success. The kernel shows the following message:
Quoted 6 lines
Quoted 3 lines
videoboot: Booting PCI video card bus 0, function 0, device 7
biosEmu: undefined interrupt 15h called! biosEmu/bios.int42: unknown function AH=0x0, AL=0x7, BL=0x0The above comes from some patches you added to the kernel ? You should probably do the softboot in the firmware instead...
Quoted 6 lines
Yes. I'm using the videoboot-2.6x.patch (this patch contain also the xf86emu from www.scitechsoft.com). With this pach the radeon card work properly with 2.6.12 kernel version. On the 2.6.27 kernel the "videoboot" fetch the bios from the video card and start them in the xf86emu.
Can I initialize the video card in uboot too?
Yes, indeed you can. In a recent version of U-Boot, search for 'CONFIG_BIOSEMU' in include/configs/*. We tested this on a sequoia board, so include/configs/sequoia.h should be a good start for this.
Cheers
Detlev
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: [email protected]
Am Freitag 20 M=C3=A4rz 2009 11:51:11 schrieb Detlev Zundel:
Quoted 8 lines
Hi Eduard,
Quoted 6 lines
Am Mittwoch 18 M=C3=A4rz 2009 00:05:00 schrieb Benjamin Herrenschmidt:
Quoted 5 lines · Eduard Fuchs
Quoted 4 lines
Hi all,
since several days I'm trying to run an ATI 9250 (PCI) graphic card under Linux Kernel 2.6.27.19. Nevertheless without success. The kern=
el
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
shows the following message:
videoboot: Booting PCI video card bus 0, function 0, device 7
biosEmu: undefined interrupt 15h called! biosEmu/bios.int42: unknown function AH=3D0x0, AL=3D0x7, BL=3D0x0
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
The above comes from some patches you added to the kernel ? You should probably do the softboot in the firmware instead...
Yes. I'm using the videoboot-2.6x.patch (this patch contain also the xf86emu from www.scitechsoft.com). With this pach the radeon card work properly with 2.6.12 kernel version. On the 2.6.27 kernel the "videoboo=
t"
Quoted 7 lines
Quoted 3 lines
fetch the bios from the video card and start them in the xf86emu.
Can I initialize the video card in uboot too?
Yes, indeed you can. In a recent version of U-Boot, search for '
CONFIG_BIOSEMU' ininclude/configs/*. We tested this on a sequoia board, soinclude/configs/sequoia.hshould be a good start for this.
Thanks.
I tried to include BIOSEMU and RADEON_FB in my u-boot. Bios emulator seems = to=20
be properly loaded, but when u-boot attempt to read or write Radeon's=20 registers, the board freezes.
What means exactly the value of "VIDEO_IO_OFFSET" in the config file?=20
There is a u-boot's output when I init the VIDEO_IO_OFFSET with PCI's I/O b= ase=20
address:
INFO : PCI0_IO : base - 0xd8000000 size - 1M bytes INFO : PCI0_MEM0: base - 0x80000000 size - 1024M bytes INFO : PCI0_MEM1: base - 0xc0000000 size - 128M bytes INFO : PCI0_MEM2: base - 0xc8000000 size - 128M bytes INFO : PCI0_MEM3: base - 0xd0000000 size - 128M bytes =2E....
PCI Scan: Found Bus 0, Device 7, Function 0
PCI Scan: Found Bus 0, Device 7, Function 1
PCI Scan: Found Bus 0, Device 9, Function 0
PCI Scan: Found Bus 0, Device 10, Function 0
Video: ATI Radeon video card (1002, 5960) found @(0:7:0)
videoboot: Booting PCI video card bus 0, function 0, device 7 E 0000 0 F00P0F000NI00PMS0EG 0F00
and after that follows board reset.
Best regards.
Eduard Fuchs
Eduard Fuchs wrote:
<snip>
Quoted 5 lines
Quoted 4 lines
Quoted 1 line
Can I initialize the video card in uboot too?
Yes, indeed you can. In a recent version of U-Boot, search for '
CONFIG_BIOSEMU' ininclude/configs/*. We tested this on a sequoia board, soinclude/configs/sequoia.hshould be a good start for this.
Quoted 7 lines
Thanks.
I tried to include BIOSEMU and
RADEON_FBin my u-boot. Bios emulator seems to be properly loaded, but when u-boot attempt to read or write Radeon's registers, the board freezes.From the U-Boot output below it seems that the Radeon register access
works already. At least one register read access succeeded before "videoboot: Booting PCI video card bus 0, function 0, device 7" output.
Quoted 1 line
What means exactly the value of "
VIDEO_IO_OFFSET" in the config file?
It is the base address of an address range accesses to which are translated to an I/O access on PCI by the PCI bridge.
Quoted 4 lines
There is a u-boot's output when I init the
VIDEO_IO_OFFSETwith PCI's I/O base address:
Quoted 13 lines
INFO :
PCI0_IO: base -0xd8000000size - 1M bytes INFO :PCI0_MEM0: base -0x80000000size - 1024M bytes INFO :PCI0_MEM1: base -0xc0000000size - 128M bytes INFO :PCI0_MEM2: base -0xc8000000size - 128M bytes INFO :PCI0_MEM3: base -0xd0000000size - 128M bytes
.....
PCI Scan: Found Bus 0, Device 7, Function 0
PCI Scan: Found Bus 0, Device 7, Function 1
PCI Scan: Found Bus 0, Device 9, Function 0
PCI Scan: Found Bus 0, Device 10, Function 0
Video: ATI Radeon video card (1002, 5960) found @(0:7:0)
videoboot: Booting PCI video card bus 0, function 0, device 7 E 0000 0 F00P0F000NI00PMS0EG 0F00
Is the address translation for PCI I/O configured by some BAT?
Best regards,
Anatolij