Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2015 21:13:02 -0500
From:      Justin Hibbits <chmeeedalf@gmail.com>
To:        John Clark <jeclark2006@aim.com>
Cc:        "freebsd-ppc@FreeBSD.org" <freebsd-ppc@FreeBSD.org>
Subject:   Re: Freescale P1020 PCIE and device enumeration problem.
Message-ID:  <89BA95FA-DECE-4726-8FA7-4C8F87EABD50@gmail.com>
In-Reply-To: <64B238BE-97FD-44B1-A4FF-DAD6DCDFA7A9@aim.com>
References:  <64B238BE-97FD-44B1-A4FF-DAD6DCDFA7A9@aim.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Aug 29, 2013, at 1:11 PM, John Clark wrote:

> Of and on I've been working on getting FreeBSD up and running on a  
> P1020WLAN evaluation board. With some help and some hackerage I've  
> been able to get the board up enough to use one of the ethernet tsec  
> devices to mount an NFS root.
>
> I've moved on to look at getting the drivers up for my PCIE devices,  
> and seem to be having problems both 'conceptually', and more  
> specifically how FreeBSD enumerates devices on the PCIE bus.
>
> The file powerpc/mpc85xx/pci_fdt.c seems to correctly 'find' the  
> PCIE, and there is a 'pcib0' allocated, there does not seem to be  
> any further bus probing to find the PCIE devices.
>
> They exist, as my linux port does find the devices and calls the  
> driver init functions, leading to useable devices when linux is  
> fully booted.
>
> I have noticed in other ports, say for the mips processor, the use  
> of 'hints' seems to be a popular way to indicate devices on the bus.  
> However, I've also read that the DTS files are the preferred way to  
> indicate the existence of devices. However, in the case of linux,  
> the DTS files have no listing for the actual devices on the PCIE  
> bus, just the config info for accessing the PCIE register regions.
>
> If someone has some illuminating remarks on this topic I'd  
> appreciate it.
>
> Thanks,
> John Clark.

Hi John,

I know this is a _very_ old email, but I just found it when cleaning  
out my inbox of ancient mails.  Earlier this year (May, I think?) I  
committed a PCI bridge driver for the mpc85xx-like family.  It works  
only with 32-bit addresses, but as long as your device tree does only  
use 32-bit addresses, not multicell, it should work fine for this.

- Justin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89BA95FA-DECE-4726-8FA7-4C8F87EABD50>