From owner-svn-src-all@FreeBSD.ORG Sat Oct 24 23:14:18 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 738FD106566C; Sat, 24 Oct 2009 23:14:18 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4DA638FC15; Sat, 24 Oct 2009 23:14:18 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id DAA2046B03; Sat, 24 Oct 2009 19:14:17 -0400 (EDT) Date: Sun, 25 Oct 2009 00:14:17 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Marcel Moolenaar In-Reply-To: <200910242028.n9OKSg2u010197@svn.freebsd.org> Message-ID: References: <200910242028.n9OKSg2u010197@svn.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r198451 - head/sys/ia64/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Oct 2009 23:14:18 -0000 On Sat, 24 Oct 2009, Marcel Moolenaar wrote: > Log: > A 32KB kernel stack is not quite enough. The new USB stack is a bit > more stack hungry as compared to the old one that my RX2660 gets > a machine check and spontaneously reboots at the time the USB DVD > drive is found and attached to CAM as a mass storage device. This > doesn't happen always, but definitely varies per kernel build. > Likewise when using a 128-byte printf buffer. The additional 128 > bytes that printf needs seems to be enough to have the memory stack > and register stack collide and causing a machine check. I recently noticed, somewhat to my surprise, that BPF drops a 512-byte buffer on the stack while running filters... Robert > > Thus: Bump KSTACK_PAGES from 4 to 5. > > Modified: > head/sys/ia64/include/param.h > > Modified: head/sys/ia64/include/param.h > ============================================================================== > --- head/sys/ia64/include/param.h Sat Oct 24 20:07:17 2009 (r198450) > +++ head/sys/ia64/include/param.h Sat Oct 24 20:28:42 2009 (r198451) > @@ -92,7 +92,7 @@ > #define MAXPAGESIZES 1 /* maximum number of supported page sizes */ > > #ifndef KSTACK_PAGES > -#define KSTACK_PAGES 4 /* pages of kernel stack */ > +#define KSTACK_PAGES 5 /* pages of kernel stack */ > #endif > #define KSTACK_GUARD_PAGES 0 /* pages of kstack guard; 0 disables */ > >