* PCI configuration with multiple PCI controllers
@ 2008-01-29 14:20 Laurent Lagrange
2008-01-30 14:24 ` Kumar Gala
0 siblings, 1 reply; 5+ messages in thread
From: Laurent Lagrange @ 2008-01-29 14:20 UTC (permalink / raw)
To: linuxppc-dev
Hello,
I have a MPC8641 based board. I try to use the two PCIe controllers. My
firmware configures (physically) the PCI buses as follow:
------------------+
MPC8641 PCIe 1 | bus 1 +--------------+
| --------------> | PCI device 0 |
BUS 0 | +--------------+
- - - - - - - - - +
MPC8641 PCIe 2 | bus 3 +--------------+
| --------------> | PCI device 1 |
BUS 2 | +--------------+
------------------+
I launch the Linux image (2.6.23.9). During the Kernel PCI configuration,
buses behind the 2nd MPC8641 PCIe are skipped because its primary bus don't
start at bus number 0. The kernel reconfigure the primary bus number of the
MPC8641 PCIe 2 controller from 2 to 0.
I can patch the kernel to work with my firmware but I don't know if my PCI
configuration is the good one.
What is the common way to configure the PCI for Linux when a new controller
is found: start the bus number to 0 or to the last bus number + 1?
Regards
^ permalink raw reply [flat|nested] 5+ messages in thread
* PCI configuration with multiple PCI controllers
@ 2008-01-30 8:37 Laurent Lagrange
0 siblings, 0 replies; 5+ messages in thread
From: Laurent Lagrange @ 2008-01-30 8:37 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
I have a MPC8641 based board. I try to use the two PCIe controllers. My
firmware configures (physically) the PCI buses as follow:
------------------+
MPC8641 PCIe 1 | bus 1 +--------------+
| --------------> | PCI device 0 |
BUS 0 | +--------------+
- - - - - - - - - +
MPC8641 PCIe 2 | bus 3 +--------------+
| --------------> | PCI device 1 |
BUS 2 | +--------------+
------------------+
I launch the Linux image (2.6.23.9). During the Kernel PCI configuration,
buses behind the 2nd MPC8641 PCIe are skipped because its primary bus don't
start at bus number 0. The kernel reconfigure the primary bus number of the
MPC8641 PCIe 2 controller from 2 to 0.
I can patch the kernel to work with my firmware but I don't know if my PCI
configuration is the good one.
What is the common way to configure the PCI for Linux when a new controller
is found: start the bus number to 0 or to the last bus number + 1?
Regards
Laurent
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PCI configuration with multiple PCI controllers
2008-01-29 14:20 Laurent Lagrange
@ 2008-01-30 14:24 ` Kumar Gala
0 siblings, 0 replies; 5+ messages in thread
From: Kumar Gala @ 2008-01-30 14:24 UTC (permalink / raw)
To: Laurent Lagrange; +Cc: linuxppc-dev
On Jan 29, 2008, at 8:20 AM, Laurent Lagrange wrote:
> Hello,
>
> I have a MPC8641 based board. I try to use the two PCIe controllers.
> My
> firmware configures (physically) the PCI buses as follow:
>
> ------------------+
> MPC8641 PCIe 1 | bus 1 +--------------+
> | --------------> | PCI device 0 |
> BUS 0 | +--------------+
> - - - - - - - - - +
> MPC8641 PCIe 2 | bus 3 +--------------+
> | --------------> | PCI device 1 |
> BUS 2 | +--------------+
> ------------------+
>
> I launch the Linux image (2.6.23.9). During the Kernel PCI
> configuration,
> buses behind the 2nd MPC8641 PCIe are skipped because its primary
> bus don't
> start at bus number 0. The kernel reconfigure the primary bus number
> of the
> MPC8641 PCIe 2 controller from 2 to 0.
>
> I can patch the kernel to work with my firmware but I don't know if
> my PCI
> configuration is the good one.
>
> What is the common way to configure the PCI for Linux when a new
> controller
> is found: start the bus number to 0 or to the last bus number + 1?
Linux now has the concept of PCI domains so each controller is a new
domain and thus the first bus should be 0 in each domain. (at least
that's the "normal" way we handle things).
- k
^ permalink raw reply [flat|nested] 5+ messages in thread
* PCI configuration with multiple PCI controllers
@ 2008-02-01 14:33 Laurent Lagrange
2008-02-01 14:43 ` Sergei Shtylyov
0 siblings, 1 reply; 5+ messages in thread
From: Laurent Lagrange @ 2008-02-01 14:33 UTC (permalink / raw)
To: linuxppc-dev
Hello,
I have a MPC8641 based board. I try to use the two PCIe controllers. My
firmware configures (physically) the PCI buses as follow:
------------------+
MPC8641 PCIe 1 | bus 1 +--------------+
| --------------> | PCI device 0 |
BUS 0 | +--------------+
- - - - - - - - - +
MPC8641 PCIe 2 | bus 3 +--------------+
| --------------> | PCI device 1 |
BUS 2 | +--------------+
------------------+
I launch the Linux image (2.6.23.9). During the Kernel PCI configuration,
buses behind the 2nd MPC8641 PCIe are skipped because its primary bus don't
start at bus number 0. The kernel reconfigure the primary bus number of the
MPC8641 PCIe 2 controller from 2 to 0.
I can patch the kernel to work with my firmware but I don't know if my PCI
configuration is the good one.
What is the common way to configure the PCI for Linux when a new controller
is found: start the bus number to 0 or to the last bus number + 1?
Regards
Laurent
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PCI configuration with multiple PCI controllers
2008-02-01 14:33 Laurent Lagrange
@ 2008-02-01 14:43 ` Sergei Shtylyov
0 siblings, 0 replies; 5+ messages in thread
From: Sergei Shtylyov @ 2008-02-01 14:43 UTC (permalink / raw)
To: Laurent Lagrange; +Cc: linuxppc-dev
Hello.
Laurent Lagrange wrote:
> I have a MPC8641 based board. I try to use the two PCIe controllers. My
> firmware configures (physically) the PCI buses as follow:
> ------------------+
> MPC8641 PCIe 1 | bus 1 +--------------+
> | --------------> | PCI device 0 |
> BUS 0 | +--------------+
> - - - - - - - - - +
> MPC8641 PCIe 2 | bus 3 +--------------+
> | --------------> | PCI device 1 |
> BUS 2 | +--------------+
> ------------------+
> I launch the Linux image (2.6.23.9). During the Kernel PCI configuration,
> buses behind the 2nd MPC8641 PCIe are skipped because its primary bus don't
> start at bus number 0. The kernel reconfigure the primary bus number of the
> MPC8641 PCIe 2 controller from 2 to 0.
Hm...
> I can patch the kernel to work with my firmware but I don't know if my PCI
> configuration is the good one.
> What is the common way to configure the PCI for Linux when a new controller
> is found: start the bus number to 0 or to the last bus number + 1?
The latter. Otherwise it just won't work.
WBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-01 15:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 8:37 PCI configuration with multiple PCI controllers Laurent Lagrange
-- strict thread matches above, loose matches on Subject: below --
2008-02-01 14:33 Laurent Lagrange
2008-02-01 14:43 ` Sergei Shtylyov
2008-01-29 14:20 Laurent Lagrange
2008-01-30 14:24 ` Kumar Gala
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).