From: "Jan Beulich" Subject: Re: Powerdown problem on XEN | ACPI S5 Date: Wed, 14 Aug 2013 11:30:07 +0100 Message-ID: <520B784F02000078000EBD42@nat28.tlf.novell.com> References: <520B4465.6000600@web2web.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V9YLD-00023X-NU for xen-devel@lists.xenproject.org; Wed, 14 Aug 2013 10:30:11 +0000 In-Reply-To: <520B4465.6000600@web2web.at> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Atom2 Cc: xen-devel , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> On 14.08.13 at 10:48, Atom2 wrote: > spin_debug_disable(); > printk("After spin_debug_disable\n"); > > if ( (error = device_power_down()) ) > { > printk(XENLOG_ERR "Some devices failed to power down."); > system_state = SYS_STATE_resume; > goto done; > } > > printk("Before ACPI_FLUSH_CPU_CACHE\n"); > ACPI_FLUSH_CPU_CACHE(); > printk("After ACPI_FLUSH_CPU_CACHE\n"); > > The final few messages of the *new* output *after my amateur mods* on > the serial console now read as follows: > (XEN) Entering ACPI S5 state. > (XEN) After local_irq_save > (XEN) After spin_debug_disable > > There is neither a message reading > (XEN) Some devices failed to power down. > > nor one reading > (XEN) Before ACPI_FLUSH_CPU_CACHE Right, possibly because the first thing device_power_down() does is console_suspend(). Comment that out via your debug patch, and you might see more. It would be particularly interesting to know whether perhaps some of the ACPI registers live in memory space on that system - I already have a patch queued up (but not submitted yet) that fixes problems in that case. Jan