Subject: port-i386/21531: ACPI enabled kernel enforces stressful shutdown of harddrive
To: None <gnats-bugs@gnats.netbsd.org>
From: DHOYASHIKI Shinichi <clare@znet.or.jp>
List: netbsd-bugs
Date: 05/11/2003 19:38:27
>Number: 21531
>Category: port-i386
>Synopsis: ACPI enabled kernel enforces stressful shutdown of harddrive
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 11 10:57:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: DHOYASHIKI Shinichi
>Release: NetBSD 1.6R as of 2003-05-05
>Organization:
at home
>Environment:
System: NetBSD minako 1.6R NetBSD 1.6R (MINAKO3) #4: Mon May 5 15:41:24 JST 2003 clare@minako:/cvs/tnf-work/sys/arch/i386/compile/MINAKO3 i386
Architecture: i386
Machine: i386
>Description:
ACPI power-off handling of NetBSD/i386 kernel does not handle
harddrive gracefully, this may enforce harddrive emergency shutdown
on every pewer off, and may result harddrive's lifetime reduction.
for more information about harddrive handling issues, please
see harddrive's specifications. One of them can be obtained from
following URL:
http://ssddom01.hgst.com/tech/techlib.nsf/techdocs/
85256AB8006A31E587256A770052F2E4/$file/t60gh40gn_sp30.pdf
The document requires following sequence when power off:
1. Issue Standby Immediate or sleep command
2. Wait until COMMAND COMPLETE STATUS is returned.
(It may take up to 350 ms in a typical case.)
3. Terminate power to drive
>How-To-Repeat:
1. build and boot ACPI enabled kernel
2. perform shutdown -p now
>Fix:
To workaround, disable ACPI and depend on APM BIOS. APM BIOS may issue
required command to protect harddrive from emergency shutdown.
>Release-Note:
>Audit-Trail:
>Unformatted: