On Friday 30 January 2009, Rafael J. Wysocki wrote: > On Friday 30 January 2009, Eric Sesterhenn wrote: > > * Rafael J. Wysocki (rjw@xxxxxxx) wrote: > > > On Thursday 29 January 2009, Eric Sesterhenn wrote: > > > > hi, > > > > > > > > on this box standby worked with 2.6.28, but is broken with 2.6.29-rc3. > > > > > > > > Dmesg of startup > > > > http://www.cccmz.de/~snakebyte/200.log > > > > .config > > > > http://www.cccmz.de/~snakebyte/config_200 > > > > > > > > When testing the devices > > > > > > > > root@computer-desktop:/sys/power# echo devices > pm_test > > > > > > What happens if you replace 'devices' with 'core' ? > > > > no change, it hangs after matroxfb > > > > root@computer-desktop:/sys/power# echo core > pm_test > > root@computer-desktop:/sys/power# echo standby > state > > > [--snip--] > > > > > If the same, what happens without the matroxfb driver? > > > > It gets a bit further, suspend seems to complete, > > but hangs during resume > > Please check if the appended patch helps. Sorry, wrong version. Please try this one instead. Thanks, Rafael --- drivers/pci/pci-driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6/drivers/pci/pci-driver.c =================================================================== --- linux-2.6.orig/drivers/pci/pci-driver.c +++ linux-2.6/drivers/pci/pci-driver.c @@ -443,11 +443,11 @@ static void pci_pm_default_suspend_gener pci_save_state(pci_dev); } -static void pci_pm_default_suspend(struct pci_dev *pci_dev) +static void pci_pm_default_suspend(struct pci_dev *pci_dev, bool prepare) { pci_pm_default_suspend_generic(pci_dev); - if (!pci_is_bridge(pci_dev)) + if (prepare && !pci_is_bridge(pci_dev)) pci_prepare_to_sleep(pci_dev); pci_fixup_device(pci_fixup_suspend, pci_dev); @@ -507,7 +507,7 @@ static int pci_pm_suspend(struct device } if (!error) - pci_pm_default_suspend(pci_dev); + pci_pm_default_suspend(pci_dev, drv && drv->pm); return error; } @@ -666,7 +666,7 @@ static int pci_pm_poweroff(struct device } if (!error) - pci_pm_default_suspend(pci_dev); + pci_pm_default_suspend(pci_dev, drv && drv->pm); return error; } -- To unsubscribe from this list: send the line "unsubscribe kernel-testers" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html