* [U-Boot] Problem with PCI Express connecting 2 MPC8544
@ 2011-07-19 16:09 sardamaxima
2011-07-25 22:49 ` Swarthout Edward L-SWARTHOU
0 siblings, 1 reply; 3+ messages in thread
From: sardamaxima @ 2011-07-19 16:09 UTC (permalink / raw)
To: u-boot
I am trying to activate a PCIe link between two MPC8544 processor's on a
custom board.
One processor is configured as Root Complex(cfg_host_agt[0:2] = '111') and
the other processor as endpoint (cfg_host_agt[0:2] = '101').
Only PCIe1 is active in both processors (cfg_IO_ports[0:2] = '010')
In u-boot I set the following flags in both processors:
#define CONFIG_PCI
#undef CONFIG_PCI1
#define CONFIG_PCIE1
#undef CONFIG_PCIE2
#undef CONFIG_PCIE3
#define CONFIG_FSL_PCI_INIT
#define CONFIG_FSL_PCIE_RESET
In the first processor (configured as RC) I get the following output(u-boot
1.3.0-rc3):
"
pci_init_board: devdisr=7000008, io_sel=2, host_agent=7
PCIE1 connected to Slot2 as Root Complex (base address e000a000)
...PCIE LTSSM=0x16, Negotiated link width=1
Scanning PCI bus 01
PCIE1 on bus 00 - 01
...
"
the link is well negotiated but if i do "pci" in u-boot console it only
shows one device:
"
=> pci
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1957 0x0033 Processor 0x20
"
In the second processor (configured as EP) I get the following output:
"
...
pci_init_board: devdisr=7000008, io_sel=2, host_agent=5
PCIE1 connected to Slot2 as End Point (base address e000a000)
Scanning PCI bus 00
PCI Scan: Found Bus 0, Device 1, Function 0
00 01 1957 0033 0b20 00
...
"
Here i am using an old version of u-boot (1.3.0-rc3). It seems more
straightforward to work. I've considered updating to the latest u-boot but
since we had serious problems with DDR configuration and this has changed
considerably since the version I am using I am a little reluctant into an
update.
Someone give me a clue?
thanks a lot.
Daniel
--
View this message in context: http://old.nabble.com/Problem-with-PCI-Express-connecting-2-MPC8544-tp32092567p32092567.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] Problem with PCI Express connecting 2 MPC8544
2011-07-19 16:09 [U-Boot] Problem with PCI Express connecting 2 MPC8544 sardamaxima
@ 2011-07-25 22:49 ` Swarthout Edward L-SWARTHOU
2011-07-26 10:01 ` HUGO MARTINS
0 siblings, 1 reply; 3+ messages in thread
From: Swarthout Edward L-SWARTHOU @ 2011-07-25 22:49 UTC (permalink / raw)
To: u-boot
From: sardamaxima
>
> In the first processor (configured as RC) I get the following
...
> ...PCIE LTSSM=0x16, Negotiated link width=1
Good.
> Scanning PCI bus 01
> PCIE1 on bus 00 - 01
...
> In the second processor (configured as EP) I get the
> following output:
> "
> ...
> pci_init_board: devdisr=7000008, io_sel=2, host_agent=5
>
> PCIE1 connected to Slot2 as End Point (base address e000a000)
> Scanning PCI bus 00
> PCI Scan: Found Bus 0, Device 1, Function 0
> 00 01 1957 0033 0b20 00
> ...
> "
> Here i am using an old version of u-boot (1.3.0-rc3).
Since this is an old u-boot, it might not be setting CFG_READY.
If this is not set, the end point won't be seen.
Check PEX_CFG_READY with: "pci d 0.0 4b0 1"
-Ed
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Problem with PCI Express connecting 2 MPC8544
2011-07-25 22:49 ` Swarthout Edward L-SWARTHOU
@ 2011-07-26 10:01 ` HUGO MARTINS
0 siblings, 0 replies; 3+ messages in thread
From: HUGO MARTINS @ 2011-07-26 10:01 UTC (permalink / raw)
To: u-boot
> From: SWARTHOU at freescale.com
> To: fhpworks at hotmail.com
> CC: u-boot at lists.denx.de
> Subject: RE: [U-Boot] Problem with PCI Express connecting 2 MPC8544
> Date: Mon, 25 Jul 2011 22:49:18 +0000
>
> From: sardamaxima
> >
> > In the first processor (configured as RC) I get the following
> ...
> > ...PCIE LTSSM=0x16, Negotiated link width=1
>
> Good.
>
> > Scanning PCI bus 01
> > PCIE1 on bus 00 - 01
>
> ...
>
> > In the second processor (configured as EP) I get the
> > following output:
> > "
> > ...
> > pci_init_board: devdisr=7000008, io_sel=2, host_agent=5
> >
> > PCIE1 connected to Slot2 as End Point (base address e000a000)
> > Scanning PCI bus 00
> > PCI Scan: Found Bus 0, Device 1, Function 0
> > 00 01 1957 0033 0b20 00
> > ...
> > "
> > Here i am using an old version of u-boot (1.3.0-rc3).
>
> Since this is an old u-boot, it might not be setting CFG_READY.
> If this is not set, the end point won't be seen.
>
> Check PEX_CFG_READY with: "pci d 0.0 4b0 1"
>
> -Ed
Hi Ed
Thanks a lot for the advice. That register had the "ready bit" =0.
It is working now and i see the device in /proc/bus/pci/...(@kernel)
Thanks for the help
Hugo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-26 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 16:09 [U-Boot] Problem with PCI Express connecting 2 MPC8544 sardamaxima
2011-07-25 22:49 ` Swarthout Edward L-SWARTHOU
2011-07-26 10:01 ` HUGO MARTINS
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox