From owner-freebsd-current Tue Oct 30 16:13:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 6C0E337B401; Tue, 30 Oct 2001 16:13:40 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id f9V0DQL41635; Wed, 31 Oct 2001 03:13:26 +0300 (MSK) (envelope-from ache) Date: Wed, 31 Oct 2001 03:13:21 +0300 From: "Andrey A. Chernov" To: Peter Wemm Cc: Mikhail Teterin , current@freebsd.org, sos@freebsd.org Subject: Re: ouch -- the second controller on Promise-66 is not detected! Message-ID: <20011031031320.A41539@nagual.pp.ru> References: <200110302149.f9ULnpW04142@aldan.algebra.com> <20011030225717.87F2339F0@overcee.netplex.com.au> <20011031025742.C39765@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011031025742.C39765@nagual.pp.ru> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 31, 2001 at 02:57:42 +0300, Andrey A. Chernov wrote: > On Tue, Oct 30, 2001 at 14:57:17 -0800, Peter Wemm wrote: > > > date: 2000/05/26 13:59:05; author: sos; state: Exp; lines: +8 -13 > > If devclass_alloc_unit() is called with a wired unit #, and this is > > buzy, only search upwards for a free slot to use.. > > > > This broke unit numbering on ATA systems where PCI attached controllers > > come before the mainboard ones... > > This need to be resolved somehow else, not by using next free slot causing > multiply consoles, keyboards, etc. detected (with panic). Probably upper > level numbering code, i.e. ATA needs to detect its conflicts, not bus > numbering code itself. Giving more details: ATA code must test wired slot, and, if it is busy, increase number to next free slot and give it to bus code afterwards. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message