Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2013 22:00:03 +0000 (UTC)
From:      Andreas Tobler <andreast@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r259233 - stable/10/sys/powerpc/include
Message-ID:  <201312112200.rBBM03RY070392@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andreast
Date: Wed Dec 11 22:00:03 2013
New Revision: 259233
URL: http://svnweb.freebsd.org/changeset/base/259233

Log:
  MFC	r259007
  
  Increase PHYS_AVAIL_SZ because on pSeries machines we can have many logical
  regions which represent the total amount of memory. The size of these regions
  is not the physical size of the chip but it is a logical one and it is given
  by the OpenFirmware, it is selectable at boot time and varies between 16MB and
  256MB in my case. There is an 'automatic' option which would select the size as
  64MB in case you have around 16GB of RAM.
  To make sure we can allocate RAM with the automatic option bump this value
  of PHYS_AVAIL_SZ to 256.

Modified:
  stable/10/sys/powerpc/include/pmap.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/powerpc/include/pmap.h
==============================================================================
--- stable/10/sys/powerpc/include/pmap.h	Wed Dec 11 21:48:04 2013	(r259232)
+++ stable/10/sys/powerpc/include/pmap.h	Wed Dec 11 22:00:03 2013	(r259233)
@@ -240,7 +240,11 @@ boolean_t	pmap_mmu_install(char *name, i
 
 #define	vtophys(va)	pmap_kextract((vm_offset_t)(va))
 
-#define PHYS_AVAIL_SZ	128
+#define PHYS_AVAIL_SZ	256	/* Allows up to 16GB Ram on pSeries with
+				 * logical memory block size of 64MB.
+				 * For more Ram increase the lmb or this value.
+				 */
+
 extern	vm_offset_t phys_avail[PHYS_AVAIL_SZ];
 extern	vm_offset_t virtual_avail;
 extern	vm_offset_t virtual_end;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312112200.rBBM03RY070392>