From: Sander Eikelenboom Subject: Re: [PATCH] x86/HPET: mask interrupt while changing affinity Date: Wed, 20 Mar 2013 15:44:19 +0100 Message-ID: <609324225.20130320154419@eikelenboom.it> References: <514704C202000078000C64A0@nat28.tlf.novell.com> <1701498510.20130319165336@eikelenboom.it> <514899B102000078000C6D74@nat28.tlf.novell.com> <135661008.20130319234805@eikelenboom.it> <51497FD902000078000C708A@nat28.tlf.novell.com> <704281841.20130320111312@eikelenboom.it> <5149A53802000078000C71DB@nat28.tlf.novell.com> <12710184253.20130320125556@eikelenboom.it> <5149CA0202000078000C72BD@nat28.tlf.novell.com> <203113426.20130320153555@eikelenboom.it> <5149D8B902000078000C735A@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5149D8B902000078000C735A@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , xen-devel List-Id: xen-devel@lists.xenproject.org Wednesday, March 20, 2013, 3:41:45 PM, you wrote: >>>> On 20.03.13 at 15:35, Sander Eikelenboom wrote: >> Wednesday, March 20, 2013, 2:38:58 PM, you wrote: >> >>>>>> On 20.03.13 at 12:55, Sander Eikelenboom wrote: >>>> Close but not entirely ;) >> >>> Close to not crashing, maybe, but whether this really helps with your >>> problem is still entirely unclear. >> >>>> See attached serial log >> >>> Okay, I wasn't even aware of that assertion in _spin_lock_irq(). >> >>> Keir, do you really think this is necessary? In the prior patch >>> version, handle_hpet_broadcast() had a flow like this >> >>> spin_lock_irqsave(); >>> ... >>> spin_unlock_irqrestore(); >>> ... >>> if ( next_event != STIME_MAX ) >>> { >>> spin_lock_irq(); >>> ... >>> spin_unlock_irqrestore(); >>> } >> >>> avoiding the saving of the flags in the second lock acquire. Said >>> assertion makes it impossible to do this. >> >>> Sander, in any case, attached a fixed version of the patch (I had >>> to guess which of the two spin_lock_irq() calls it was, as the log >>> was incomplete in that the stack trace got dropped, but am pretty >>> positive that it was the one in handle_hpet_broadcast()). >> >> Yes this one makes it boot again, thx ! > I'll put a Tested-by: on it then, if you don't mind. Sure I don't mind ! > Jan