Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2010 02:54:13 +0200
From:      Attilio Rao <attilio@freebsd.org>
To:        Giovanni Trematerra <giovanni.trematerra@gmail.com>
Cc:        freebsd-acpi@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: Kernel panic when unpluggin AC adaptor
Message-ID:  <AANLkTinkS_ELhMdUhXIrsmvN7ydOF6OyuyI2QwLSRoFv@mail.gmail.com>
In-Reply-To: <AANLkTin3IucElH1cBEW8uGXRmetLvMeTx5GWzq3fjrz0@mail.gmail.com>
References:  <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> <k2u4e6cba831005070922vfc3bcf18i59551da3b40317a@mail.gmail.com> <1273257226.1671.3.camel@malikania.fr> <AANLkTilcNzzLt2GUPbL_Vqjspzx5a-oem1oZpKAYqoN8@mail.gmail.com> <AANLkTilq-j6y4QDwZScs0RVkHoZ9pUDk21quc36VIO1T@mail.gmail.com> <AANLkTimHK_Ho1qfoLO35GuxUFLLUux6CUNnIFxvMywIN@mail.gmail.com> <AANLkTiku4rZ0kuOC2ZWo11Sq_jhZSiMhDJDvLKyR0r4R@mail.gmail.com> <l2w3bbf2fe11005120741h4b3fdafape563a973a939bbe8@mail.gmail.com> <AANLkTim6vVdVFPRwZJk7hRfOSYMjMQyfjbfwG3t9uTsW@mail.gmail.com> <AANLkTin3IucElH1cBEW8uGXRmetLvMeTx5GWzq3fjrz0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/5/14 Giovanni Trematerra <giovanni.trematerra@gmail.com>:
> On Thu, May 13, 2010 at 1:09 AM, Brandon Gooch
> <jamesbrandongooch@gmail.com> wrote:
>> On Wed, May 12, 2010 at 9:41 AM, Attilio Rao <attilio@freebsd.org> wrote:
>>> 2010/5/12 David DEMELIER <demelier.david@gmail.com>:
>>>> I remove the patch, and built the kernel (I updated the src this
>>>> morning) and it does not panic now. It's really odd. If it reappears
>>>> soon I will tell you.
>>>
>>> I looked at the code with Giovanni and I have the feeling that the
>>> race with the idle thread may still be fatal.
>>> We need to fix that.
>>>
>>> Attilio
>>>
>>
>> That seems to be the case, as my laptop shows about an 80-85 % chance
>> of experiencing a panic if left idle for long-ish periods of time (2
>> to 4 hours). I usually rebuild world or big ports overnight, and more
>> often than not I wake up to a panicked machine, same situation every
>> time:
>>
>> ...
>> rman_get_bushandle() at rman_get_bushandle+0x1
>> sched_idletd() at sched_idletd+0x123
>> fork_exit() at fork_exit+0x12a
>> fork_trampoline() at fork_trampoline+0xe
>> ...
>>
>> The kernel/userland is rebuilt, the ports are finished compiling --
>> it's in the time AFTER the completion of all tasks that the machine
>> gets bored and tries to kill itself :)
>>
>> I have seen the AC adapter plug/unplug "hang" in the past on this
>> laptop, but I never made the connection between the events, as
>> nowadays my laptop usually stays plugged in :(
>>
>> Attilio, I hope you can track this one down, let me know if I can do
>> anything to help or test...
>>
>
> Attilio and I came up with this patch. It seems ready for stress
> testing and review
> Please test and report back.

I have still to review it completely, hope to do that asap.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein



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