All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefani Seibold <stefani@seibold.net>
To: Scott Wood <scottwood@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: BUG: no PCI/PCIe devices found in 85xx architecture
Date: Wed, 26 Jun 2013 07:21:32 +0200	[thread overview]
Message-ID: <1372224092.3374.5.camel@wall-e> (raw)
In-Reply-To: <1372203995.8183.26@snotra>

Am Dienstag, den 25.06.2013, 18:46 -0500 schrieb Scott Wood:
> On 06/25/2013 01:40:14 PM, Stefani Seibold wrote:
> > Hi,
> > 
> > there is a bug in kernel 3.9 which the new fsl_pci platform driver.  
> > The
> > pcibios_init in pci_32.c will be called before the platform driver  
> > probe
> > will be invoked.
> > 
> > The call order for a p2020 board with linux 3.9 is currently:
> > 
> > fsl_pci_init
> > pcibios_init
> > fsl_pci_probe
> > fsl_pci_probe
> > fsl_pci_probe
> > 
> > Therefore the PCI/PCIe bridge will be added after the PCI/PCIe busses
> > was scanned for devices. So no PCI/PCIe devices are available.
> > 
> > Everything works fine by reverting the fsl_pci.[ch] to the version in
> > linux 3.4, because the PCI/PCIe bridges will be added in
> > the ..._setup_arch() function, before the pcibios_init function is
> > called.
> > 
> > Any solution for this issue?
> 
> I can't reproduce this on p3041 -- pcibios_init gets called after  
> fsl_pci_probe, and its PCIe e1000 gets detected and used.
> 
> fsl_pci_probe should be called when of_platform_bus_probe is called,  
> which is in a machine_arch_initcall.  pcibios_init is a  
> subsys_initcall, which should happen later.
> 
> Which p2020 board are you using?  Could you check when it is calling  
> of_platform_bus_probe?
> 
> -Scott

Great, you are my hero. This is the solution.

In my old board support package for the kernel 3.4 there was a
machine_device_initcall(). I did not saw the tiny difference against
machine_arch_initcall() used by the other 85xx boards as i ported it to
3.9.

Thanks

- Stefani

      reply	other threads:[~2013-06-26  5:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-25 18:40 BUG: no PCI/PCIe devices found in 85xx architecture Stefani Seibold
2013-06-25 23:46 ` Scott Wood
2013-06-26  5:21   ` Stefani Seibold [this message]

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=1372224092.3374.5.camel@wall-e \
    --to=stefani@seibold.net \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.