From: "Jan Beulich" Subject: Re: ACPI shutdown unreliable with win7? Date: Fri, 29 May 2015 16:56:14 +0100 Message-ID: <5568A83E020000780007F339@mail.emea.novell.com> References: <1432284841.10746.136.camel@citrix.com> <555EEFD8.8020306@citrix.com> <1432285699.10746.147.camel@citrix.com> <1432904091.15036.27.camel@citrix.com> <55688018020000780007F06C@mail.emea.novell.com> <1432905214.15036.31.camel@citrix.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02591CA56@AMSPEX01CL01.citrite.net> <1432910144.15036.53.camel@citrix.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02591CE24@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02591CE24@AMSPEX01CL01.citrite.net> 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: Ian Campbell , Paul Durrant Cc: Andrew Cooper , xen-devel , Ian Jackson List-Id: xen-devel@lists.xenproject.org >>> On 29.05.15 at 17:34, wrote: >> From: Paul Durrant >> Sent: 29 May 2015 16:07 >> No, you'd see something. Perhaps our ACPI lid/power switch code is just >> buggy then? > > I already said this to Ian, but for the record... From my reading of the > ACPI spec (v 5.0, page 23 glossary entry) the SCI is an active low, > shareable, level-sensitive interrupt, but our code (pmtimer.c:pmt_update_sci) > seems to treat it as active high. I'll have a look at the QEMU SCI code as > reference, but maybe it is just broken. While ACPI may prefer it to be that way, I don't think this is a requirement (both physical systems I checked just now have it level-high), and in any case subject to an interrupt source override in MADT (which hvmloader doesn't produce afaict). Jan