From owner-freebsd-acpi@FreeBSD.ORG Wed Jul 13 02:45:25 2011 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3437C106566B; Wed, 13 Jul 2011 02:45:25 +0000 (UTC) (envelope-from taku@tackymt.homeip.net) Received: from basalt.tackymt.homeip.net (unknown [IPv6:2001:3e0:577:0:20d:61ff:fecc:2253]) by mx1.freebsd.org (Postfix) with ESMTP id C529D8FC16; Wed, 13 Jul 2011 02:45:24 +0000 (UTC) Received: from basalt.tackymt.homeip.net (localhost [127.0.0.1]) by basalt.tackymt.homeip.net (Postfix) with ESMTP id 6D1CD133AC; Wed, 13 Jul 2011 11:45:23 +0900 (JST) X-Virus-Scanned: amavisd-new at tackymt.homeip.net Received: from localhost ([127.0.0.1]) by basalt.tackymt.homeip.net (basalt.tackymt.homeip.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C6kbWBpv-kDj; Wed, 13 Jul 2011 11:45:17 +0900 (JST) Received: from biotite.tackymt.homeip.net (biotite.tackymt.homeip.net [IPv6:2001:3e0:577:0:216:cfff:febc:1472]) by basalt.tackymt.homeip.net (Postfix) with ESMTP; Wed, 13 Jul 2011 11:45:17 +0900 (JST) Date: Wed, 13 Jul 2011 11:45:21 +0900 From: Taku YAMAMOTO To: Vitaly Magerya Message-Id: <20110713114521.9f684b01.taku@tackymt.homeip.net> In-Reply-To: References: <4E0A41C8.3000904@FreeBSD.org> <201106301655.19258.jkim@FreeBSD.org> X-Mailer: Sylpheed 3.1.0 (GTK+ 2.22.1; i386-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Andriy Gapon Subject: Re: (Missing) power states of an Atom N455-based netbook X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2011 02:45:25 -0000 Ah, the line in the acpi_cpu_mwait function should be read as: cpu_monitor(state, 0, 0); Vitaly, could you test the jkim's patch again with the above line modified? Jung-uk, the MONITOR insn seems to result in GPF if its extensions is anything but zero. # I admit it's very confusing that the semantics of extensions to # MONITOR and MWAIT are different from each other... On Wed, 13 Jul 2011 00:04:11 +0300 Vitaly Magerya wrote: > Vitaly Magerya wrote: > > Jung-uk Kim m@freebsd.org> wrote: > >> I have written a very rough patch and it is available from here: > >> > >> http://people.freebsd.org/m/acpi_cst.diff > >> > >> It compiles but wasn't tested at all, i.e., I have no hardware. > >> Please be careful. > > > > Cool. I'll try it. > > Sorry for the delay (I had to install CURRENT first). > > When I boot a kernel with that patch, I get this panic: > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 0; apic id = 00 > instruction pointer = 0x20:0xc04cd782 > stack pointer = 0x28:0xc3bddc3c > frame pointer = 0x28:0xc3bddc80 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 11 (idle: cpu0) > [ thread pid 11 tid 100003 ] > Stopped at acpi_cpi_idle+0x1c2: monitor > > Here's the backtrace: > > Tracing pid 11 tid 100003 td 0xc3d7f8a0 > acpi_cpu_idle(1d,c3bddca4,c0992e99,0,1d,...) at acpi_cpu_idle+0x1c2 > cpu_idle_acpi(0,1d,0,c3d7f8a0,c3bddcec,...) at cpu_idle_acpi+0x2f > cpu_idle(0,c3bddcc8,c0a27d18,a03,c3d7f8a0,...) at cpu_idle+0x89 > sed_idletd(0,c3bddd28,ff7ff3ff,c3d7d840,0,...) at sched_idletd+0x249 > fork_exit(c0721060,0,c3bddd28) at fork_exit+0x97 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip = 0, esp = 0xc3bddd60, ebp = 0 --- > > (Yes, I typed all that manually). > > My kernel is GENERIC without WITNESS, INVARIANTS and a whole lot > of drivers my system doesn't need (I can show the file on request). > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" -- -|-__ 山本 拓 / YAMAMOTO, Taku | __ < - A chicken is an egg's way of producing more eggs. -