From owner-freebsd-acpi@FreeBSD.ORG Thu Apr 6 14:31:13 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7FB616A425 for ; Thu, 6 Apr 2006 14:31:13 +0000 (UTC) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from mail0.ecc.u-tokyo.ac.jp (mail0.ecc.u-tokyo.ac.jp [133.11.50.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3297343D70 for ; Thu, 6 Apr 2006 14:31:12 +0000 (GMT) (envelope-from tamaru@myn.rcast.u-tokyo.ac.jp) Received: from spam004.ecc.u-tokyo.ac.jp (spam004.ecc.u-tokyo.ac.jp [133.11.50.197]) by mail0.ecc.u-tokyo.ac.jp (Postfix) with ESMTP id 8BBB657C11F for ; Thu, 6 Apr 2006 23:31:11 +0900 (JST) Received: from 157.82.72.158 (157.82.72.158 [157.82.72.158]) by spam004.ecc.u-tokyo.ac.jp (SpamBlock.pst 3.4.90.0) with ESMTP id for ; Thu, 6 Apr 2006 23:31:10 +0900 Date: Thu, 06 Apr 2006 23:31:10 +0900 Message-ID: From: Hiroharu Tamaru To: freebsd-acpi@FreeBSD.org User-Agent: User-Agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-IP: 157.82.72.158 X-FROM-DOMAIN: myn.rcast.u-tokyo.ac.jp X-FROM-EMAIL: tamaru@myn.rcast.u-tokyo.ac.jp Cc: Nate Lawson Subject: Is hw.pci.do_powerstate expected to be casually tuned? 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: Thu, 06 Apr 2006 14:31:14 -0000 Hello, # Nate, Warner, you are CCed since your names are on the commit log... I have a CASIO cassiopeia fiva (206VL) notebook. It is one of the very rare (isn't it?) machines that support S4BIOS. It hibernates (S4) very well on 5.4-RELEASE, but I found out that 6.1-BETA4 can no longer hibernate. I did a binary search and confirmed it to be due to this commit: $FreeBSD: src/sys/dev/acpica/acpi.c,v 1.194 2004/12/02 08:07:12 njl Exp $ $FreeBSD: src/sys/dev/pci/pci.c,v 1.269 2004/12/02 08:07:12 njl Exp $ As its log suggest, sysctl hw.pci.do_powerstate=0 solved the issue successfully, and now I can hibernate on post-(1.194,1.269) kernel (will try 6.1-BETA4 again shortly too). Thank you for providing a good knob. Now the question: Is this sysctl expected to be tuned by a normal user? or should something be added to the sources, so that the kernel can automatically recognize it? If latter, what should I provide you to make it happen? # I ask because I see a debug.* knob as well, and it says in the # source that it should go away when the tests are done. Watching this machine preparing for hibernation, I think the problem here is that the HDD is powered off by the kernel, and thus the BIOS, when passed control, is unabled to write its data to the disk, and locks up. A complete cold power cycle is necessary to recover from this lockup. Thanks. -- Hiroharu Tamaru