Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751303Ab3HTMOK (ORCPT ); Tue, 20 Aug 2013 08:14:10 -0400 Received: from hydra.sisk.pl ([212.160.235.94]:51313 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918Ab3HTMOI (ORCPT ); Tue, 20 Aug 2013 08:14:08 -0400 From: "Rafael J. Wysocki" To: Mika Westerberg Cc: ACPI Devel Maling List , LKML , Linux PCI , Linux PM list , Bjorn Helgaas , Toshi Kani Subject: Re: [PATCH] ACPI / PM: Hold acpi_scan_lock over system PM transitions Date: Tue, 20 Aug 2013 14:24:42 +0200 Message-ID: <4492949.n2Wo36SnUY@vostro.rjw.lan> User-Agent: KMail/4.9.5 (Linux/3.11.0-rc5+; KDE/4.9.5; x86_64; ; ) In-Reply-To: <20130820110833.GZ4898@intel.com> References: <2852781.TfChGuuEkJ@vostro.rjw.lan> <20130820110833.GZ4898@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 28 On Tuesday, August 20, 2013 02:08:33 PM Mika Westerberg wrote: > On Tue, Aug 20, 2013 at 01:47:57AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Bad things happen if ACPI hotplug events are handled during system > > PM transitions, especially if devices are removed as a result. > > To prevent those bad things from happening, acquire acpi_scan_lock > > when a transition is started and release it when that transition > > is complete or has been aborted. > > > > This fixes resume lockup on my test-bed Acer Aspire S5 that happens > > when Thunderbolt devices are disconnected from the machine while > > suspended. > > > > Signed-off-by: Rafael J. Wysocki > > I tested this on Intel DZ77RE-75K and after the patch is applied the > machine didn't hang anymore once resuming. > > Feel free to add my tested-by. I will, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/