summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-06-04 02:32:07 +0000
committeralc <alc@FreeBSD.org>2007-06-04 02:32:07 +0000
commit4d78df42fa7d92963c1fd2b03c6a0dfed035cc49 (patch)
treecdf1116b1d212664df4ef598106bf9db1afbfc74
parenta0b8b93ae86fd8920fbd5699c45ac458300b5393 (diff)
downloadFreeBSD-src-4d78df42fa7d92963c1fd2b03c6a0dfed035cc49.zip
FreeBSD-src-4d78df42fa7d92963c1fd2b03c6a0dfed035cc49.tar.gz
Add the machine-specific definitions for configuring the new physical
memory allocator. Approved by: re
-rw-r--r--sys/sparc64/include/vmparam.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/sys/sparc64/include/vmparam.h b/sys/sparc64/include/vmparam.h
index e372593..5d83f60 100644
--- a/sys/sparc64/include/vmparam.h
+++ b/sys/sparc64/include/vmparam.h
@@ -83,6 +83,44 @@
#define VM_PHYSSEG_SPARSE
/*
+ * The number of PHYSSEG entries must be one greater than the number
+ * of phys_avail entries because the phys_avail entry that spans the
+ * largest physical address that is accessible by ISA DMA is split
+ * into two PHYSSEG entries.
+ */
+#define VM_PHYSSEG_MAX 64
+
+/*
+ * Create two free page pools: VM_FREEPOOL_DEFAULT is the default pool
+ * from which physical pages are allocated and VM_FREEPOOL_DIRECT is
+ * the pool from which physical pages for small UMA objects are
+ * allocated.
+ */
+#define VM_NFREEPOOL 2
+#define VM_FREEPOOL_DEFAULT 0
+#define VM_FREEPOOL_DIRECT 1
+
+/*
+ * Create two free page lists: VM_FREELIST_DEFAULT is for physical
+ * pages that are above the largest physical address that is
+ * accessible by ISA DMA and VM_FREELIST_ISADMA is for physical pages
+ * that are below that address.
+ */
+#define VM_NFREELIST 2
+#define VM_FREELIST_DEFAULT 0
+#define VM_FREELIST_ISADMA 1
+
+/*
+ * An allocation size of 16MB is supported in order to optimize the
+ * use of the direct map by UMA. Specifically, a cache line contains
+ * at most four TTEs, collectively mapping 16MB of physical memory.
+ * By reducing the number of distinct 16MB "pages" that are used by UMA,
+ * the physical memory allocator reduces the likelihood of both 4MB
+ * page TLB misses and cache misses caused by 4MB page TLB misses.
+ */
+#define VM_NFREEORDER 12
+
+/*
* Address space layout.
*
* UltraSPARC I and II implement a 44 bit virtual address space. The address
OpenPOWER on IntegriCloud