From owner-freebsd-arch@FreeBSD.ORG Sun Feb 1 04:27:23 2009 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 901D31065680; Sun, 1 Feb 2009 04:27:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB3C8FC1A; Sun, 1 Feb 2009 04:27:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n114Pe1i078896; Sat, 31 Jan 2009 21:25:40 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sat, 31 Jan 2009 21:26:08 -0700 (MST) Message-Id: <20090131.212608.-1522433384.imp@bsdimp.com> To: obrien@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <20090131093130.GA17896@dragon.NUXI.org> References: <200901260947.32870.jhb@freebsd.org> <20090131093130.GA17896@dragon.NUXI.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jhb@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: Trimming the default /boot/device.hints X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 04:27:23 -0000 In message: <20090131093130.GA17896@dragon.NUXI.org> "David O'Brien" writes: : At least for amd64, I'd like to see all the hints removed. We should : make these assumptions. We can't remove all hints, unless we require ACPI. The floppy drives don't enumerate properly without hints in the PNPBIOS case. I don't know if the floppies enumerate correctly for ACPI, but the code that's there seems to assume that enumerating via _FDE might fail sometimes and the fallback method is hints. This suggests that keeping the fd hints is a good thing. We also want hints to wire down uart0 and uart1 to their traditional COM1 and COM2 places. At least that's been an oft-reported bug when we don't. My current 'hints' file is thus: hint.fd.0.at="fdc0" hint.fd.0.drive="0" hint.fd.1.at="fdc0" hint.fd.1.drive="1" hint.sc.0.at="isa" hint.sc.0.flags="0x100" hint.uart.0.at="isa" hint.uart.0.port="0x3F8" hint.uart.0.flags="0x10" hint.uart.1.at="isa" hint.uart.1.port="0x2F8" I'm too chicken to remove the hint.sc.0 hints, but maybe they can go. As for the i386 stuff, John and I realized we were being too grumpy, stopped grumping and worked it out later. Apart from some really minor tweaks, I believe John is going to go ahead and commit basically what he proposed. While one can run the above hints on x86 as well, we're not going to push things that far just yet. Maybe with 9 that will be the default and we'll have a 'LEGACY' kernel with all the gunk... or maybe we'll just let it die... For now, we'll keep the extra stuff I suggested removing since it means we can still have one kernel that boots the basics on non-enumerated systems. Warner