From tiffany.snyder at gmail.com Sat Dec 29 12:07:54 2007 From: tiffany.snyder at gmail.com (Tiffany Snyder) Date: Sat Dec 29 12:07:58 2007 Subject: Newbus help In-Reply-To: References: Message-ID: Hi, I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1 host-PCI and the other is host-Hypertransport bridge. Currently only the host-PCI bridge gets recognized and cleanly attaches all the devices underneath it. The questions are; (1) Can you tell or point to a piece of code that adds a second host bridge? I assume this get added as a child of nexus (2) How do I go about defining bus methods for the host-HT bridge and automatically enabling the newbus system to probe and attach child devices and bridges below it? Again, pointer to example code is welcome. Thanks, Tiffany Snyder. From jhb at freebsd.org Mon Dec 31 10:30:44 2007 From: jhb at freebsd.org (John Baldwin) Date: Mon Dec 31 10:30:48 2007 Subject: Newbus help In-Reply-To: References: Message-ID: <200712311252.06116.jhb@freebsd.org> On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote: > Hi, > I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1 > host-PCI and the other is host-Hypertransport bridge. Currently only > the host-PCI bridge gets recognized and cleanly attaches all the > devices underneath it. The questions are; > (1) Can you tell or point to a piece of code that adds a second host > bridge? I assume this get added as a child of nexus > (2) How do I go about defining bus methods for the host-HT bridge and > automatically enabling the newbus system to probe and attach child > devices and bridges below it? Again, pointer to example code is > welcome. Are you using ACPI or a custom BIOS of some sort? -- John Baldwin From tiffany.snyder at gmail.com Mon Dec 31 20:45:01 2007 From: tiffany.snyder at gmail.com (Tiffany Snyder) Date: Mon Dec 31 20:45:05 2007 Subject: Newbus help In-Reply-To: <200712311252.06116.jhb@freebsd.org> References: <200712311252.06116.jhb@freebsd.org> Message-ID: On Dec 31, 2007 9:52 AM, John Baldwin wrote: > > On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote: > > Hi, > > I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1 > > host-PCI and the other is host-Hypertransport bridge. Currently only > > the host-PCI bridge gets recognized and cleanly attaches all the > > devices underneath it. The questions are; > > (1) Can you tell or point to a piece of code that adds a second host > > bridge? I assume this get added as a child of nexus > > (2) How do I go about defining bus methods for the host-HT bridge and > > automatically enabling the newbus system to probe and attach child > > devices and bridges below it? Again, pointer to example code is > > welcome. > > Are you using ACPI or a custom BIOS of some sort? Custom BIOS that only sets up the PCI host bridge. SW has to manually bootstrap the HT host bridge, attach and manage resources for all the children below it. Thanks, Tiffany Snyder From imp at bsdimp.com Mon Dec 31 21:31:41 2007 From: imp at bsdimp.com (M. Warner Losh) Date: Mon Dec 31 21:31:45 2007 Subject: Newbus help In-Reply-To: References: <200712311252.06116.jhb@freebsd.org> Message-ID: <20071231.223115.-262812086.imp@bsdimp.com> In message: "Tiffany Snyder" writes: : On Dec 31, 2007 9:52 AM, John Baldwin wrote: : > : > On Saturday 29 December 2007 02:39:41 pm Tiffany Snyder wrote: : > > Hi, : > > I'm bringing up a system with FreeBSD-6.2 that has 2 Host Bridges. 1 : > > host-PCI and the other is host-Hypertransport bridge. Currently only : > > the host-PCI bridge gets recognized and cleanly attaches all the : > > devices underneath it. The questions are; : > > (1) Can you tell or point to a piece of code that adds a second host : > > bridge? I assume this get added as a child of nexus : > > (2) How do I go about defining bus methods for the host-HT bridge and : > > automatically enabling the newbus system to probe and attach child : > > devices and bridges below it? Again, pointer to example code is : > > welcome. : > : > Are you using ACPI or a custom BIOS of some sort? : : Custom BIOS that only sets up the PCI host bridge. SW has to manually : bootstrap the HT host bridge, attach and manage resources for all the : children below it. FreeBSD's pci bridge driver doesn't do all the things needed to do this. We'd be happy to help you add them to the driver. It is something that's been needed for a while, and blocking on another long-term feature, but something that could be done without it (although less eloquently). Warner