From owner-freebsd-acpi@FreeBSD.ORG Mon Jan 4 19:53:16 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70499106568B for ; Mon, 4 Jan 2010 19:53:16 +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 4104A8FC12 for ; Mon, 4 Jan 2010 19:53:16 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id E5FE346B49; Mon, 4 Jan 2010 14:53:15 -0500 (EST) Received: from jhbbsd.localnet (unknown [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 0286A8A025; Mon, 4 Jan 2010 14:53:15 -0500 (EST) From: John Baldwin To: Joerg Wunsch Date: Mon, 4 Jan 2010 10:59:13 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20091103; KDE/4.3.1; amd64; ; ) References: <20091230082556.GD1637@uriah.heep.sax.de> <200912301122.28030.jhb@freebsd.org> <20100102220648.GB1616@uriah.heep.sax.de> In-Reply-To: <20100102220648.GB1616@uriah.heep.sax.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001041059.13322.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 04 Jan 2010 14:53:15 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-acpi@freebsd.org Subject: Re: FreeBSD 8.0 hangs on boot with ACPI enabled X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 19:53:16 -0000 On Saturday 02 January 2010 5:06:48 pm Joerg Wunsch wrote: > As John Baldwin wrote: > > > OTOH, I'm not sure why initializing ACPI is trashing the BAR. If > > you want, you can try to narrow down at what point the BAR gets > > reset to 0. > > Any hints about where to start doing this? I could probably run the > machine through a remote GDB, but haven't been doing that for years > (and the machine doesn't have a FireWire interface either so I'd have > to use plain RS-232), so I'd preferrably start with a bit of "printf > debugging" first. If someone can give me some hints about which > files/functions to touch, I'd be grateful. You can probably start with acpi_attach() adding a printf at the top of that and after it calls bus_generic_attach(). You will want to figure out your device's PCI address and use pci_cfgregread() to fetch the value of the BAR at each printf. -- John Baldwin