Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 2008 23:02:10 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org, Marcel Moolenaar <xcllnt@mac.com>
Subject:   Re: sio => uart: one port is gone
Message-ID:  <48CEBF42.3060901@icyb.net.ua>
In-Reply-To: <200809151522.08679.jhb@freebsd.org>
References:  <48CE59C2.9060307@icyb.net.ua> <48CE91AB.3000200@icyb.net.ua> <9D0F7169-9461-4F32-9420-702BED840A20@mac.com> <200809151522.08679.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48CEBF42.3060901>