Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2010 10:59:13 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: FreeBSD 8.0 hangs on boot with ACPI enabled
Message-ID:  <201001041059.13322.jhb@freebsd.org>
In-Reply-To: <20100102220648.GB1616@uriah.heep.sax.de>
References:  <20091230082556.GD1637@uriah.heep.sax.de> <200912301122.28030.jhb@freebsd.org> <20100102220648.GB1616@uriah.heep.sax.de>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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