From owner-freebsd-i386@FreeBSD.ORG Wed Aug 2 15:07:28 2006 Return-Path: X-Original-To: freebsd-i386@freebsd.org Delivered-To: freebsd-i386@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB5B616A4DF; Wed, 2 Aug 2006 15:07:28 +0000 (UTC) (envelope-from jrhett@mail.meer.net) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D94643D5A; Wed, 2 Aug 2006 15:07:26 +0000 (GMT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.10/8.12.6) with ESMTP id k72F7Iix039916; Wed, 2 Aug 2006 08:07:25 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k72F6v6H051461; Wed, 2 Aug 2006 08:06:57 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: (from jrhett@localhost) by mail.meer.net (8.13.3/8.13.3) id k72F6uVJ051456; Wed, 2 Aug 2006 08:06:56 -0700 (PDT) (envelope-from jrhett) Date: Wed, 2 Aug 2006 08:06:56 -0700 From: Jo Rhett To: Bruce Evans Message-ID: <20060802150656.GB47835@svcolo.com> References: <200607252036.k6PKanFd072593@www.freebsd.org> <20060731191302.S1172@epsplex.bde.org> <6EFF87DF-280C-402C-8C2A-10F3144CF41F@svcolo.com> <20060802205230.N90692@delplex.bde.org> <20060802234330.J1249@epsplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060802234330.J1249@epsplex.bde.org> Organization: svcolo.com User-Agent: Mutt/1.5.9i Cc: njl@freebsd.org, freebsd-gnats-submit@freebsd.org, freebsd-i386@freebsd.org Subject: Re: i386/100831: sio ignores BIOS information about serial ports - bounty offered X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 15:07:28 -0000 On Thu, Aug 03, 2006 at 12:42:00AM +1000, Bruce Evans wrote: > So only a limited workaround seems to be possible. There is currently > no way to control ACPI's assignment of unit numbers, so device.hints > must match that assignment. ACPI will use BIOS list order which > associates unit 1 with port 0x3f8 in your preferred configuration. > device.hints must match that to avoid later confusion but can't affect > the unit numbers. You could keep COM1 == 0x3f8 in the boot loader and > outside of FreeBSD but would have to swap unit numbers in device.hints > and in all references to {tty,cua}d[0-1] in FreeBSD. Consoles actually > cause the fewest problems here, since they can be refered to without > using a unit number in most places and nothing except device.hints (or > the driver) should need to be changed to make the references consistent. Okay, I'm going to restate this in really simple terms. Tell me if I have it right. 1. We can't/won't fix the sio0<->sio1 problem because fixing ACPI is hard 2. The sio units are thus going to swap when entering high-level sio mode 3. The workaround is to put flags 0x10 (or 0x90) on sio1 4. There should be no ill effect from doing this. Console will never break and go to the wrong port. #4 is crucial to us. Many of these machines are completely unavailable to me for an emergency. This console is our "last chance access" -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation