Date: Wed, 12 May 2010 15:35:51 +0200 From: David DEMELIER <demelier.david@gmail.com> To: Giovanni Trematerra <giovanni.trematerra@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor Message-ID: <AANLkTilq-j6y4QDwZScs0RVkHoZ9pUDk21quc36VIO1T@mail.gmail.com> In-Reply-To: <AANLkTilcNzzLt2GUPbL_Vqjspzx5a-oem1oZpKAYqoN8@mail.gmail.com> References: <4DEBDE2C-C0D2-469D-AC42-DD5027926424@FreeBSD.org> <h2mb3954bba1005060127t619952f4k63ed35a4c6800a0b@mail.gmail.com> <m2l4e6cba831005060216zae79a16bw1d4671ca79294a0c@mail.gmail.com> <i2ub3954bba1005061103ya3dabb7dw2d60d3aab712ed47@mail.gmail.com> <v2tb3954bba1005070134x3cca53c1vc67e5557e680061d@mail.gmail.com> <i2j4e6cba831005070159qa3df06ccw925073a05a1057f7@mail.gmail.com> <20100507120843.GA1738@Melon.malikania.fr> <k2u4e6cba831005070922vfc3bcf18i59551da3b40317a@mail.gmail.com> <1273257226.1671.3.camel@malikania.fr> <AANLkTilcNzzLt2GUPbL_Vqjspzx5a-oem1oZpKAYqoN8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTilq-j6y4QDwZScs0RVkHoZ9pUDk21quc36VIO1T>