From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Greaves Subject: Re: 2.6.22-rc3 hibernate(?) disables SMART on ide Date: Sat, 02 Jun 2007 22:53:14 +0100 Message-ID: <4661E6CA.1080203@dgreaves.com> References: <46609290.5030701@dgreaves.com> <46613C53.8010205@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from s2.ukfsn.org ([217.158.120.143]:41823 "EHLO mail.ukfsn.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759065AbXFBVxS (ORCPT ); Sat, 2 Jun 2007 17:53:18 -0400 In-Reply-To: <46613C53.8010205@gmail.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Tejun Heo Cc: "'linux-kernel@vger.kernel.org'" , IDE Linux , ballen@gravity.phys.uwm.edu Tejun Heo wrote: > David Greaves wrote: >> I have 2 ide disks. If I enable SMART and hibernate/suspend2disk, SMART is >> disabled when I resume. >> >> Same as in 2.6.21.1 > > According to the ATA standard, the device (drive) itself is responsible > for preserving SMART enabled status over power cycles. It seems your > drive doesn't wanna do that. I don't think mangling with SMART setup in > the kernel is wise thing to do. Bruce, any ideas? Maybe hook smartd > such that it gets suspend/resume events? Sorry, FYI, I made the same mistake as when I reported the wol problem - I was booting 2.6.21.1. I am having problems with 2.6.22-rc3 but when it does suspend/resume I can confirm that the problem is still there (of course). However your comments still stand. One unpleasant side effect is that I get hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hda: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hda: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 ... and hdb: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hdb: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 hdb: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hdb: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 ... when the system comes back (induced from smartd I guess) until I do a: smartctl -son David