linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ELDK 3.1.1: PCI Video Cards on Lite5200B
@ 2007-01-10  0:09 Michael Carey
  2007-01-10  0:55 ` Wolfgang Denk
  2007-01-11  7:49 ` Roman Fietze
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Carey @ 2007-01-10  0:09 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Ed_ Jubenville, Dan Slater, Craig Javid

Has anyone gotten a pci video card to work on a Lite5200B board?

I have tried several types of ATI PCI cards in our board (based on
Lite5200B reference design).

The simplest card I have tried is a Ati Rage XL.  Its Vendor ID and
Device ID are 1002 & 474D.  I was able to find references to it in
devlist.h and pci_ids.h but I could not find anything in atyfb_base.c. 
I created an entry in atychips[] which was based on a hopefully similar
device ID = 4752.

When I booted linux with this configuration, I got the following debug
sequence:
The MJC messages are my debug output messages.
**************************
MJC: chr_dev_init in mem.c:770
MJC: registering devfs chrdev. chr_dev_init in mem.c:771
MJC: registering memory devfs. chr_dev_init in mem.c:774
MJC: memory_devfs_register in mem.c:756
MJC: rand initializing. chr_dev_init in mem.c:776
MJC: initing fbmem. chr_dev_init in mem.c:783
MJC: fbmem_init in drivers/video/fbmem.c:936
MJC: initing pref funcs. fbmem_init in drivers/video/fbmem.c:954
MJC: initing fb drivers. fbmem_init in drivers/video/fbmem.c:958
mjc: atyfb_init in drivers/video/aty/atyfb_base.c:2475
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
             pdev->device=474d, i=21, pci_id=474d
mjc: kmalloc workd; info points in memory: atyfb_init in
drivers/video/aty/atyfb_base.c:2522
rp->start=0:0
mjc:  apparently not a IORESOURCE_IO: atyfb_init in
drivers/video/aty/atyfb_base.c:2543
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
mjc: atyfb_init in drivers/video/aty/atyfb_base.c:3066
mjc: done: atyfb_init in drivers/video/aty/atyfb_base.c:3123
mjc: aty128fb_init in drivers/video/aty128fb.c:2013
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
mjc: aty128_pci_register in drivers/video/aty128fb.c:2046
mjc: pci_enable_device in drivers/pci/pci.c:416
mjc: pci_enable_device_bars in drivers/pci/pci.c:398
mjc: pci_set_power_state in drivers/pci/pci.c:274
mjc: pci_find_capability in drivers/pci/pci.c:192
MJC: pcibios_enable_device in arch/ppc/kernel/pci.c:1549
aty128fb: cannot reserve frame buffer memory
Trying to free nonexistent resource <00000000-ffffffff>
mjc: pci_find_device in drivers/pci/pci.c:129
mjc: pci_find_subsys in drivers/pci/pci.c:100
*************************
I realize that I was just guessing by adding an entry into atychips[],
and I am not tied to that video card.  I have tried an ATI  7500 card as
it seems to be supported although EXPERIMENTAL ly, but u-boot doesnt
seem to recognize its configuration space or at least report a card
present. 

Has anyone had success in trying to get 2D graphics or even text to
display from a pci video card on a Lite5200B board?

Thanks in advance for any help or information you could provide.

Michael Carey

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

* Re: ELDK 3.1.1: PCI Video Cards on Lite5200B
  2007-01-10  0:09 ELDK 3.1.1: PCI Video Cards on Lite5200B Michael Carey
@ 2007-01-10  0:55 ` Wolfgang Denk
  2007-01-11  7:49 ` Roman Fietze
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2007-01-10  0:55 UTC (permalink / raw)
  To: Michael Carey; +Cc: Ed_ Jubenville, Dan Slater, Craig Javid, linuxppc-embedded

In message <45A3BE1F0200007100004438@webmail.nearfield.com> you wrote:
> Has anyone gotten a pci video card to work on a Lite5200B board?

Yes. The Coral-P has been working fine for years...

> Has anyone had success in trying to get 2D graphics or even text to
> display from a pci video card on a Lite5200B board?

Yes.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Our missions are peaceful -- not for conquest.  When we do battle, it
is only because we have no choice.
	-- Kirk, "The Squire of Gothos", stardate 2124.5

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

* Re: ELDK 3.1.1: PCI Video Cards on Lite5200B
  2007-01-10  0:09 ELDK 3.1.1: PCI Video Cards on Lite5200B Michael Carey
  2007-01-10  0:55 ` Wolfgang Denk
@ 2007-01-11  7:49 ` Roman Fietze
  1 sibling, 0 replies; 3+ messages in thread
From: Roman Fietze @ 2007-01-11  7:49 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

Hallo Michael,

On Wednesday 10 January 2007 01:09, Michael Carey wrote:

> Has anyone gotten a pci video card to work on a Lite5200B board?

Yes, but only the Coral-P, and X11 only correctly using a modified X
server (xfree86 and xorg).

The problem is the endianess. The Coral-P does not contain a byte
swapper for the video memory, so it cannot be easily be used with a
big endian CPU like many other grafik chips. Even the successor of the
Coral-P has such a byte swapper.

Our modifications to support Z-images are done in the non-accelerated
driver in the shadow frame buffer extension.

The Coral-P accelerated driver wasn't very stable when we tested it a
while ago, I assume this very much depends on the functions you use.


Roman

-- 
Roman Fietze Telemotive AG Büro Mühlhausen


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-01-11  7:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-10  0:09 ELDK 3.1.1: PCI Video Cards on Lite5200B Michael Carey
2007-01-10  0:55 ` Wolfgang Denk
2007-01-11  7:49 ` Roman Fietze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).