From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 5 17:44:56 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 881AE106564A; Mon, 5 Mar 2012 17:44:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6095F8FC17; Mon, 5 Mar 2012 17:44:56 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) by cyrus.watson.org (Postfix) with ESMTPSA id 170D846B42; Mon, 5 Mar 2012 12:44:56 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 7FF3FB966; Mon, 5 Mar 2012 12:44:55 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org, sbruno@freebsd.org Date: Mon, 5 Mar 2012 12:22:45 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p10; KDE/4.5.5; amd64; ; ) References: <1330720724.5391.2.camel@powernoodle-l7.corp.yahoo.com> In-Reply-To: <1330720724.5391.2.camel@powernoodle-l7.corp.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201203051222.45699.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 05 Mar 2012 12:44:55 -0500 (EST) Cc: Subject: Re: [patch] Disable bios probe if acpi is enabled X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 17:44:56 -0000 On Friday, March 02, 2012 3:38:44 pm Sean Bruno wrote: > I'm noting that newer machines are completely hosed if we attempt to > probe for bios values. I'm proposing this change. Hmm, perhaps better than this is tying it into some device as a child of legacy0. That is possibly cleaner than checking for acpi0. I think your patch will break booting on a system that doesn't have ACPI (certainly it won't be able to find PCI anymore). > -bash-4.2$ p4 diff -du //depot/yahoo/ybsd_7/src/sys/i386/i386/bios.c > --- //depot/yahoo/ybsd_7/src/sys/i386/i386/bios.c 2011-09-16 > 22:47:30.000000000 0000 > +++ /home/seanbru/ybsd_7/src/sys/i386/i386/bios.c 2011-09-16 > 22:47:30.000000000 0000 > @@ -84,6 +84,12 @@ > char *p; > > /* > + * Don't do bios probing if acpi is enabled, its > + * pointless and breaks on newer systems > + */ > + if (!resource_disabled("acpi", 0)) > + return; > + /* > * BIOS32 Service Directory, PCI BIOS > */ > > -- John Baldwin