From: Ian Campbell Subject: Re: Request fairly urgent reversion of c/s 8a3c4acc9907cfec9aae9f1bc251fbf50af6828e Date: Tue, 27 Aug 2013 15:44:50 +0100 Message-ID: <1377614690.29147.51.camel@kazak.uk.xensource.com> References: <521CA36A.4060204@citrix.com> <521CC2DA02000078000EEC1C@nat28.tlf.novell.com> <521CB25A.3000305@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VEKVq-0000zR-S4 for xen-devel@lists.xenproject.org; Tue, 27 Aug 2013 14:44:55 +0000 In-Reply-To: <521CB25A.3000305@citrix.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: Andrew Cooper Cc: xen-devel , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Tue, 2013-08-27 at 15:06 +0100, Andrew Cooper wrote: > On 27/08/13 14:16, Jan Beulich wrote: > >>>> On 27.08.13 at 15:02, Andrew Cooper wrote: > >> Changeset 8a3c4acc9907cfec9aae9f1bc251fbf50af6828e is my "Clean stacks > >> in debug builds patch" > >> > >> I applied the upstream version to XenServer, and resulted in some > >> spectacular fails to boot. > >> > >> Curiously, the buggy V1 "$(STACK_SIZE >> 8) " works fine on all > >> hardware, but the apparently correct "$(STACK_SIZE / 8)" causes complete > >> deadlock on AMD boxes on AP bringup, and causes Intel boxes to only boot > >> a single pcpu. > > That original version was broken in the assembly version only iirc, > > which should not get used in AP bring-up. Hence I'm puzzled. > > Me too. Literally changing the "$(STACK_SIZE / 8)" to "$(STACK_SIZE >> > 8)" is sufficient to prevent the problem. "/ 8" is not the same as ">> 8". ">> 8" is "/ 256". ">> 3" is "/ 8". (I'm lacking the context to know if this is where you went wrong though) Ian.