From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755033AbZBZJvc (ORCPT ); Thu, 26 Feb 2009 04:51:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751632AbZBZJvY (ORCPT ); Thu, 26 Feb 2009 04:51:24 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:33325 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbZBZJvX convert rfc822-to-8bit (ORCPT ); Thu, 26 Feb 2009 04:51:23 -0500 From: "Rafael J. Wysocki" To: Arve =?iso-8859-1?q?Hj=F8nnev=E5g?= Subject: Re: [RFC][PATCH 2/2] PM: Rework handling of interrupts during suspend-resume Date: Thu, 26 Feb 2009 10:50:49 +0100 User-Agent: KMail/1.11.0 (Linux/2.6.29-rc5-tst; KDE/4.2.0; x86_64; ; ) Cc: Ingo Molnar , Linus Torvalds , "Eric W. Biederman" , LKML , Benjamin Herrenschmidt , Jeremy Fitzhardinge , pm list , Len Brown , Jesse Barnes , Thomas Gleixner References: <200902221837.49396.rjw@sisk.pl> <200902250029.16107.rjw@sisk.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200902261050.50531.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 26 February 2009, Arve Hjønnevåg wrote: > On Tue, Feb 24, 2009 at 3:29 PM, Rafael J. Wysocki wrote: > > BTW, appended is the current (3rd) version of the $subject patch with some > > of your comments taken into account. In particular, I did the following: > > - moved [suspend|resume]_device_irqs() to a separate file (pm.c) > > - fixed interrupt.h so that their headers are at a better place > > - made enable_irq() clear IRQ_SUSPENDED > > - made device_power_down() and device_power_up() call > > suspend_device_irqs() and resume_device_irqs(), respectively, which > > simplified the callers quite a bit (it changed the Xen code ordering, though, > > but I _think_ it still should work). > > Do you plan to fix edge triggered wakeup interrupts? It still looks > like edge triggered wakeup interrupts that occur between > suspend_device_irqs and local_irq_disable will not cause a wakeup. In the current version of the patch the interrupts that have IRQ_WAKEUP set in status are not disabled. Is this not enough? Rafael