From owner-freebsd-mips@FreeBSD.ORG Tue Feb 18 20:25:06 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E7C28BC; Tue, 18 Feb 2014 20:25:06 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 48E441102; Tue, 18 Feb 2014 20:25:06 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id c9so26148861qcz.41 for ; Tue, 18 Feb 2014 12:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=hWRtyt0hFOI13jbLsgf4di6vyqUTgcnzb39pG5ZPUFs=; b=aQk9fkcZ45rGjsRXgh9xwTzsEDkLm0ppBlbB28LTOQDW72vyVBHAqdWg3HThm9h2ut jGhDo6DgxewkSQS5EJ2wI/RCaELxh60EzZQmOsrsMCeSGX9RmtYlS8r39VC1OpbqawCP 2OpTAx9cMNCW3nlZPDFTm8PP1nlfs2okEkmh/HzduSQSVOS5aUoysOqzH0dOkyntBhFW H36rmMh0QTzK+8Cbxh0+0DyzGZQe4GZV2vjB2e7LhReVYnEKeAa36uVE4kpPIBrc2iNK AIjYqha9Y2qfwiAW5fCWX3FQ0gWiaDv6IC7GUGt/Vdi/GO/VnIJNAvPgus+aNzkilu0q FnBQ== MIME-Version: 1.0 X-Received: by 10.224.121.137 with SMTP id h9mr46408888qar.55.1392755105478; Tue, 18 Feb 2014 12:25:05 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.16.10 with HTTP; Tue, 18 Feb 2014 12:25:05 -0800 (PST) In-Reply-To: References: Date: Tue, 18 Feb 2014 12:25:05 -0800 X-Google-Sender-Auth: WgvZEqVsrCjQXDHYOu_502EoWAU Message-ID: Subject: Re: [RFC] 16K page size for kernel thread stack (patch) From: Adrian Chadd To: Stacey Son Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2014 20:25:06 -0000 Hi! On 18 February 2014 08:48, Stacey Son wrote: > Hi all: > > For mips64 the current size of 8K is not enough for the kernel thread stack. For more information, see: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=177876 > > The following patch increases the size of the kernel thread stack to 16K by using a single 16K sized page. See the patch at: > > http://people.freebsd.org/~sson/mips/kstack/kstack_large_page.diff Cool! Thanks for that. I'm glad to see the supported pagesize enumeration code going into the kernel. What do you think about committing just that bit to begin with? This looks like it touches shared code between mips32 and mips64. I'll spin this up on a mips24k and mips74k (mips32r2) board soon to see if it boots fine. Thanks! -adrian