From: Jon Ringle <jringle@vertical.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: "Greg Ungerer" <gerg@snapgear.com>, linux-kernel@vger.kernel.org
Subject: Re: Linux running on a PCI Option device?
Date: Thu, 02 Mar 2006 17:07:01 -0500 [thread overview]
Message-ID: <200603021707.01190.jringle@vertical.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0602281556240.5128@chaos.analogic.com>
On Tuesday 28 February 2006 04:13 pm, linux-os (Dick Johnson) wrote:
> On Tue, 28 Feb 2006, Jon Ringle wrote:
> > When I have the IXDP465 in PCI Option mode, Linux still writes to pci
> > configuration space which confuses the heck out of the PCI Host (Windows
> > 2003). What do I need to do in order to have Linux work as a PCI option
> > but still not mess with the pci configuration, and leave that task to the
> > PCI Host?
> >
> > Jon
>
> But anything on the PCI bus will get written, at least to find out
> the length of the address space. Please read about the PCI System
> Architecture. There are several writes that are mandatory. If
> somebody is attempting to configure the PCI devices, the following
> will occur.
Thanks for the book reference. I am reading it.
> (1) The BIOS will find some available address-space and put it
> into any base-address register that has memory-space enabled
> in the command register.
>
> (2) The BIOS will find some available I/O space and put it into
> a base-address register, too.
>
> This all occurs long before any OS is booted. These writes
> will occur.
That's all well and fine. However, I think I need to explain a bit better the
hardware topology here.
+--------------------+
| POST/BIOS |
| Windows 2003 |
| Pentium |
| PCI Host |
| PCI Arbiter |
+--------------------+
|
<-------- PCI bus ---------------------------------->
| |
+---------+ +---------------------------+
| Various | | IXDP465 (PCI option mode) |
| other | | Redboot |
| PCI | | Linux 2.6.16-rc5 |
| Devices | +---------------------------+
+---------+
When power is applied to the system, several things are happening
simultaneously, as I understand it:
1) The POST/BIOS code executes on the Pentium side that should do the actions
you describe above.
2) The PCI devices are configuring themselves.
3) The IXDP465 is executing Redboot bootloader, which hands off control to
Linux.
As it turns out, Linux completes it's bootup before Windows bootup even
begins, and it seems that Linux changes the configuration of the various
other PCI devices that happen to be on the system as well. I need to get
Linux to leave the configuration of other PCI devices it finds alone. It
should only mess with it's own configuration. Why should Linux need to change
the configuration of other PCI devices when it is fulfilling the role of a
PCI device itself?
Thanks,
Jon
next prev parent reply other threads:[~2006-03-02 22:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-09 6:43 Linux running on a PCI Option device? Greg Ungerer
2006-02-09 16:31 ` Jon Ringle
2006-02-14 5:03 ` Greg Ungerer
2006-02-28 20:35 ` Jon Ringle
2006-02-28 21:13 ` linux-os (Dick Johnson)
2006-03-01 11:47 ` Krzysztof Halasa
2006-03-02 22:07 ` Jon Ringle [this message]
2006-03-03 9:13 ` Adrian Cox
2006-03-03 14:09 ` Jon Ringle
2006-03-03 14:40 ` Adrian Cox
2006-03-03 18:31 ` Jon Ringle
2006-03-04 16:32 ` Adrian Cox
2006-03-06 4:03 ` Greg Ungerer
-- strict thread matches above, loose matches on Subject: below --
2006-02-09 6:06 Jon Ringle
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=200603021707.01190.jringle@vertical.com \
--to=jringle@vertical.com \
--cc=gerg@snapgear.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox