From owner-freebsd-stable@FreeBSD.ORG Tue Apr 26 13:55:30 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D04AB1065688 for ; Tue, 26 Apr 2011 13:55:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id A1B638FC16 for ; Tue, 26 Apr 2011 13:55:30 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 4624146B45; Tue, 26 Apr 2011 09:55:30 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C05578A01B; Tue, 26 Apr 2011 09:55:29 -0400 (EDT) From: John Baldwin To: Przemyslaw Frasunek Date: Tue, 26 Apr 2011 09:44:52 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <4DA4A96F.9000507@frasunek.com> <201104251604.04784.jhb@freebsd.org> <4DB5E9D6.3040203@frasunek.com> In-Reply-To: <4DB5E9D6.3040203@frasunek.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201104260944.52476.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 26 Apr 2011 09:55:29 -0400 (EDT) Cc: freebsd-stable@freebsd.org Subject: Re: Missing serial port after enabling serial console in loader.conf X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 13:55:30 -0000 On Monday, April 25, 2011 5:38:30 pm Przemyslaw Frasunek wrote: > > I don't think so. You can try swapping the hints for sio0 and sio1 and seeing if > > sio1 suddenly shows up as working and valid. If so, then the changes in 8 to bind > > unit numbers using hints might work for you to get COM1 back as sio0. > > Few days ago I decided to upgrade to 8.2-STABLE, partially due to some > long-standing Netgraph issues (which I discussed on freebsd-net). To my > surprise, sio0 (well, now uart0) had become detectable even in spite of enabled SOL: > > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > uart0: [FILTER] > uart0: console (9600,n,8,1) > uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 > uart1: [FILTER] > > Eventually I'm able to use comconsole in loader.conf and getty simultaneously. > > BTW. I looked at the BIOS setup on my box - it has "Legacy OS" knob, allowing to > hide serial port occupied by SOL from non ACPI aware OS. It was disabled for all > the time, so my problem was probably related to sio(4) and fixed in uart(4). No, this was almost certainly due to the hints logic in 8. :) Probably what happened before is that ACPI was not listing COM1 at all, but then COM2 probed as sio0. Then there was no device for the I/O port resources for COM1. The hint changes in 8 would work around that issue by recognizing that case and keeping COM2 at sio1. That would then have allowed sio0 to probe at isa0. -- John Baldwin