Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752076AbXBWA0M (ORCPT ); Thu, 22 Feb 2007 19:26:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752081AbXBWA0L (ORCPT ); Thu, 22 Feb 2007 19:26:11 -0500 Received: from shawidc-mo1.cg.shawcable.net ([24.71.223.10]:53405 "EHLO pd2mo3so.prod.shaw.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbXBWA0K (ORCPT ); Thu, 22 Feb 2007 19:26:10 -0500 Date: Thu, 22 Feb 2007 18:25:15 -0600 From: Robert Hancock Subject: Re: Weird hard disk noise on shutdown (bug #7674) In-reply-to: To: Rolf Offermanns Cc: linux-kernel@vger.kernel.org Message-id: <45DE346B.2070301@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1851 Lines: 44 Rolf Offermanns wrote: > I hear the same strange noise on poweroff (2.6.20 vanilla). This is what I > get on my system with ATA_DEBUG and ATA_VERBOSE_DEBUG both defined. The > system will *not* poweroff with "halt -f" so there was no noise! > > md: stopping all md devices. > Synchronizing SCSI cache for disk sda: > ata_scsi_dump_cdb: CDB (1:0,0,0) 35 00 00 00 00 00 00 00 00 > ata_scsi_translate: ENTER > ata1: ata_dev_select: ENTER, ata1: device 0, wait 1 > ata_tf_load_pio: device 0xA0 > ata_exec_command_pio: ata1: cmd 0xE7 > ata_scsi_translate: EXIT > ata_host_intr: ata1: protocol 1 task_state 2 > ata_hsm_move: ata1: protocol 1 task_state 2 (dev_stat 0x50) > ata_hsm_move: ata1: dev 0 command complete, drv_stat 0x50 > System halted. > > If I do a sysrq-o right after this, the above message repeate once more and > the system turns off w/o the disturbing noise. > > For the next messages, I booted the system completely (no init=/bin/sh) and > did a "poweroff" at the console prompt after the boot was completed. This > time the noise was there. From these traces you can clearly see that no STANDBY IMMEDIATE (command code 0xE0) was issued before the power-off, which is what would prevent this problem. If you wait long enough after halting before you power down, you may not get the noise, since many laptop drives unload the heads after a fairly short period of inactivity, and so the heads are already unloaded when the power is shut off. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/