[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ide
Subject:    Re: SATA device powerdown
From:       Robert Hancock <hancockrwd () gmail ! com>
Date:       2010-07-30 18:12:44
Message-ID: 4C53161C.6050308 () gmail ! com
[Download RAW message or body]

On 07/30/2010 06:59 AM, Richard wrote:
> Hi All,
>
> I have a question relating to the ATA drives and a SATA drive powerdown.
> Currently you can issue a HDD Spindown/Sleep command to a drive which
> will result in it going to sleep, but I have a hardware platform that
> requires the drive to be Powered-Off completely. (its in an extreme
> energy saving mode)
>
> Normal modes the HDD can sleep, and when any IO happens the disk wakes..
>
> I can get the HDD to power-off when it enters deep-sleep (SMART register
> reading) but how can I get the disk to re-powered before next access is
> needed. Currently the /dev/sdx deregisters when the SATA bus is
> disconnected and re-registers when the device is avaliable.
>
> Is there a method to keep the open files alive when the HDD is powered
> off and execute a custom hardware relay switch to power the HDD back up
> and continue working with the files that were open previous to the sleep?
>
> Is this at all possible?

At present I don't think this is possible. I suppose one thing you could 
do would be to hack whatever ATA driver the system was using to ignore 
all hotplug notifications, but then you'd have to make other changes to 
wake up the drive again when an access was required.

If you really need to retain apparent access to the disk when it's 
switched off, I kind of question whether the power saving from this is 
worthwhile compared to just turning on aggressive SATA link power 
management and putting the disk in standby mode..
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic