<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body style="">
<div>
My first doubt is why ARM is having PCI bus... ? I think it has AMBA Bus ...
</div>
<div>
 
</div>
<div>
<br/>On June 1, 2014 at 11:40 PM AYAN KUMAR HALDER <ayankumarh@gmail.com> wrote:
<br/>> Hi,
<br/>>
<br/>> I am working with Linux hibernation framework on ARM based custom SOC
<br/>> which has SATA controller on PCI bus.
<br/>>
<br/>> I see that when the system resumes from hibernation, the SATA
<br/>> controller(drivers/ata/ahci.c) on PCI bus fails to come up. My
<br/>> understanding is that the hibernation calls 'freeze' of all devices.
<br/>> The SATA controller receives the power state event as PM_EVENT_FREEZE
<br/>> ( ie pdev->dev.power.power_state.event = PM_EVENT_FREEZE). Thus when
<br/>> system restores the hibernation image, ahci_pci_device_resume gets
<br/>> called in which ahci_pci_reset_controller/ahci_pci_init_controller
<br/>> does not get called. So SATA controller fails to come up.
<br/>>
<br/>> Please let me know if my understanding is correct or not. If so, then
<br/>> in ahci_pci_device_resume() should we change the following
<br/>> if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND)
<br/>> to
<br/>> if (pdev->dev.power.power_state.event == PM_EVENT_FREEZE)
<br/>>
<br/>> In hibernation , as we power down the system, so I understand that the
<br/>> sata controller need to be reset and re-initialized for proper
<br/>> functioning.
<br/>>
<br/>> Regards,
<br/>> Ayan Kumar Halder
<br/>>
</div>
<div>
Regards,
</div>
<div>
Varka Bhadram
</div>
<div>
 
</div>
<br />-------------------------------------------------------------------------------------------------------------------------------
<br />[ C-DAC is on Social-Media too. Kindly follow us at:
<br />Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
<br />
<br />This e-mail is for the sole use of the intended recipient(s) and may
<br />contain confidential and privileged information. If you are not the
<br />intended recipient, please contact the sender by reply e-mail and destroy
<br />all copies and the original message. Any unauthorized review, use,
<br />disclosure, dissemination, forwarding, printing or copying of this email
<br />is strictly prohibited and appropriate legal action will be taken.
<br />-------------------------------------------------------------------------------------------------------------------------------
</body></html>