From owner-freebsd-i386@FreeBSD.ORG Wed Aug 2 21:43:56 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 4130B16A4DD; Wed, 2 Aug 2006 21:43:56 +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 DF50E43D4C; Wed, 2 Aug 2006 21:43:55 +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 k72LhCj6075897; Wed, 2 Aug 2006 14:43:55 -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 k72LghQG090312; Wed, 2 Aug 2006 14:42:43 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: (from jrhett@localhost) by mail.meer.net (8.13.3/8.13.3) id k72LghuN090310; Wed, 2 Aug 2006 14:42:43 -0700 (PDT) (envelope-from jrhett) Date: Wed, 2 Aug 2006 14:42:43 -0700 From: Jo Rhett To: Bruce Evans Message-ID: <20060802214243.GD86509@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> <20060802150656.GB47835@svcolo.com> <20060803024810.X1573@epsplex.bde.org> <83D35AA9-61D2-4977-AFEC-C498F4147FC2@svcolo.com> <20060803041522.F2135@epsplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060803041522.F2135@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 21:43:56 -0000 On Thu, Aug 03, 2006 at 05:32:35AM +1000, Bruce Evans wrote: > I don't completely understand this either. I think there is a non-ACPI part > of the BIOS that FreeBSD (or all OS's doesn't see). As I understand your > configuration, you start with COM1 and COM2 at the usual places but don't > want to use COM1 so you change the BIOS settings for COM2 to the usual ones > for COM1 and maybe vice versa. This changes soft jumpers or whatever is > needed for FreeBSD to see it. Then you use a BIOS option to swap the ports > so that everything is supposed to see COM2 as COM1. The boot loader sees > this but ACPI in FreeBSD doesn't. I think this changes is only made in > some BIOS table that ACPI in FreeBSD doesn't know about. In my test, I > only swapped the settings of COM1 and COM2 in the BIOS, since I couldn't > find a BIOS option to swap the unit number assignments, so it was not > completely incorrect for ACPI in FreeBSD to swap the settings. Huh? I separated this to make it clear. You can't make COM1 be COM2. What you're saying is nonsense. (not an insult, it just doesn't make sense) There are two serial ports: A and B. I can assign 03f8 irq 4 to either of them, and 02f8 irq 3 to the other. (or com3 or com4 doesn't matter) FreeBSD is currently assigning sio0 to serial A, regardless of the IO and IRQ settings. Likewise sio1 to Serial B, regardless of configuration. It appears likely that they are assigned based entirely on the order that they are presented via ACPI, and device hints are ignored entirely. However, the boot loader console does use device hints and does work properly. -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation