From: Pete Popov <ppopov@mvista.com>
To: Wayne Gowcher <wgowcher@yahoo.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: Configuration of PCI Video card on a BIOS-less board
Date: Thu, 10 May 2001 10:11:36 -0700 [thread overview]
Message-ID: <3AFACBC8.DE85A67E@mvista.com> (raw)
In-Reply-To: 20010510055512.96321.qmail@web11902.mail.yahoo.com
Wayne Gowcher wrote:
>
> Dear All,
>
> I was wondering if anyone has any experience in
> configuring the PCI registers in a PCI Video Card on a
> MIPS board that has no BIOS like in a PC.
>
> At the moment when I have some "home grown" PCI
> probing routines based on my best interpretation of
> the PCI spec. But it's not working.
>
> I can probe the Base Address Register successfully,
> determine the cards memory requirement and that it is
> memory rather than mapped IO. But when I try to write
> the address I have allocated to the PCI card ( eg
> 0xC000 0000 ) the address will not latch in the base
> address register.
>
> The card is designed for x86 PCs and when the PC bios
> configures the card, the base address register has the
> value 0xF200 0000.
>
> Any comments from anybody with any insight into what
> is happening here / or how I might fix my probelm,
> would be greatly appreciated.
>
> Does anyone know of any code that carries out PCI
> probing similar to that found on x86 PC's ?
The boot code on our mips boards, whether some version of pmon or yamon
does that initialization. The powerpc guys have implemented pci
scanning scheme that allows the kernel to complete initialize pretty
much arbitrarily complex pci bus systems with pci-to-pci bridges etc. I
hope I'll have time to someday port that to mips. I don't think you can
wait till then :-)
Are you really trying to assign 0xC000 0000 to the card or was that just
an example address? Unless your pci to memory window is such that
there's a translation that occurs, that address is incorrect. If the
window is 1:1, the physical address 0xC000 0000 does not exist. You
need to assign the card a real physical address; if your system has 32MB
of memory, than that address would have to be between 0 and 0x2000000.
(well, you can't give it address "0" because of interrupt vectors, but
you get the point). I can point you to some examples if you have
problems.
Pete
next prev parent reply other threads:[~2001-05-10 17:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-10 5:55 Configuration of PCI Video card on a BIOS-less board Wayne Gowcher
2001-05-10 6:01 ` Keith M Wesolowski
2001-05-10 6:15 ` Geert Uytterhoeven
2001-05-10 17:11 ` Pete Popov [this message]
2001-05-10 17:20 ` Geert Uytterhoeven
2001-05-10 17:44 ` Pete Popov
2001-05-10 17:53 ` Wayne Gowcher
2001-05-10 18:12 ` Pete Popov
2001-05-10 18:43 ` Wayne Gowcher
2001-05-10 20:14 ` Keith M Wesolowski
2001-05-10 21:15 ` Pete Popov
2001-05-18 20:23 ` Netscape on linux-mipsel ?? Wayne Gowcher
2001-05-18 20:29 ` Pete Popov
2001-05-19 3:50 ` Ralf Baechle
2001-05-10 22:02 ` Configuration of PCI Video card on a BIOS-less board Jun Sun
2001-05-11 0:19 ` Wayne Gowcher
2001-05-10 18:23 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AFACBC8.DE85A67E@mvista.com \
--to=ppopov@mvista.com \
--cc=linux-mips@oss.sgi.com \
--cc=wgowcher@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.