3 Jan 2011 06:07
Re: Adding runtime PM support to sata_mv driver
Priyanka Gupta <ankaguptaca <at> gmail.com>
2011-01-03 05:07:43 GMT
2011-01-03 05:07:43 GMT
Hi, Thanks for your replies. I am ccing the ide list now (and re-pasting the ide patch). Let me try and elaborate on what I am trying to achieve: I would like to add a way to move the marvell sata controller to D3hot to save some power. For my short term use case, I am just interested in turning off the controllers which don't have any disks attached to them. For this, I guess I don't really need to do much as the pci pm subsystem takes care of suspending the controller. However, my goal is to keep the patch generic, i.e. be able to turn off any marvell controller. So, if there are disks attached to it, then I think that it should spin down all the disks and power off the controller. I would think that some userspace algorithm would decide if the sata_mv controller should be moved into auto mode (i.e runtime power managed). This might be done when there are no disks attached or the system doesn't expect to use the disks behind the controller. If there is intermittent disk usage, then the user space would not move it into auto and keep the state as ON. I am using the ata_pci_device_suspend for the runtime _suspend method also because AFAICT it does exactly what I am trying to achieve. This will try and do error handling (scsi_error_handler) which tries to resume a device if its in the suspending state causing both threads to be stuck. Rafael, you mentioned in one of your emails that the patch doesn't seem to be doing anything useful. How else do I suspend the sata_mv(Continue reading)
>
> It's already there...
Ouch, did I forget to convert it or was it a merge timing problem?
Anyways, sorry about that. Please go ahead and fix it.
RSS Feed