Re: [PATCH 1/3] PCI: Rework default handling of suspend and resume

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Sunday, December 7, 2008 - 9:44 am

On Sun, 7 Dec 2008, Rafael J. Wysocki wrote:

Rafael: there's a bug in your 1/3 patch. 

It looks like "pci_save_state()" is currently unhappy with being called 
with interrupts disabled. Or at least "pci_save_pci[ex]_state()" state 
are. They both do a kzalloc(GFP_KERNEL).

So you should change that GFP_KERNEL into a GFP_ATOMIC. Or do something 
more complicated like pre-allocate them during early suspend, but just 
changing it to GFP_ATOMIC seems to be the trivial fix.

I'm not seeing any other issues with saving/restoring things with irq's 
disabled, but people should be on the lookout for details like this.

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Regression from 2.6.26: Hibernation (possibly suspend) ..., Rafael J. Wysocki, (Wed Dec 3, 12:40 am)
Re: Regression from 2.6.26: Hibernation (possibly suspend) ..., Rafael J. Wysocki, (Wed Dec 3, 12:52 am)
MSI changes in .28, Frans Pop, (Fri Dec 5, 1:53 am)
Re: MSI changes in .28, Yinghai Lu, (Fri Dec 5, 2:09 am)
Re: MSI changes in .28, Ingo Molnar, (Fri Dec 5, 5:20 am)
Re: MSI changes in .28, Eric Dumazet, (Fri Dec 5, 6:04 am)
Re: MSI changes in .28, H. Peter Anvin, (Fri Dec 5, 10:49 am)
Re: [PATCH 1/3] PCI: Rework default handling of suspend an ..., Rafael J. Wysocki, (Sat Dec 6, 10:22 am)
Re: [PATCH 2/3] PCI: Suspend and resume PCI Express ports ..., Rafael J. Wysocki, (Sat Dec 6, 10:25 am)
Re: [PATCH 1/3] PCI: Rework default handling of suspend an ..., Rafael J. Wysocki, (Sat Dec 6, 10:43 am)
Re: [PATCH 2/3] PCI: Suspend and resume PCI Express ports ..., Rafael J. Wysocki, (Sat Dec 6, 10:46 am)
Re: [PATCH 2/3] PCI: Suspend and resume PCI Express ports ..., Rafael J. Wysocki, (Sun Dec 7, 5:53 am)
Re: [PATCH 1/3] PCI: Rework default handling of suspend an ..., Linus Torvalds, (Sun Dec 7, 9:44 am)
Re: [PATCH 3/3] Sound (HDA Intel): Restore PCI configurati ..., Rafael J. Wysocki, (Thu Dec 11, 1:03 pm)
Re: [PATCH 3/3] Sound (HDA Intel): Restore PCI configurati ..., Rafael J. Wysocki, (Thu Dec 11, 1:38 pm)
Re: Regression from 2.6.26: Hibernation (possibly suspend) ..., Rafael J. Wysocki, (Thu Jan 29, 7:48 am)
Re: Regression from 2.6.26: Hibernation (possibly suspend) ..., Alexey Starikovskiy, (Thu Jan 29, 9:44 am)