Linux Hibernation with sata driver
Varka Bhadram
varkab at cdac.in
Mon Jun 2 03:58:12 EDT 2014
My first doubt is why ARM is having PCI bus... ? I think it has AMBA Bus ...
On June 1, 2014 at 11:40 PM AYAN KUMAR HALDER <ayankumarh at gmail.com> wrote:
> Hi,
>
> I am working with Linux hibernation framework on ARM based custom SOC
> which has SATA controller on PCI bus.
>
> I see that when the system resumes from hibernation, the SATA
> controller(drivers/ata/ahci.c) on PCI bus fails to come up. My
> understanding is that the hibernation calls 'freeze' of all devices.
> The SATA controller receives the power state event as PM_EVENT_FREEZE
> ( ie pdev->dev.power.power_state.event = PM_EVENT_FREEZE). Thus when
> system restores the hibernation image, ahci_pci_device_resume gets
> called in which ahci_pci_reset_controller/ahci_pci_init_controller
> does not get called. So SATA controller fails to come up.
>
> Please let me know if my understanding is correct or not. If so, then
> in ahci_pci_device_resume() should we change the following
> if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND)
> to
> if (pdev->dev.power.power_state.event == PM_EVENT_FREEZE)
>
> In hibernation , as we power down the system, so I understand that the
> sata controller need to be reset and re-initialized for proper
> functioning.
>
> Regards,
> Ayan Kumar Halder
>
Regards,
Varka Bhadram
-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/c087956d/attachment.html
More information about the Kernelnewbies
mailing list