Home | History | Annotate | Download | only in include
History log of /src/sys/arch/powerpc/include/param.h
RevisionDateAuthorComments
 1.34  31-May-2021  simonb Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE is
referenced since some sources include <machine/param.h>.
 1.33  06-Jul-2020  rin branches: 1.33.6;
Style and cosmetic changes. No binary changes intended.
 1.32  21-Feb-2020  rin Reduce UPAGES from 2 to 1 for ibm4xx, which was originally 1 and bumped
to 2 in rev 1.29:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/include/param.h#rev1.29

Since page size is 16KB on ibm4xx, USPACE is still 16KB, which is the
same size as on other powerpc processors.

This avoids kernel crash described in PR kern/54994. Also, even if the
PR is resolved, fork(2) easily fails with ENOMEM if UPAGES is 2, which
requires physically contiguous pages for u-area. No bad side effect is
observed as far as I can see.

XXX
Even with this commit, kern/54994 still critically affects other archs
with __HAVE_CPU_UAREA_ROUTINES, i.e., alpha, mips, powerpc/{oea,booke},
and riscv.
 1.31  07-Jan-2019  jdolecek branches: 1.31.6;
move DEV_BSIZE, DEV_BSHIFT out of MD param.h, they are same on all ports

also move BLKDEV_IOSIZE, MAXPHYS, but allow override since some ports
have different value (powerpc uses NBPG for BLKDEV_IOSIZE, sun2/sun3
have lower MAXPHYS)
 1.30  14-Jan-2017  christos branches: 1.30.14; 1.30.16;
belatedly fix constants for ppc64 (this does not define __arch64__ like sparc
does?)
 1.29  29-Jan-2013  kiyohara branches: 1.29.14; 1.29.18;
More stack for ibm4xx slow machines.
 1.28  23-Sep-2012  mrg increase powerpc NKMEMPAGES_MAX_DEFAULT to 256MB. remove the macppc
overrides that are now the same as the powerpc default.
 1.27  30-Jan-2012  matt branches: 1.27.2; 1.27.4; 1.27.6;
PowerPC wants 16-byte aligned stacks (for AltiVec).
 1.26  24-Jan-2012  christos Use and define ALIGN() ALIGN_POINTER() and STACK_ALIGN() consistently,
and avoid definining them in 10 different places if not needed.
 1.25  20-Jan-2012  joerg Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
 1.24  20-Jun-2011  matt branches: 1.24.2; 1.24.6;
Cleanup powerpc param.h. If compiling a MODULE, ignore port-specific stuff.
Only include <machine/cpu.h> in <powerpc/param.h> at the end.
 1.23  05-Mar-2011  matt branches: 1.23.2;
If _KERNEL is not defined, force MACHINE to be "powerpc". Userland should be
using uname/sysctl to get this value.
 1.22  22-Mar-2010  mrg branches: 1.22.2;
default powerpc64 mbufs to 512 bytes, like other 64 bit platforms.
from dennis.c.ferguson@gmail.com in PR#43028.
 1.21  08-Feb-2010  joerg branches: 1.21.2;
Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
 1.20  28-Aug-2006  yamt branches: 1.20.60; 1.20.80;
- remove unused bdbtofsb.
- move the following macros from MD headers to sys/param.h.
ctod
dtoc
ctob
btoc
dbtob
btodb
 1.19  11-Dec-2005  christos branches: 1.19.4; 1.19.8;
merge ktrace-lwp.
 1.18  09-Dec-2004  matt branches: 1.18.10;
Make MSIZE and MCLSHIFT overrideable in <machine/param.h>
 1.17  04-Mar-2003  matt branches: 1.17.2;
Re-arrange things in evbppc & powerpc to support OEA-based eval boards
in evbppc. OEA-based board(s) to be added later.
 1.16  03-Feb-2003  matt More cleanup for OLDPMAP.
 1.15  19-Jan-2003  matt ALIGN should use u_long, not u_int
 1.14  06-Sep-2002  matt Allow MAXPHYS to be overriden. Increase the default MSGBUFSIZE to 2 pages.
 1.13  09-Mar-2002  chs switch all mpc6xx powerpc ports to NEWPMAP by default.
the old pmap is still available with the OLDPMAP option.
 1.12  10-Jun-2001  tsubai branches: 1.12.2; 1.12.8;
Make the new pmap optional. Use the old (stable!) pmap by default.
 1.11  10-Jun-2001  briggs Up the default # of NMBCLUSTERS to 2048 (GATEWAY) & 1024 (non-GATEWAY)
from 512/256.
 1.10  06-Jun-2001  matt Introduce a new & faster pmap for the MPC6xx (60x, 7xx, 7xxx) PPC CPUs.
Move MPC6xx dependent header files to powerpc/include/mpc6xx/
 1.9  30-May-2001  mrg use _KERNEL_OPT
 1.8  30-Jun-2000  itojun branches: 1.8.2;
raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
 1.7  11-Feb-2000  thorpej branches: 1.7.4;
