* plat-orion needs to enable PCIe ports for mv78xx0
@ 2011-08-17 21:34 Joey Oravec
2011-08-22 14:21 ` Lennert Buytenhek
2011-08-22 23:45 ` Lennert Buytenhek
0 siblings, 2 replies; 3+ messages in thread
From: Joey Oravec @ 2011-08-17 21:34 UTC (permalink / raw)
To: linux-arm-kernel
Orion maintainers,
On the Discovery series chips (mv78xx0), the CPU control and status
register at offset 0x20104 contains bits to enable / disable PCI express
port0 and port1. Both ports default to disabled.
It looks the PCIe driver and existing board setup files do not set this
bit; any boards that use PCIe and are working today might assume that
the bootloader has already set the bit to enable these ports. I couldn't
find anything in Marvell's documentation about timing, but the bits need
to be set a long time before you touch any of the PCIe port registers.
-joey
^ permalink raw reply [flat|nested] 3+ messages in thread
* plat-orion needs to enable PCIe ports for mv78xx0
2011-08-17 21:34 plat-orion needs to enable PCIe ports for mv78xx0 Joey Oravec
@ 2011-08-22 14:21 ` Lennert Buytenhek
2011-08-22 23:45 ` Lennert Buytenhek
1 sibling, 0 replies; 3+ messages in thread
From: Lennert Buytenhek @ 2011-08-22 14:21 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Aug 17, 2011 at 05:34:13PM -0400, Joey Oravec wrote:
> Orion maintainers,
Hello!
> On the Discovery series chips (mv78xx0), the CPU control and status
> register at offset 0x20104 contains bits to enable / disable PCI
> express port0 and port1. Both ports default to disabled.
>
> It looks the PCIe driver and existing board setup files do not set
> this bit; any boards that use PCIe and are working today might
> assume that the bootloader has already set the bit to enable these
> ports.
Yep.
> I couldn't find anything in Marvell's documentation about timing,
> but the bits need to be set a long time before you touch any of the
> PCIe port registers.
I'll figure out.
thanks,
Lennert
^ permalink raw reply [flat|nested] 3+ messages in thread
* plat-orion needs to enable PCIe ports for mv78xx0
2011-08-17 21:34 plat-orion needs to enable PCIe ports for mv78xx0 Joey Oravec
2011-08-22 14:21 ` Lennert Buytenhek
@ 2011-08-22 23:45 ` Lennert Buytenhek
1 sibling, 0 replies; 3+ messages in thread
From: Lennert Buytenhek @ 2011-08-22 23:45 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Aug 17, 2011 at 05:34:13PM -0400, Joey Oravec wrote:
> On the Discovery series chips (mv78xx0), the CPU control and status
> register at offset 0x20104 contains bits to enable / disable PCI
> express port0 and port1. Both ports default to disabled.
>
> It looks the PCIe driver and existing board setup files do not set
> this bit; any boards that use PCIe and are working today might
> assume that the bootloader has already set the bit to enable these
> ports. I couldn't find anything in Marvell's documentation about
> timing, but the bits need to be set a long time before you touch any
> of the PCIe port registers.
(The delay referred to here is the time it takes for the PCIe link
to establish.)
I think the kernel should try to enable the PCIe ports if it finds them
to be disabled, and wait for some time to see if the link(s) come up.
(And if they don't, or if the ports were up when booting but link(s)
were down, disable the port(s) again.)
I also think the boot loader should enable the PCIe ports as soon as
possible if devices are known to be connected, to save on booting time.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-22 23:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17 21:34 plat-orion needs to enable PCIe ports for mv78xx0 Joey Oravec
2011-08-22 14:21 ` Lennert Buytenhek
2011-08-22 23:45 ` Lennert Buytenhek
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).