From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 031F0DE54E for ; Thu, 24 Apr 2008 23:00:04 +1000 (EST) Message-Id: <43F83C6F-D84B-4626-8974-9BCEDF03194E@kernel.crashing.org> From: Kumar Gala To: benh@kernel.crashing.org In-Reply-To: <1209021537.9060.156.camel@pasglop> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: [RFC][WIP][PATCH] Add IRQSTACKS to ppc32 Date: Thu, 24 Apr 2008 07:59:55 -0500 References: <1209021537.9060.156.camel@pasglop> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Apr 24, 2008, at 2:18 AM, Benjamin Herrenschmidt wrote: > > On Thu, 2008-04-24 at 00:37 -0500, Kumar Gala wrote: >> + /* >> + * interrupt stacks must be under 256MB, we cannot afford to >> take >> + * SLB misses on them. >> + */ >> + for_each_possible_cpu(i) { >> + softirq_ctx[i] = (struct thread_info *) >> + __va(lmb_alloc_base(THREAD_SIZE, >> + THREAD_SIZE, >> 0x10000000)); >> + hardirq_ctx[i] = (struct thread_info *) >> + __va(lmb_alloc_base(THREAD_SIZE, >> + THREAD_SIZE, >> 0x10000000)); >> + } >> + > > The comment is a bit bogus :-) (about SLB misses). lowmem is your > limit > I think. Also, why not share the code with ppc64 ? I'm going to change it to be just lmb_alloc() so it will be difficult to share with ppc64 (other than w/an ifdef). - k