From owner-freebsd-stable Mon Jun 5 15:10:41 2000 Delivered-To: freebsd-stable@freebsd.org Received: from maildb2.pdq.net (maildb2.pdq.net [204.145.251.85]) by hub.freebsd.org (Postfix) with SMTP id 873E737BE8C for ; Mon, 5 Jun 2000 15:10:31 -0700 (PDT) (envelope-from jsmethers@pdq.net) X-AirNote: 1 Received: from 64-31-203-13.pdq.net [64.31.203.13-24] by alice.pdq.net ID 41_-1; Mon, 05 Jun 2000 17:06:56 -0500 Message-ID: <011001bfcf3a$f4b9bfd0$0dcb1f40@mom> From: "Jason" To: "Fred Clift" Cc: , References: Subject: Re: changed pci bus probe order from 3.2 to 4.0 -- ideas? Date: Mon, 5 Jun 2000 17:11:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: "Fred Clift" > Hm so does that mean that non-bridge devices on those busses should also > be done depth first? I understand wanting to find all the busses first, > but devices too? All the bioses I've seen seem to find all the busses, > then assign resources to devices starting with those on bus 0 then bus 1 > etc. This is also how FreeBSD <=3.4 work. Am I just missing something? > > Fred No, I am. For some reason I didn't make a distinction between regular devices and bridge devices in my mind when I though about this. =p What needs to be changed is the assignment of resources based on a combination of chassis, slot numbers, and fuction number of a device in the slot, not based on the bus number. This would have the desired effect. There are four ways of obtaining information that may be used to do this. Useing the PCI interrupt routing table in BIOS memory, querying the PCI BIOS for the same table, use the PCI 2.2 chassis/slot numbering capabilities register, and using the function numbers of the device. Everything could be done while enumerating the buses. Doing this would also potentially allow the wiring down of devices based on the chassis, slot, and fuction of the slot. This would allow logical ordering of devices. Now it just needs to be implemented. - Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message