summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-04-10 15:48:09 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-04-10 15:48:09 +0000
commit19c7765e37f00e2171f79cbe90f99eeda55e07c9 (patch)
tree9888c7cc029b8836d6c4a50a3009dc4fa4e5b6d3 /sys/powerpc/include
parentaac70308f6035bbde1587853967f26e436371d63 (diff)
downloadFreeBSD-src-19c7765e37f00e2171f79cbe90f99eeda55e07c9.zip
FreeBSD-src-19c7765e37f00e2171f79cbe90f99eeda55e07c9.tar.gz
Restructure device mappings for Book-E.
Summary: There is currently a 1GB hole between user and kernel address spaces into which direct (1:1 PA:VA) device mappings go. This appears to go largely unused, leaving all devices to contend with the 128MB block at the end of the 32-bit space (0xf8000000-0xffffffff). This easily fills up, and needs to be densely packed. However, dense packing wastes precious TLB1 space, of which there are only 16 (e500v2) or 64(e5500) entries available. Change this by using the 1GB space for all device mappings, and allow the kernel to use the entire upper 1GB for KVA. This also allows us to use sparse device mappings, freeing up TLB entries. Test Plan: Boot tested on p5020. Differential Revision: https://reviews.freebsd.org/D5832
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r--sys/powerpc/include/vmparam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/vmparam.h b/sys/powerpc/include/vmparam.h
index 0dd74c9..d7368ec 100644
--- a/sys/powerpc/include/vmparam.h
+++ b/sys/powerpc/include/vmparam.h
@@ -111,7 +111,7 @@
#define KERNBASE 0xc0000000 /* start of kernel virtual */
#define VM_MIN_KERNEL_ADDRESS KERNBASE
-#define VM_MAX_KERNEL_ADDRESS 0xf7ffffff
+#define VM_MAX_KERNEL_ADDRESS 0xffffffff
#define VM_MAX_SAFE_KERNEL_ADDRESS VM_MAX_KERNEL_ADDRESS
#endif /* AIM/E500 */
OpenPOWER on IntegriCloud