From owner-svn-src-all@FreeBSD.ORG Mon Dec 23 04:42:13 2013 Return-Path: Delivered-To: svn-src-all@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 3ABA6875; Mon, 23 Dec 2013 04:42:13 +0000 (UTC) Received: from mail-qa0-x235.google.com (mail-qa0-x235.google.com [IPv6:2607:f8b0:400d:c00::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AFD3F170A; Mon, 23 Dec 2013 04:42:09 +0000 (UTC) Received: by mail-qa0-f53.google.com with SMTP id j5so4720564qaq.12 for ; Sun, 22 Dec 2013 20:42:08 -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=qKTcjsJISaY8S8Auhu+kVhq3p6Cf7SRNiFpcVO5hkco=; b=TWHQreh1wHEAJ7+Ae15sjflJDljotBvzaf1uJbqhUNmRZAAKo0E6WZEJ4s1hb9gfyy v1ocATZes4zwUbJRb/7zXYqa4hXtXb8u6D3NaWhwOVc27ExZeE53DVinxWrIBb65VLXd N4CURZVuA7PuhBW8CNh+jww1x7jhwKm/puhCD/fceeCBRF8dDvbAaVwjEo1LzTA95ec7 sVBDHH3BX8XIogT9ZcqmbM2zQNAhObNN0bKO8Wsv3mfuJaQ2P3BC03UxaeTJ8nPlfUjZ zpw7x511AxhA/Wyh4LyyqFbq4GtOaRT9JiJGCe+CNi5o0HR1H4zdwclSz2LKYr8TMsvD fesA== MIME-Version: 1.0 X-Received: by 10.224.16.204 with SMTP id p12mr38715469qaa.26.1387773728873; Sun, 22 Dec 2013 20:42:08 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.53.200 with HTTP; Sun, 22 Dec 2013 20:42:08 -0800 (PST) In-Reply-To: <201312222220.rBMMKI54055437@svn.freebsd.org> References: <201312222220.rBMMKI54055437@svn.freebsd.org> Date: Sun, 22 Dec 2013 20:42:08 -0800 X-Google-Sender-Auth: g9MuECEdNJ5GGAORmC-0S61Zr0k Message-ID: Subject: Re: svn commit: r259746 - releng/10.0/sys/arm/at91 From: Adrian Chadd To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-src-releng@freebsd.org, "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 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: Mon, 23 Dec 2013 04:42:13 -0000 Are there any compile and/or run time checks to ensure that memory regions aren't overlapping and to bitch if they are? -a On 22 December 2013 14:20, Warner Losh wrote: > Author: imp > Date: Sun Dec 22 22:20:17 2013 > New Revision: 259746 > URL: http://svnweb.freebsd.org/changeset/base/259746 > > Log: > Merge from stable/10 r259380: > > MFC r259038, r259039: > > Bump the maximum VM space from 3 * memory size to a fixed > 256MB. That's all we have room for since we map the hardware registers > starting at 0xd0000000. This allows my 64MB AT91SAM9G20 to boot again > after the unmmaped I/O changes were MFC'd at r251897. Other > subplatforms may need similar treatment. > > Although not strictly required to boot a 64MB board, bump > vm_max_virtual_address to be KERNVIRTADDR + 256MB. This allows some > future shock protection since the KVA requirements have gone up since > the unmapped changes have gone in, as well as preventing us from > overlapping with the hardware devices, which we map at 0xd0000000, > which we'd hit with anything more than 85MB... > > Approved by: re@ (gjb@) > > Modified: > releng/10.0/sys/arm/at91/at91_machdep.c > Directory Properties: > releng/10.0/ (props changed) > > Modified: releng/10.0/sys/arm/at91/at91_machdep.c > ============================================================================== > --- releng/10.0/sys/arm/at91/at91_machdep.c Sun Dec 22 21:53:08 2013 (r259745) > +++ releng/10.0/sys/arm/at91/at91_machdep.c Sun Dec 22 22:20:17 2013 (r259746) > @@ -631,7 +631,8 @@ initarm(struct arm_boot_params *abp) > > pmap_curmaxkvaddr = afterkern + L1_S_SIZE * (KERNEL_PT_KERN_NUM - 1); > arm_dump_avail_init(memsize, sizeof(dump_avail)/sizeof(dump_avail[0])); > - vm_max_kernel_address = KERNVIRTADDR + 3 * memsize; > + /* Always use the 256MB of KVA we have available between the kernel and devices */ > + vm_max_kernel_address = KERNVIRTADDR + (256 << 20); > pmap_bootstrap(freemempos, &kernel_l1pt); > msgbufp = (void*)msgbufpv.pv_va; > msgbufinit(msgbufp, msgbufsize);