https://github.com/torvalds/linux
Revision 3e26c5feed2add218046ecf91bab3cfa9bf762a6 authored by Rafael J. Wysocki on 13 June 2019, 21:59:45 UTC, committed by Rafael J. Wysocki on 13 June 2019, 22:03:27 UTC
Commit d491f2b75237 ("PCI: PM: Avoid possible suspend-to-idle issue") attempted to avoid a problem with devices whose drivers want them to stay in D0 over suspend-to-idle and resume, but it did not go as far as it should with that. Namely, first of all, the power state of a PCI bridge with a downstream device in D0 must be D0 (based on the PCI PM spec r1.2, sec 6, table 6-1, if the bridge is not in D0, there can be no PCI transactions on its secondary bus), but that is not actively enforced during system-wide PM transitions, so use the skip_bus_pm flag introduced by commit d491f2b75237 for that. Second, the configuration of devices left in D0 (whatever the reason) during suspend-to-idle need not be changed and attempting to put them into D0 again by force is pointless, so explicitly avoid doing that. Fixes: d491f2b75237 ("PCI: PM: Avoid possible suspend-to-idle issue") Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
1 parent d1fdb6d
Tip revision: 3e26c5feed2add218046ecf91bab3cfa9bf762a6 authored by Rafael J. Wysocki on 13 June 2019, 21:59:45 UTC
PCI: PM: Skip devices in D0 for suspend-to-idle
PCI: PM: Skip devices in D0 for suspend-to-idle
Tip revision: 3e26c5f
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 15.0 KB |
Makefile | -rw-r--r-- | 2.9 KB |
altera_edac.c | -rw-r--r-- | 60.7 KB |
altera_edac.h | -rw-r--r-- | 12.1 KB |
amd64_edac.c | -rw-r--r-- | 90.7 KB |
amd64_edac.h | -rw-r--r-- | 14.2 KB |
amd64_edac_dbg.c | -rw-r--r-- | 1.5 KB |
amd64_edac_inj.c | -rw-r--r-- | 6.2 KB |
amd76x_edac.c | -rw-r--r-- | 9.3 KB |
amd8111_edac.c | -rw-r--r-- | 15.9 KB |
amd8111_edac.h | -rw-r--r-- | 3.6 KB |
amd8131_edac.c | -rw-r--r-- | 10.1 KB |
amd8131_edac.h | -rw-r--r-- | 3.1 KB |
aspeed_edac.c | -rw-r--r-- | 10.2 KB |
cell_edac.c | -rw-r--r-- | 7.7 KB |
cpc925_edac.c | -rw-r--r-- | 30.6 KB |
debugfs.c | -rw-r--r-- | 3.7 KB |
e752x_edac.c | -rw-r--r-- | 40.7 KB |
e7xxx_edac.c | -rw-r--r-- | 16.2 KB |
edac_device.c | -rw-r--r-- | 17.8 KB |
edac_device.h | -rw-r--r-- | 9.1 KB |
edac_device_sysfs.c | -rw-r--r-- | 23.2 KB |
edac_mc.c | -rw-r--r-- | 31.2 KB |
edac_mc.h | -rw-r--r-- | 7.9 KB |
edac_mc_sysfs.c | -rw-r--r-- | 26.8 KB |
edac_module.c | -rw-r--r-- | 3.3 KB |
edac_module.h | -rw-r--r-- | 4.6 KB |
edac_pci.c | -rw-r--r-- | 7.6 KB |
edac_pci.h | -rw-r--r-- | 6.8 KB |
edac_pci_sysfs.c | -rw-r--r-- | 18.9 KB |
fsl_ddr_edac.c | -rw-r--r-- | 15.5 KB |
fsl_ddr_edac.h | -rw-r--r-- | 2.3 KB |
ghes_edac.c | -rw-r--r-- | 14.1 KB |
highbank_l2_edac.c | -rw-r--r-- | 3.4 KB |
highbank_mc_edac.c | -rw-r--r-- | 6.9 KB |
i10nm_base.c | -rw-r--r-- | 7.3 KB |
i3000_edac.c | -rw-r--r-- | 13.8 KB |
i3200_edac.c | -rw-r--r-- | 12.8 KB |
i5000_edac.c | -rw-r--r-- | 42.2 KB |
i5100_edac.c | -rw-r--r-- | 30.2 KB |
i5400_edac.c | -rw-r--r-- | 40.0 KB |
i7300_edac.c | -rw-r--r-- | 35.2 KB |
i7core_edac.c | -rw-r--r-- | 61.4 KB |
i82443bxgx_edac.c | -rw-r--r-- | 13.6 KB |
i82860_edac.c | -rw-r--r-- | 9.1 KB |
i82875p_edac.c | -rw-r--r-- | 14.6 KB |
i82975x_edac.c | -rw-r--r-- | 18.1 KB |
ie31200_edac.c | -rw-r--r-- | 16.5 KB |
layerscape_edac.c | -rw-r--r-- | 1.6 KB |
mce_amd.c | -rw-r--r-- | 28.1 KB |
mce_amd.h | -rw-r--r-- | 1.7 KB |
mpc85xx_edac.c | -rw-r--r-- | 20.1 KB |
mpc85xx_edac.h | -rw-r--r-- | 3.0 KB |
mv64x60_edac.c | -rw-r--r-- | 21.7 KB |
mv64x60_edac.h | -rw-r--r-- | 3.2 KB |
octeon_edac-l2c.c | -rw-r--r-- | 5.3 KB |
octeon_edac-lmc.c | -rw-r--r-- | 8.5 KB |
octeon_edac-pc.c | -rw-r--r-- | 3.5 KB |
octeon_edac-pci.c | -rw-r--r-- | 2.7 KB |
pasemi_edac.c | -rw-r--r-- | 8.0 KB |
pnd2_edac.c | -rw-r--r-- | 42.7 KB |
pnd2_edac.h | -rw-r--r-- | 5.6 KB |
ppc4xx_edac.c | -rw-r--r-- | 39.1 KB |
ppc4xx_edac.h | -rw-r--r-- | 7.0 KB |
qcom_edac.c | -rw-r--r-- | 10.9 KB |
r82600_edac.c | -rw-r--r-- | 11.7 KB |
sb_edac.c | -rw-r--r-- | 94.1 KB |
skx_base.c | -rw-r--r-- | 17.8 KB |
skx_common.c | -rw-r--r-- | 15.8 KB |
skx_common.h | -rw-r--r-- | 3.4 KB |
synopsys_edac.c | -rw-r--r-- | 37.7 KB |
thunderx_edac.c | -rw-r--r-- | 52.8 KB |
ti_edac.c | -rw-r--r-- | 8.6 KB |
wq.c | -rw-r--r-- | 823 bytes |
x38_edac.c | -rw-r--r-- | 12.0 KB |
xgene_edac.c | -rw-r--r-- | 59.1 KB |
Computing file changes ...