From owner-freebsd-stable@FreeBSD.ORG Wed Oct 25 08:56:01 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23F1F16A403 for ; Wed, 25 Oct 2006 08:56:01 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85F2143D45 for ; Wed, 25 Oct 2006 08:55:59 +0000 (GMT) (envelope-from stb@lassitu.de) Received: (from stb@koef.zs64.net) (authenticated) by koef.zs64.net (8.13.8/8.13.8) with ESMTP id k9P8tvjT083442 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 25 Oct 2006 10:55:58 +0200 (CEST) (envelope-from stb@lassitu.de) In-Reply-To: <20061024144134.GA72596@icarus.home.lan> References: <6196E612-1611-4D81-BF50-8E54DED00480@khera.org> <911B338C-38E0-4952-986C-F9DBC82E99BE@lassitu.de> <20061024144134.GA72596@icarus.home.lan> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Wed, 25 Oct 2006 10:57:20 +0200 To: Jeremy Chadwick X-Mailer: Apple Mail (2.752.2) Cc: Vivek Khera , FreeBSD Stable Subject: Re: kernel ignores kenv comconsole_speed? 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: Wed, 25 Oct 2006 08:56:01 -0000 Am 24.10.2006 um 16:41 schrieb Jeremy Chadwick: > On Tue, Oct 24, 2006 at 09:41:57AM -0400, Vivek Khera wrote: >>> Am 23.10.2006 um 17:46 schrieb Vivek Khera: >>>> On Oct 20, 2006, at 6:59 AM, Stefan Bethke wrote: >>> As I said, boot and loader are happily using 115200, but the kernel >>> uses the compiled-in default. I'll file a PR the next few days, >>> hopefully with a patch. >> >> As I said, "works for me". I wonder what it is you are going to >> patch? Did you try it with the separate -S option? Did it work? > > I think what Stefan refers to is the complex nature of how the > serial port is initialised/"tinkered with" in stages. [ Very good, but very long explanation of the various users of the serial port omitted ] > What I'd like to propose is similar to Stefan's recommendation: > is there any way possible to: > > * Not touch the serial port AT ALL, EVER [...] I'm not sure that would be so easy. However, CONSPEED is/was the setting to be used if the actual setting cannot be determined when sio initializes. I haven't researched if there ever was code that tried to determine the sio settings when (re-)initializing. However, sioreg.h says: /* default serial console speed if not set with sysctl or probed from boot */ #ifndef CONSPEED #define CONSPEED 9600 #endif For me, probing from boot could just mean to initialize the speed from kenv comconsole_speed if set, and fall back to CONSPEED otherwise. I'll try to get around that on the weekend. In current, imp re-enabled the commented-out tunable for machdep.conspeed. Re-enabling that works without a problem, it seems (cf. 1.463 of sio.c). Stefan -- Stefan Bethke Fon +49 170 346 0140