From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH] ACPI / PM: Hold acpi_scan_lock over system PM transitions Date: Tue, 20 Aug 2013 14:08:33 +0300 Message-ID: <20130820110833.GZ4898@intel.com> References: <2852781.TfChGuuEkJ@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <2852781.TfChGuuEkJ@vostro.rjw.lan> Sender: linux-kernel-owner@vger.kernel.org To: "Rafael J. Wysocki" Cc: ACPI Devel Maling List , LKML , Linux PCI , Linux PM list , Bjorn Helgaas , Toshi Kani List-Id: linux-pm@vger.kernel.org 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.