From: Borislav Petkov Subject: Re: 2.6.24-rc4-mm1: acpi reboots machine... solved Date: Tue, 11 Dec 2007 21:52:55 +0100 Message-ID: <20071211205255.GB5013@gollum.tnic> References: <20071209075001.GA4686@gollum.tnic> <20071209091946.GA4501@gollum.tnic> <20071211174443.GA5013@gollum.tnic> <200712111300.24841.bjorn.helgaas@hp.com> Reply-To: bbpetkov@yahoo.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp126.plus.mail.mud.yahoo.com ([209.191.106.157]:25978 "HELO smtp126.plus.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751762AbXLKV32 (ORCPT ); Tue, 11 Dec 2007 16:29:28 -0500 Content-Disposition: inline In-Reply-To: <200712111300.24841.bjorn.helgaas@hp.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Bjorn Helgaas Cc: Andrew Morton , len.brown@intel.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org On Tue, Dec 11, 2007 at 01:00:24PM -0700, Bjorn Helgaas wrote: > On Tuesday 11 December 2007 10:44:43 am Borislav Petkov wrote: > > On Sun, Dec 09, 2007 at 10:19:47AM +0100, Borislav Petkov wrote: > > > On Sun, Dec 09, 2007 at 08:50:02AM +0100, Borislav Petkov wrote: > > > > Hi Andrew, > > > > Hi Len, > > > >=20 > > > > after booting 2.6.24-rc4-mm1 (2.6.24-rc4-190-g94545ba, otoh, bo= ots just > > > > fine) on my asus laptop, the machine reboots after claiming tha= t > > > > "Critical temperature reached (255 C)." However, the degrees nu= mber > > > > is kinda hinting at 0xff all-ones field. Will try dump_stack in > > > > acpi_thermal_critical() to checkout the call path. For now here= 's the netconsole bootlog: > > >=20 > > > Here's what i got so far: > > >=20 > > > [ 50.287939] Pid: 1, comm: swapper Not tainted 2.6.24-rc4-mm1 #= 14 > > > [ 50.287999] [] show_trace_log_lvl+0x12/0x25 > > > [ 50.288103] [] show_trace+0xd/0x10 > > > [ 50.288202] [] dump_stack+0x57/0x5f > > > [ 50.288303] [] acpi_thermal_check+0x150/0x3bb > > > [ 50.288415] [] acpi_thermal_add+0x261/0x2cf > > > [ 50.288515] [] acpi_device_probe+0x3e/0xdb > > > [ 50.288615] [] driver_probe_device+0xaf/0x12a > > > [ 50.288717] [] __driver_attach+0x6c/0xa5 > > > [ 50.288817] [] bus_for_each_dev+0x3e/0x60 > > > [ 50.288916] [] driver_attach+0x14/0x16 > > > [ 50.289015] [] bus_add_driver+0xa6/0x1a8 > > > [ 50.289114] [] driver_register+0x42/0x47 > > > [ 50.289214] [] acpi_bus_register_driver+0x3a/0x3c > > > [ 50.289316] [] acpi_thermal_init+0x57/0x76 > > > [ 50.289424] [] kernel_init+0x138/0x280 > > > [ 50.289525] [] kernel_thread_helper+0x7/0x10 > > > [ 50.289625] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > > > [ 50.289680] ACPI: Critical trip point > > > [ 50.289736] Critical temperature reached (255 C), shutting dow= n. > > >=20 > > > so in acpi_thermal_get_temperature() called in acpi_thermal_add()= the > > > tz->temperature thingy is not set properly (printk's added): > > >=20 > > > [ 50.276607] Old temp: 4294967023 > > > [ 50.281890] Got temp: 255 > > > [ 50.282567] Old temp: 255 > > > [ 50.287882] Got temp: 255 > > >=20 > > > What's also strange is that the tz acpi_thermal is alloc'd with k= zalloc and > > > there's still garbage in it after reading it in acpi_thermal_get_= temperature() > > > for the first time. Debugging continues... > >=20 > > (i almost suspected that the problem might be something completely = different.) > > well, after bisecting the rc4-mm1 tree for a whole day today, the e= vildoer > > turned out to be > >=20 > > broken-out/pnp-request-ioport-and-iomem-resources-used-by-active-de= vices.patch. > >=20 > > After backing this one out, mm1 boots just fine here. >=20 > Thanks for tracking this down. I'll look into your logs and see if I > can figure out what's going on. There's another report related to th= at > patch here: http://lkml.org/lkml/2007/11/22/110 . Looks like a diffe= rent > symptom though, so probably a different fix. =46rom what i can roughly tell so far it seems like an resource conflic= t between acpi and the pnp requested regions in your patch which result in the acpi_therma= l code to read the wrong (0xff) temperature value and halt the machine, but i = might be wrong on the details since acpi is such a big code chunk to swallow. An= yways, this is a different issue than the one you quote above. --=20 Regards/Gru=DF, Boris. - To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html