Re: Linux running on a PCI Option device?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux