From owner-freebsd-stable@FreeBSD.ORG Tue May 25 06:25:30 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9C5C106566C for ; Tue, 25 May 2010 06:25:30 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 515338FC20 for ; Tue, 25 May 2010 06:25:29 +0000 (UTC) Received: by fxm4 with SMTP id 4so4099741fxm.13 for ; Mon, 24 May 2010 23:25:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5ZohTpKNx7umcfFP6rk5MU+wBFgTrqfK/f68OnTqtMw=; b=IvGO6tvl6J113hvExjdPGq3Xoyv7ckUjecYH4AbDvviZzC80CediuJuaGnwPWKb1o+ 21ibzllBMG/PV+LUYxrOnmVFwxjZC4TLGFH1qHYRuVZ6SlHPdGMgc4olhnUu1nc+WTFx GWlz80paJ6vawLttHAyMRxjX3HRjb8gqH2W0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=W6aOQ74MndoqYH6yZzgYCksksUuV1+RLyzHNaHXnyvqHy4BtqS/cp3t5sjXzT+bEMY vRmgYLIhI4cmXbArsIxVnlRPajGGRX+V18bkKgKGcRG52Yr254iXr0ZBBfsrio2DPasC RMmHfKA35o/AVkLhLppXROFqfZoXbINtIf6Hc= MIME-Version: 1.0 Received: by 10.223.47.130 with SMTP id n2mr5670396faf.55.1274768729037; Mon, 24 May 2010 23:25:29 -0700 (PDT) Received: by 10.223.103.209 with HTTP; Mon, 24 May 2010 23:25:28 -0700 (PDT) In-Reply-To: References: <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> <20100507120843.GA1738@Melon.malikania.fr> <1273257226.1671.3.camel@malikania.fr> Date: Tue, 25 May 2010 08:25:28 +0200 Message-ID: From: Giovanni Trematerra To: David DEMELIER Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2010 06:25:31 -0000 On Mon, May 24, 2010 at 9:43 PM, David DEMELIER wrote: > 2010/5/12 Giovanni Trematerra : >> On Fri, May 7, 2010 at 8:33 PM, Demelier David wrote: >>> Le Vendredi 07 mai 2010 =E0 18:22 +0200, Giovanni Trematerra a =E9crit = : >>>> On Fri, May 7, 2010 at 2:08 PM, Demelier David wrote: >>>> > Hi, >>>> > =A0 =A0 =A0 =A0I noticed that pluggin the AC adaptor when I boot wit= hout it does not >>>> > =A0 =A0 =A0 =A0panic. It only panic when removing it. >>>> > >>>> > =A0 =A0 =A0 =A0Maybe that could help ? >>>> > >>>> >>>> Good to know. The problem lies somewhere when performance state change= . >>>> In your case it happens when you remove AC adaptor. Let's hope someone= on >>>> acpi@ ml comes up with a good idea. >>>> >>> >>> Okay so for the moment no change, I'll wait for someone with an idea >>> that could solve my problem. For me because the panic only happens when >>> changing profile from ac plugged -> ac unplugged (and not the reverse) = I >>> would think it's a cpu related acpi issue. >>> >> >> I looked deeper and it seems to me that when you unplug the AC >> adapter, acpi_cpu_notify calls acpi_cpu_cx_cst that try to allocate a >> new cx_ptr->p_lvlx =A0via acpi_PkgGas. >> If acpi_PkgGas set cx_ptr->p_lvlx to NULL for any reasons you'll have >> the panic that you reported. >> A solution would be to set acpi_cpu_hook to NULL so acpi_cpu_idle won't = call it. >> I need some time to have a patch because of the possible race between >> acpi_cpu_notify and >> acpi_cpu_idle during set acpi_cpu_hook to NULL. >> if you have time and want panic your system you could try the attached >> patch, just to be >> sure that we catch it. >> > > Hi, it paniced today ! I don't know why it randomly panic but it did, > the backtrace didn't change. There is a picture about the panic : > > http://img541.imageshack.us/img541/2773/dsc00388xa.jpg What was you trying? acpi_idle5.diff.txt patch? How did it panic? Unplugging AC adapter? Thanks -- Gianni