All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with radeonfb on PowerPC 7448&MV64560
@ 2009-03-17 15:30 Eduard Fuchs
  2009-03-17 23:05 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 6+ messages in thread
From: Eduard Fuchs @ 2009-03-17 15:30 UTC (permalink / raw)
  To: Linuxppc-dev

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with radeonfb on PowerPC 7448&MV64560
  2009-03-17 15:30 Problem with radeonfb on PowerPC 7448&MV64560 Eduard Fuchs
@ 2009-03-17 23:05 ` Benjamin Herrenschmidt
  2009-03-19  9:51   ` Eduard Fuchs
       [not found]   ` <200903191051.37875.edfuchs__31387.3780928136$1237456433$gmane$org@uni-kassel.de>
  0 siblings, 2 replies; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2009-03-17 23:05 UTC (permalink / raw)
  To: Eduard Fuchs; +Cc: Linuxppc-dev

On Tue, 2009-03-17 at 16:30 +0100, Eduard Fuchs wrote:
> 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...

> radeonfb (0000:00:07.0): Cannot match card to OF node !      

The above should be mostly harmless.

> 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

The above sounds wrong, was the card properly initialized ? Looks like
your videoboot failed...

> 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
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with radeonfb on PowerPC 7448&MV64560
  2009-03-17 23:05 ` Benjamin Herrenschmidt
@ 2009-03-19  9:51   ` Eduard Fuchs
       [not found]   ` <200903191051.37875.edfuchs__31387.3780928136$1237456433$gmane$org@uni-kassel.de>
  1 sibling, 0 replies; 6+ messages in thread
From: Eduard Fuchs @ 2009-03-19  9:51 UTC (permalink / raw)
  To: linuxppc-dev

Am Mittwoch 18 M=E4rz 2009 00:05:00 schrieb Benjamin Herrenschmidt:
> On Tue, 2009-03-17 at 16:30 +0100, Eduard Fuchs wrote:
> > Hi all,
> >
> > since several days I'm trying to run an ATI 9250 (PCI) graphic card und=
er
> > 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=3D0x0
>
> 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 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?

>
> > radeonfb (0000:00:07.0): Cannot match card to OF node !
>
> The above should be mostly harmless.
>
> > 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
>
> The 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with radeonfb on PowerPC 7448&MV64560
       [not found]   ` <200903191051.37875.edfuchs__31387.3780928136$1237456433$gmane$org@uni-kassel.de>
@ 2009-03-20 10:51     ` Detlev Zundel
  2009-03-20 15:35       ` Eduard Fuchs
  0 siblings, 1 reply; 6+ messages in thread
From: Detlev Zundel @ 2009-03-20 10:51 UTC (permalink / raw)
  To: linuxppc-dev

Hi Eduard,

> Am Mittwoch 18 März 2009 00:05:00 schrieb Benjamin Herrenschmidt:
>> On Tue, 2009-03-17 at 16:30 +0100, Eduard Fuchs wrote:
>> > 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...
>
> 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: dzu@denx.de

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with radeonfb on PowerPC 7448&MV64560
  2009-03-20 10:51     ` Detlev Zundel
@ 2009-03-20 15:35       ` Eduard Fuchs
  2009-03-21  0:00         ` Anatolij Gustschin
  0 siblings, 1 reply; 6+ messages in thread
From: Eduard Fuchs @ 2009-03-20 15:35 UTC (permalink / raw)
  To: linuxppc-dev

Am Freitag 20 M=C3=A4rz 2009 11:51:11 schrieb Detlev Zundel:
> Hi Eduard,
>
> > Am Mittwoch 18 M=C3=A4rz 2009 00:05:00 schrieb Benjamin Herrenschmidt:
> >> On Tue, 2009-03-17 at 16:30 +0100, Eduard Fuchs wrote:
> >> > 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
> >> > 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
> >>
> >> 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"
> > 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.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Problem with radeonfb on PowerPC 7448&MV64560
  2009-03-20 15:35       ` Eduard Fuchs
@ 2009-03-21  0:00         ` Anatolij Gustschin
  0 siblings, 0 replies; 6+ messages in thread
From: Anatolij Gustschin @ 2009-03-21  0:00 UTC (permalink / raw)
  To: Eduard Fuchs; +Cc: linuxppc-dev

Eduard Fuchs wrote:

<snip>
>>> 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.
> 
> Thanks.
> 
> I tried to include BIOSEMU and RADEON_FB in 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.

> 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.

> There is a u-boot's output when I init the VIDEO_IO_OFFSET with PCI's I/O base 
> 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
> .....
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-21  0:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17 15:30 Problem with radeonfb on PowerPC 7448&MV64560 Eduard Fuchs
2009-03-17 23:05 ` Benjamin Herrenschmidt
2009-03-19  9:51   ` Eduard Fuchs
     [not found]   ` <200903191051.37875.edfuchs__31387.3780928136$1237456433$gmane$org@uni-kassel.de>
2009-03-20 10:51     ` Detlev Zundel
2009-03-20 15:35       ` Eduard Fuchs
2009-03-21  0:00         ` Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.