public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: David Thomas <dthoma33@harris.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] PPC 405EX hangs waiting for PCIE to reset
Date: Fri, 28 Jan 2011 08:57:06 -0500	[thread overview]
Message-ID: <4D42CB32.9030202@harris.com> (raw)

We have a board with an AMCC PPC 405EX connected to two fpga's with PCIE 
interfaces.

On some boards, on power up, the u-boot code hangs in the while loop in 
the following code waiting for PCIE1 to come out of reset. PCIE0  comes 
out of reset successfully.

The PHYSTA for PCIE1 always reads back with the value 0x30000000, 
indicating the the interface is in the P2 state and that the PLL has not 
locked.

If a timeout is added and U-boot is allowed to proceed, a machine check 
is eventually taken and the processor reboots. During the reboot, u-boot 
runs through the same code but this time both PCIE interfaces 
successfully come out of reset and the board comes up normally.

Any suggestions about what might be happening here?

Thanks

David Thomas.



u-boot/arch/powerpc/cpu/ppc4xx/4xx_pcie.c, lines 840-848:

         SDR_WRITE(SDRN_PESDR_RCSSET(port), 0x01101000);

     /* poll for phy !reset */
     while (!(SDR_READ(SDRN_PESDR_PHYSTA(port)) & 0x00001000))
         ;

     /* deassert the PE0_gpl_utl_reset */
     SDR_WRITE(SDRN_PESDR_RCSSET(port), 0x00101000);

             reply	other threads:[~2011-01-28 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 13:57 David Thomas [this message]
2011-02-01  7:32 ` [U-Boot] PPC 405EX hangs waiting for PCIE to reset Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D42CB32.9030202@harris.com \
    --to=dthoma33@harris.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox