[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.0812070835040.3425@nehalem.linux-foundation.org>
Date: Sun, 7 Dec 2008 08:44:00 -0800 (PST)
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "Rafael J. Wysocki" <rjw@...k.pl>
cc: Greg KH <greg@...ah.com>, Ingo Molnar <mingo@...e.hu>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Len Brown <lenb@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
Takashi Iwai <tiwai@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>,
pm list <linux-pm@...ts.linux-foundation.org>
Subject: Re: [PATCH 1/3] PCI: Rework default handling of suspend and resume
On Sun, 7 Dec 2008, Rafael J. Wysocki wrote:
>
> If there is no objection from Jesse and if you don't mind, I'll prepare a
> version of the $subject patch on top of the patch in your tree and send it to
> you.
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists