mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 16:06:42 +07:00
48b16180d0
If we do nothing in suspend/resume, some platform PCIe ip-block can't guarantee the link back to L0 state from sleep, then, when we read the EP device will hang. Only we send pme turnoff message in pci controller suspend, and send pme exit message in resume, the link state will be normal. When we send pme turnoff message in pci controller suspend, the links will into l2/l3 ready, then, host cannot communicate with ep device, but pci-driver will call back EP device to save them state. So we need to change platform_driver->suspend/resume to syscore->suspend/resume. So the new suspend/resume implementation, send pme turnoff message in suspend, and send pme exit message in resume. And add a PME handler, to response PME & message interrupt. Change platform_driver->suspend/resume to syscore->suspend/resume. pci-driver will call back EP device, to save EP state in pci_pm_suspend_noirq, so we need to keep the link, until pci_pm_suspend_noirq finish. Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com> |
||
---|---|---|
.. | ||
bsc913x_rdb.c | ||
c293pcie.c | ||
common.c | ||
corenet_generic.c | ||
ge_imp3a.c | ||
Kconfig | ||
ksi8560.c | ||
Makefile | ||
mpc85xx_ads.c | ||
mpc85xx_cds.c | ||
mpc85xx_ds.c | ||
mpc85xx_mds.c | ||
mpc85xx_rdb.c | ||
mpc85xx.h | ||
mpc8536_ds.c | ||
p1010rdb.c | ||
p1022_ds.c | ||
p1022_rdk.c | ||
p1023_rds.c | ||
ppa8548.c | ||
qemu_e500.c | ||
sbc8548.c | ||
sgy_cts1000.c | ||
smp.c | ||
smp.h | ||
socrates_fpga_pic.c | ||
socrates_fpga_pic.h | ||
socrates.c | ||
stx_gp3.c | ||
tqm85xx.c | ||
twr_p102x.c | ||
xes_mpc85xx.c |