From owner-freebsd-stable@FreeBSD.ORG Wed May 12 13:35:53 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 563231065670 for ; Wed, 12 May 2010 13:35:53 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx1.freebsd.org (Postfix) with ESMTP id D76AF8FC13 for ; Wed, 12 May 2010 13:35:52 +0000 (UTC) Received: by fxm7 with SMTP id 7so64413fxm.17 for ; Wed, 12 May 2010 06:35:51 -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; bh=yPplcUV5Hf3q4LdhtxNvqrqvcm9G1dYrryeEJKA8Tzw=; b=l+36GwZgKHElYI6dcACppGVgHXGwwGlFmjULsbph9PbaKwyxuFJVARZNRz7PEAVTPM sa4ceIhGOxC21tyDF/ZmDCm+q0PXHhkbcGZSBxvoGH99TwT1JyBjbIkp1f6kzzmbH7Mw 3I4MoMHGBH+1wRgyKQO/++ywWMq015nL1XQyw= 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; b=bCyIZrb6xdFgEj2JNzsfWw1F4JMO3Bds0NumJx7mPTN/JBOXOVukw3SoslOyGyET98 ov1GkFWKAezRqEWqAFmHINrhLTZ7Z+EUvdp6c0m3iqZuzzILfiWFX5pYmEm+PHHHl92m 5CBs24+Qj1LJSZQMPh4a18j5hOgHaO5t3G4cM= MIME-Version: 1.0 Received: by 10.204.162.133 with SMTP id v5mr1181918bkx.60.1273671351591; Wed, 12 May 2010 06:35:51 -0700 (PDT) Received: by 10.204.77.15 with HTTP; Wed, 12 May 2010 06:35:51 -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: Wed, 12 May 2010 15:35:51 +0200 Message-ID: From: David DEMELIER To: Giovanni Trematerra Content-Type: text/plain; charset=UTF-8 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: Wed, 12 May 2010 13:35:53 -0000 Hi, I tested your patch and it didn't panic. I checked the dev.cpu sysctl nodes to see if the CPU freq is changing or not. I unplugged the cable : markand@Melon ~ $ sysctl dev.cpu dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 450 dev.cpu.0.freq_levels: 2101/35000 1837/30625 1600/23888 1400/20902 1200/15000 1050/13125 900/11250 750/9375 600/7500 450/5625 300/3750 150/1875 dev.cpu.0.cx_supported: C1/1 C2/1 C3/162 dev.cpu.0.cx_lowest: C3 dev.cpu.0.cx_usage: 0.00% 99.99% 0.00% last 131us dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.cx_supported: C1/1 C2/1 C3/162 dev.cpu.1.cx_lowest: C3 dev.cpu.1.cx_usage: 0.00% 99.99% 0.00% last 260us I plugged the cable : markand@Melon ~ $ sysctl dev.cpu dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 2101 dev.cpu.0.freq_levels: 2101/35000 1837/30625 1600/23888 1400/20902 1200/15000 1050/13125 900/11250 750/9375 600/7500 450/5625 300/3750 150/1875 dev.cpu.0.cx_supported: C1/1 C2/57 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% 0.00% last 497us dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.cx_supported: C1/1 C2/57 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 100.00% 0.00% last 497us Of course I enabled # Little power management. performance_cx_lowest="HIGH" performance_cpu_freq=${performance_cx_lowest} economy_cx_lowest="LOW" economy_cpu_freq=${economy_cx_lowest} in my /etc/rc.conf, it the behavior expected ? Thanks for your answers :-). -- Demelier David