From owner-freebsd-ppc@FreeBSD.ORG Thu Aug 29 18:16:51 2013 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 293823D2 for ; Thu, 29 Aug 2013 18:16:51 +0000 (UTC) (envelope-from jeclark2006@aim.com) Received: from omr-d04.mx.aol.com (omr-d04.mx.aol.com [205.188.109.201]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F15BF2E29 for ; Thu, 29 Aug 2013 18:16:50 +0000 (UTC) Received: from mtaout-db04.r1000.mx.aol.com (mtaout-db04.r1000.mx.aol.com [172.29.51.196]) by omr-d04.mx.aol.com (Outbound Mail Relay) with ESMTP id C5CF870047FB9 for ; Thu, 29 Aug 2013 14:11:17 -0400 (EDT) Received: from [10.0.0.205] (wsip-68-105-252-106.sd.sd.cox.net [68.105.252.106]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mtaout-db04.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 631EFE0000AC for ; Thu, 29 Aug 2013 14:11:16 -0400 (EDT) From: John Clark Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Freescale P1020 PCIE and device enumeration problem. Message-Id: <64B238BE-97FD-44B1-A4FF-DAD6DCDFA7A9@aim.com> Date: Thu, 29 Aug 2013 11:11:13 -0700 To: "freebsd-ppc@FreeBSD.org" Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) X-Mailer: Apple Mail (2.1508) x-aol-global-disposition: G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20121107; t=1377799876; bh=FmGPUszqfDJBtxa7SzZekK8A/JcetENUmO5qcKTRndA=; h=From:To:Subject:Message-Id:Date:Mime-Version:Content-Type; b=yZnvqrcHmvbccOK7INUmhfRcizuS5wCGa39gO9WyOItK+I7objl32cB/u3dbvRz9R IqsUiaBs8xCVyPJsGBWMzQHzw0FO5b5mxAjctaHmif7YhwgqmUUP/7WEcR6a2lhLa0 6/1TfO5uTIWZkrm4UrSHitOVJslXYLicQXa5KAnU= x-aol-sid: 3039ac1d33c4521f8ec439c9 X-AOL-IP: 68.105.252.106 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 18:16:51 -0000 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.