From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 12 21:04:12 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 BB92D1065670; Tue, 12 Jul 2011 21:04:12 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 35E3F8FC12; Tue, 12 Jul 2011 21:04:11 +0000 (UTC) Received: by vws18 with SMTP id 18so5212241vws.13 for ; Tue, 12 Jul 2011 14:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=o3gzLLHSIo+ARlQjJvn5TmHxhUO5xS8PJSZWIPHcRHk=; b=vBq8W8IilIygaMgKI9wQ+PQe86SwPAFSpxKY4CFicxYD7v3X23eynoVrXzRuL8KaW6 i7+DCIpU6aLURlXPcTgKdY4Jq1Qhe2Rf53GDm6dbHqY98mAj0ket70DnMrXCjn1RnZK8 4wWVZ+R5p5s2NGSFh1ona9fs+LlsqIBvHDL0U= MIME-Version: 1.0 Received: by 10.52.74.34 with SMTP id q2mr479356vdv.233.1310504651224; Tue, 12 Jul 2011 14:04:11 -0700 (PDT) Received: by 10.52.188.193 with HTTP; Tue, 12 Jul 2011 14:04:11 -0700 (PDT) In-Reply-To: References: <4E0A41C8.3000904@FreeBSD.org> <201106301655.19258.jkim@FreeBSD.org> Date: Wed, 13 Jul 2011 00:04:11 +0300 Message-ID: From: Vitaly Magerya To: Jung-uk Kim Content-Type: text/plain; charset=UTF-8 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: Tue, 12 Jul 2011 21:04:12 -0000 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).