From owner-freebsd-stable@FreeBSD.ORG Mon Sep 15 16:37:29 2008 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 23461106564A for ; Mon, 15 Sep 2008 16:37:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) by mx1.freebsd.org (Postfix) with ESMTP id C37BE8FC0A for ; Mon, 15 Sep 2008 16:37:28 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA06.westchester.pa.mail.comcast.net ([76.96.62.51]) by QMTA05.westchester.pa.mail.comcast.net with comcast id F2vD1a07116LCl0554dTqq; Mon, 15 Sep 2008 16:37:27 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA06.westchester.pa.mail.comcast.net with comcast id F4dR1a00G4v8bD73S4dR1l; Mon, 15 Sep 2008 16:37:27 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=0hpP4_78yf--GJfy0hkA:9 a=qFUdAEGp7chzqc_LmClJEkdkauIA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 4354D17B81A; Mon, 15 Sep 2008 09:37:25 -0700 (PDT) Date: Mon, 15 Sep 2008 09:37:25 -0700 From: Jeremy Chadwick To: Andriy Gapon Message-ID: <20080915163725.GA41476@icarus.home.lan> References: <48CE5E9B.9000304@icyb.net.ua> <20080916002823.E439@sola.nimnet.asn.au> <48CE815A.9040907@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48CE815A.9040907@icyb.net.ua> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Stable , Ian Smith , marcel@xcllnt.net Subject: Re: sio => uart: one port is gone 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: Mon, 15 Sep 2008 16:37:29 -0000 On Mon, Sep 15, 2008 at 06:38:02PM +0300, Andriy Gapon wrote: > on 15/09/2008 17:36 Ian Smith said the following: >> On Mon, 15 Sep 2008, Andriy Gapon wrote: >> > This is a fairly standard and old machine with 2 COM ports. >> > Recently (last Friday) I decided to update my RELENG_7 system and also >> > to transition from sio to uart. >> > > This what I had before the upgrade: >> > kernel: sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags >> > 0x10 on acpi0 >> > kernel: sio0: type 16550A >> > kernel: sio0: [FILTER] >> > kernel: sio1: <16550A-compatible COM port> port 0x2e8-0x2ef irq 3 on acpi0 >> > kernel: sio1: type 16550A >> > kernel: sio1: [FILTER] >> > > This is what I have now: >> > uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 >> > uart0: [FILTER] >> > > This is what I have in device.hints for uart: >> > hint.uart.0.at="isa" >> > hint.uart.0.port="0x3F8" >> > hint.uart.0.flags="0x10" >> > hint.uart.0.irq="4" >> > hint.uart.1.at="isa" >> > hint.uart.1.port="0x2F8" >> >> but it's shown as 0x2e8 above .. >> >> > hint.uart.1.irq="3" >> > hint.uart.2.at="isa" >> > > Precisely the same hints (s/uart/sio/) I had for sio. >> >> 0x2f8 is 'standard COM2' address .. did sio1 work ok at 0x2e8 before? > > Ian, > > thank you, I guess I had a typo in my hints, but the port did work. > Looking at the old dmesg I see that sio devices are found 'on acpi0' as > opposed to uart now being found on 'isa0'. > Maybe this is another difference. > > Maybe sio was attached using some information from acpi, so hints were > not that important. But maybe the same acpi information is not applied > to uart, so it does depend on the hints. > > If this guess is correct then this is a regression in sio=>uart > transition, if not, then I'll just correct my device.hints and shut up > :-) I've CC'd Marcel Moolenaar, who can very likely explain what's going on here. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |