Linux MIPS Architecture development
 help / color / mirror / Atom feed
* pci_iomap issues?
@ 2005-12-06  0:23 Scott Ashcroft
  2005-12-06  1:47 ` Jim Gifford
  0 siblings, 1 reply; 6+ messages in thread
From: Scott Ashcroft @ 2005-12-06  0:23 UTC (permalink / raw)
  To: linux-mips

What will it take to get a pci_iomap implementation
into the kernel.
Looking back in the list archives I've seen comments
that the patches posted to the list don't support
multiple PCI busses.
I can't see any difference between the patches and the
support in other archs.
Are the other archs broken or am I missing something?

Cheers,
Scott

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: pci_iomap issues?
@ 2005-12-07 21:49 Marc Karasek
  2005-12-07 21:49 ` Marc Karasek
  0 siblings, 1 reply; 6+ messages in thread
From: Marc Karasek @ 2005-12-07 21:49 UTC (permalink / raw)
  To: Scott Ashcroft, Mark Mason; +Cc: linux-mips

By multiple buses do you mean physical buses off of the CPU/companion chip or one PCI bus then a bridge chip then next PCI Bus, and so on..

If it is the latter, then the code should be able to automatically take care of it.  The boot code should have already scanned the bus and annotated all of the buses.  The basic procedure is to start at bus 0, find the first bridge, look past this bridge, find next one, until you find the last bridge.  At this point you backtrack and setup each bridge (primary, secondary #'s, etc.).  Thne you go out and do config cycles to find out what devices are available and map them into the address space.  When Linux comes up it should do something similar, minus the setup to find out how many buses it has, and then how many devices it has.  The difference would be if linux finds a device it just reads the BARs to find out where it is mapped.  

If it is the former, then this should be a chip specific operation where Linux would scan again but needs to know to scan on multiple interfaces/PCI buses. The boot code should also be aware of this situation and map things appropriately.    

Any content within this email is provided "AS IS" for informational purposes only. No contract will be formed between the parties by virtue of this email.
<**************************>
Marc Karasek
System Lead Technical Engineer
iVivity Inc.
PH: 678-990-1550 x238
Fax: 678-990-1551
<**************************>



-----Original Message-----
From: linux-mips-bounce@linux-mips.org
[mailto:linux-mips-bounce@linux-mips.org]On Behalf Of Scott Ashcroft
Sent: Wednesday, December 07, 2005 12:46 PM
To: Mark Mason
Cc: Scott Ashcroft; linux-mips@linux-mips.org
Subject: Re: pci_iomap issues?



--- Mark Mason <mason@broadcom.com> wrote:
> 
> Any system based on BCM1480s could have multiple pci
> busses (one PCI-X
> directly, and additional busses through HT/PCI-X
> bridges).  For the
> BCM91480B board, we had to turn on PCI_DOMAINS to
> get this to work
> correctly.

I understand that there are machines with multiple PCI
busses out there but comparing the ppc64 code with the
proposed mips patches I don't see much difference.
Are the ppc64 people just breaking multiple PCI bus
machines, did something happen in the generic PCI code
which fixed the issue or is there just a difference I
can't see?

Cheers,
Scott

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

end of thread, other threads:[~2005-12-07 21:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06  0:23 pci_iomap issues? Scott Ashcroft
2005-12-06  1:47 ` Jim Gifford
2005-12-06 23:24   ` Mark Mason
2005-12-07 17:45     ` Scott Ashcroft
  -- strict thread matches above, loose matches on Subject: below --
2005-12-07 21:49 Marc Karasek
2005-12-07 21:49 ` Marc Karasek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox