From owner-freebsd-current@FreeBSD.ORG Mon Sep 15 21:10:27 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF2E51065677; Mon, 15 Sep 2008 21:10:27 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from hosted.kievnet.com (hosted.kievnet.com [193.138.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id 82D638FC0A; Mon, 15 Sep 2008 21:10:27 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost ([127.0.0.1] helo=edge.pp.kiev.ua) by hosted.kievnet.com with esmtpa (Exim 4.62) (envelope-from ) id 1KfKH1-000Cmh-TJ; Mon, 15 Sep 2008 23:02:15 +0300 Message-ID: <48CEBF42.3060901@icyb.net.ua> Date: Mon, 15 Sep 2008 23:02:10 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.16 (X11/20080821) MIME-Version: 1.0 To: John Baldwin References: <48CE59C2.9060307@icyb.net.ua> <48CE91AB.3000200@icyb.net.ua> <9D0F7169-9461-4F32-9420-702BED840A20@mac.com> <200809151522.08679.jhb@freebsd.org> In-Reply-To: <200809151522.08679.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Marcel Moolenaar Subject: Re: sio => uart: one port is gone X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2008 21:10:27 -0000 on 15/09/2008 22:22 John Baldwin said the following: > The problem is that right now we ship with acpi.ko as a module by default and > have the loader auto-load acpi.ko IFF the machine supports ACPI. Considering > how cheap a bus attachment is, I find this argument rather rediculous. If > you are building uart into the kernel on i386, just always include the acpi > attachment. Other drivers give a more sane user experience. GENERIC should > DTRT out-of-the-box, for example. John, thank you for the idea, the following trivial patch did it for me. --- a/sys/conf/files +++ b/sys/conf/files @@ -1080,7 +1080,7 @@ dev/twe/twe.c optional twe dev/twe/twe_freebsd.c optional twe dev/tx/if_tx.c optional tx dev/txp/if_txp.c optional txp -dev/uart/uart_bus_acpi.c optional uart acpi +dev/uart/uart_bus_acpi.c optional uart #dev/uart/uart_bus_cbus.c optional uart cbus dev/uart/uart_bus_ebus.c optional uart ebus dev/uart/uart_bus_isa.c optional uart isa dmesg: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] uart1: <16550 or compatible> port 0x2e8-0x2ef irq 3 on acpi0 uart1: [FILTER] -- Andriy Gapon