Update for the NKMEMPAGES changes.
 1.6  04-Dec-1999  ragge CL* discarding.
 1.5  16-Aug-1998  wrstuden branches: 1.5.12; 1.5.18;
As ovbcopy & bcopy are now done in terms of mem* routines, it makes
no sense to "#define ovbcopy bcopy".
 1.4  28-May-1998  sakamoto Rename NetBSD/powerpc to NetBSD/ofppc.
New sys/arch/powerpc with PowerPC-generic stuff.
 1.3  29-Apr-1998  thorpej Pull in opt_gateway.h as appropriate.
 1.2  24-Feb-1997  fvdl Define ALIGNED_POINTER
 1.1  30-Sep-1996  ws branches: 1.1.6;
PowerPC port
 1.1.6.1  12-Mar-1997  is Merge in changes from Trunk
 1.5.18.2  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.18.1  21-Dec-1999  wrstuden Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".
 1.5.12.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.7.4.1  23-Jul-2000  itojun pullup from main trunc (approved by releng-1-5)

raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.

1.1 -> 1.2 syssrc/sys/arch/amigappc/include/param.h
1.13 -> 1.14 syssrc/sys/arch/arc/include/param.h
1.1 -> 1.2 syssrc/sys/arch/arm26/include/param.h
1.17 -> 1.18 syssrc/sys/arch/arm32/include/param.h
1.6 -> 1.7 syssrc/sys/arch/bebox/include/param.h
1.4 -> 1.5 syssrc/sys/arch/cobalt/include/param.h
1.4 -> 1.5 syssrc/sys/arch/evbsh3/include/param.h
1.2 -> 1.3 syssrc/sys/arch/hpcmips/include/param.h
1.40 -> 1.41 syssrc/sys/arch/i386/include/param.h
1.7 -> 1.8 syssrc/sys/arch/m68k/include/param.h
1.9 -> 1.10 syssrc/sys/arch/macppc/include/param.h
1.4 -> 1.5 syssrc/sys/arch/mmeye/include/param.h
1.6 -> 1.7 syssrc/sys/arch/newsmips/include/param.h
1.7 -> 1.8 syssrc/sys/arch/ofppc/include/param.h
1.23 -> 1.24 syssrc/sys/arch/pc532/include/param.h
1.32 -> 1.33 syssrc/sys/arch/pmax/include/param.h
1.7 -> 1.8 syssrc/sys/arch/powerpc/include/param.h
1.1 -> 1.2 syssrc/sys/arch/prep/include/param.h
1.1 -> 1.2 syssrc/sys/arch/sgimips/include/param.h
1.3 -> 1.4 syssrc/sys/arch/sh3/include/param.h
1.44 -> 1.45 syssrc/sys/arch/sparc/include/param.h
1.21 -> 1.22 syssrc/sys/arch/sparc64/include/param.h
1.43 -> 1.44 syssrc/sys/arch/vax/include/param.h
 1.8.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.12.8.3  17-Sep-2002  nathanw Catch up to -current.
 1.12.8.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.12.8.1  10-Jun-2001  nathanw file param.h was added on branch nathanw_sa on 2002-04-01 07:42:04 +0000
 1.12.2.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.12.2.1  16-Mar-2002  jdolecek Catch up with -current.
 1.17.2.1  18-Dec-2004  skrll Sync with HEAD.
 1.18.10.1  30-Dec-2006  yamt sync with head.
 1.19.8.1  03-Sep-2006  yamt sync with head.
 1.19.4.1  09-Sep-2006  rpaulo sync with head
 1.20.80.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.20.60.2  11-Aug-2010  yamt sync with head.
 1.20.60.1  11-Mar-2010  yamt sync with head
 1.21.2.2  06-Mar-2011  rmind sync with head (and fix few botches with this)
 1.21.2.1  30-May-2010  rmind sync with head
 1.22.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.23.2.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.24.6.1  18-Feb-2012  mrg merge to -current.
 1.24.2.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.2.2  30-Oct-2012  yamt sync with head
 1.24.2.1  17-Apr-2012  yamt sync with head
 1.27.6.3  03-Dec-2017  jdolecek update from HEAD
 1.27.6.2  25-Feb-2013  tls resync with head
 1.27.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.27.4.1  01-Nov-2012  matt sync with netbsd-6-0-RELEASE.
 1.27.2.1  01-Oct-2012  riz Pull up following revision(s) (requested by mrg in ticket #575):
sys/arch/powerpc/include/param.h: revision 1.28
sys/arch/macppc/include/param.h: revision 1.20
increase powerpc NKMEMPAGES_MAX_DEFAULT to 256MB. remove the macppc
overrides that are now the same as the powerpc default.
 1.29.18.1  20-Mar-2017  pgoyette Sync with HEAD
 1.29.14.1  05-Feb-2017  skrll Sync with HEAD
 1.30.16.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.30.16.1  10-Jun-2019  christos Sync with HEAD
 1.30.14.1  18-Jan-2019  pgoyette Synch with HEAD
 1.31.6.1  29-Feb-2020  ad Sync with head.
 1.33.6.1  17-Jun-2021  thorpej Sync w/ HEAD.

RSS XML Feed