freebsd-dev/sys/powerpc/include
Alan Cox c70af4875e As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other
words, every architecture is now auto-sizing the kmem arena.  This revision
changes kmeminit() so that the definition of VM_KMEM_SIZE_SCALE becomes
mandatory and the definition of VM_KMEM_SIZE becomes optional.

Replace or eliminate all existing definitions of VM_KMEM_SIZE.  With
auto-sizing enabled, VM_KMEM_SIZE effectively became an alternate spelling
for VM_KMEM_SIZE_MIN on most architectures.  Use VM_KMEM_SIZE_MIN for
clarity.

Change kmeminit() so that the effect of defining VM_KMEM_SIZE is similar to
that of setting the tunable vm.kmem_size.  Whereas the macros
VM_KMEM_SIZE_{MAX,MIN,SCALE} have had the same effect as the tunables
vm.kmem_size_{max,min,scale}, the effects of VM_KMEM_SIZE and vm.kmem_size
have been distinct.  In particular, whereas VM_KMEM_SIZE was overridden by
VM_KMEM_SIZE_{MAX,MIN,SCALE} and vm.kmem_size_{max,min,scale}, vm.kmem_size
was not.  Remedy this inconsistency.  Now, VM_KMEM_SIZE can be used to set
the size of the kmem arena at compile-time without that value being
overridden by auto-sizing.

Update the nearby comments to reflect the kmem submap being replaced by the
kmem arena.  Stop duplicating the auto-sizing formula in every machine-
dependent vmparam.h and place it in kmeminit() where auto-sizing takes
place.

Reviewed by:	kib (an earlier version)
Sponsored by:	EMC / Isilon Storage Division
2013-11-08 16:25:00 +00:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h Newer versions of gcc define __INT64_C and __UINT64_C, so avoid 2013-09-03 22:04:55 +00:00
_types.h Make the wchar_t type machine dependent. 2012-06-24 04:15:58 +00:00
altivec.h
asm.h Restore proper dot symbol creation for assembly files in the kernel build case. 2012-03-04 11:55:28 +00:00
atomic.h Add a missing " to get closer to compiling. 2012-05-24 23:46:17 +00:00
bat.h Allow this file to be used in LOCORE sections of the kernel. 2012-11-12 06:15:54 +00:00
bus_dma.h
bus.h
clock.h
counter.h Fix issues with zeroing and fetching the counters, on x86 and ppc64. 2013-07-01 02:48:27 +00:00
cpu.h Revert r253748,253749 2013-07-28 18:44:17 +00:00
cpufunc.h Correctly specify assembler constrains for synchronization instructions. 2012-04-22 21:55:19 +00:00
db_machdep.h
dbdma.h
elf.h Reserve AT_TIMEKEEP auxv entry for providing usermode the pointer to 2012-06-22 06:38:31 +00:00
endian.h Add casts to __uint16_t to the __bswap16() macros on all arches which 2012-03-09 20:34:31 +00:00
exec.h
fdt.h
float.h Add C11 macros describing subnormal numbers to float.h. 2012-01-23 06:36:41 +00:00
floatingpoint.h
fpu.h
frame.h Also align the 32-bit PowerPC stacks. 2013-09-05 23:28:50 +00:00
gdb_machdep.h Fix the PowerPC Book-E register definitions used by the remote GDB 2013-05-21 18:00:47 +00:00
hid.h Update HID defines for E500mc and E5500 CPU cores. 2012-05-25 21:12:24 +00:00
ieee.h
ieeefp.h
in_cksum.h MFp4 bz_ipv6_fast: 2012-05-24 22:00:48 +00:00
intr_machdep.h Allow PIC drivers to translate firmware sense codes for themselves. This 2013-10-24 15:37:32 +00:00
kdb.h
limits.h
machdep.h Extract vendor specific Book-E pieces into separate files and have a common 2012-05-30 17:34:40 +00:00
md_var.h
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h Rework handling of ofw_quiesce(), making it the responsibility of the 2013-09-27 13:12:47 +00:00
openpicreg.h
openpicvar.h
param.h Raise artificial limits on number of CPUs and number of interrupts. 2013-09-09 12:52:34 +00:00
pcb.h Move the prototype for savectx from cpu.h to pcb.h, as it is on other 2012-09-23 17:33:16 +00:00
pcpu.h Pad the PCPU MD struct, to satisfy an assert added with the projects/counters 2013-06-04 00:40:26 +00:00
pio.h Fix final bugs in memory barriers on PowerPC: 2012-05-04 16:00:22 +00:00
platform.h Add hook called when every new processor is brought online -- including the 2013-09-09 12:49:19 +00:00
platformvar.h Introduce PLATFORMMETHOD_END and use it. 2013-02-13 02:21:45 +00:00
pmap.h Interrelated improvements to early boot mappings: 2013-10-26 18:18:14 +00:00
pmc_mdep.h Refactor PowerPC hwpmc(4) driver into generic and specific. More refactoring 2013-09-03 00:34:18 +00:00
proc.h Implement GET_STACK_USAGE() on PowerPC. This implementation is identical 2013-10-02 20:40:21 +00:00
profile.h Let us manage differences of Book-E PowerPC variations i.e. vendor / 2012-05-27 10:25:20 +00:00
psl.h Remove some #ifdef and duplication in the MSR bit definitions. This adds 2013-10-25 14:37:15 +00:00
pte.h Use the canonical bits for wired, etc. in the PTE. This is important for 2013-09-09 12:44:48 +00:00
ptrace.h
reg.h
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h
sf_buf.h Fix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations 2013-09-06 17:44:13 +00:00
sigframe.h
signal.h
slb.h
smp.h
spr.h Add POWER7+ and POWER8 to the CPU ID table. 2013-09-17 17:29:56 +00:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h Interrelated improvements to early boot mappings: 2013-10-26 18:18:14 +00:00
trap.h The old trap.h (then trap_aim.h) actually had trap ID codes for Book-E CPUs. 2013-10-26 14:54:43 +00:00
ucontext.h Organize some members of ucontext_t in the same order they are in the 2012-04-21 14:39:47 +00:00
varargs.h
vdso.h Implement mechanism to export some kernel timekeeping data to 2012-06-22 07:06:40 +00:00
vm.h - Rename VM_MEMATTR_UNCACHED to VM_MEMATTR_WEAK_UNCACHEABLE on x86 to 2012-03-29 16:51:22 +00:00
vmparam.h As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other 2013-11-08 16:25:00 +00:00