Home | History | Annotate | Download | only in include
History log of /src/sys/arch/vax/include/param.h
RevisionDateAuthorComments
 1.64  31-May-2021  simonb Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE is
referenced since some sources include <machine/param.h>.
 1.63  01-May-2020  isaki branches: 1.63.6;
Move machine dependent AUDIO_BLK_MS default value to <machine/param.h>.
If the port has __AUDIO_BLK_MS in <machine/param.h>, it will be used.
Otherwise the default value (currently 10 msec) defined in audio.c will
be used. This mechanism is for very old ports which cannot satisfactorily
handle 10 msec block. Currently hppa, m68k, sh3, sparc(!64) and vax are.

For port maintainers, if general models in your port cannot satisfactorily
handle 10 msec block, please consider to define your suitable longer period
(40 msec would be a good first choice).
But please don't be eager to make the default value shorter.

<machine/param.h> was discussed in source-changes-d. It's better than
ifdef storm, or adding 60+ new header files in every arch/*/include/
directories for this. Thanks mrg@, ad@, and everyone.
http://mail-index.netbsd.org/source-changes-d/2020/05/01/msg012572.html
 1.62  07-Jan-2019  jdolecek branches: 1.62.4;
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.61  23-Jan-2014  jklos branches: 1.61.28; 1.61.30;
Removed MAXBSIZE. Cleared with Anders Magnusson and tested myself.
 1.60  24-Jan-2012  christos branches: 1.60.6; 1.60.10;
Use and define ALIGN() ALIGN_POINTER() and STACK_ALIGN() consistently,
and avoid definining them in 10 different places if not needed.
 1.59  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.58  08-Feb-2010  joerg branches: 1.58.10; 1.58.14;
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.57  21-Nov-2009  rmind branches: 1.57.2;
- Use lwp_getpcb() on VAX, clean from struct user usage.
- Include sys/user.h in MD proc.h .
 1.56  02-Jul-2008  ad Replce exec_map with a pool. Proposed on tech-kern@, reviewed by chs@.
 1.55  11-Mar-2008  matt branches: 1.55.4; 1.55.6; 1.55.8;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.54  28-Aug-2006  yamt branches: 1.54.32; 1.54.52; 1.54.56;
- remove unused bdbtofsb.
- move the following macros from MD headers to sys/param.h.
ctod
dtoc
ctob
btoc
dbtob
btodb
 1.53  11-Dec-2005  christos branches: 1.53.4; 1.53.8;
merge ktrace-lwp.
 1.52  07-Aug-2003  agc branches: 1.52.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.51  26-Feb-2003  matt branches: 1.51.2;
Make common macros like every other port. Now newfs_lfs builds again.
 1.50  21-Apr-2002  ragge Cast some args to unsigned long (used with pointers).
 1.49  24-Mar-2002  jdolecek Limit the KVA used for pipe loaned memory to 64KB, vax doesn't have too
much KVA space spare. This fixes port-vax/13333 by Manuel Bouyer.
Reviewed by: Anders Magnusson

XXX this is not ideal, need to find better solution
 1.48  26-Feb-2002  simonb Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
 1.47  27-Jul-2001  ragge branches: 1.47.6;
Set MAXPHYS to 64k instead of 63k.
 1.46  30-May-2001  mrg branches: 1.46.2;
use _KERNEL_OPT
 1.45  15-Nov-2000  matt branches: 1.45.2;
Convert some spaces to tabs.
 1.44  30-Jun-2000  itojun 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.43  02-Jun-2000  matt branches: 1.43.2;
Move spl macros from <machine/param.h> to <machine/intr.h>
Fix botch on my part and make the IPL_* match reality on VAX.
Redefine spl macro using the symbolic IPL_ instead of being hardcoded.
Move schedsoftnet, schedsoftclock from <machine/cpu.h> to <machine/intr.h>
Add a _setsirr macro for schedsoft*.
Add softintr function and framework.
 1.42  07-Mar-2000  matt branches: 1.42.2;
add real vmapbuf/vunmapbuf routines. needed for VS4000 SCSI support.
 1.41  11-Feb-2000  thorpej Update for the NKMEMPAGES changes.
 1.40  12-Dec-1999  ragge CL* discarding.
 1.39  22-Oct-1999  ragge Remove the vmapbuf()/vunmapbuf() routines. They are quite unneccessary
on a machine that has MMU for its I/O devices.
 1.38  05-Aug-1999  thorpej branches: 1.38.2; 1.38.4; 1.38.6;
Implement priority raising, and use it as appropriate.
 1.37  05-Aug-1999  thorpej Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied. Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX. This platforms still have this bug until their
XXX spl*() functions are fixed.
 1.36  02-May-1999  ragge EEEK! The signal changes a while ago caused the user struct to be
on top of the "red zone" in the kernel stack. This phenomenon has
caused many unexplainable things to happen the last year.
 1.35  19-Jan-1999  ragge branches: 1.35.2;
Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.34  01-Jan-1999  ragge Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
 1.33  29-Nov-1998  ragge the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
 1.32  25-Aug-1998  ragge Kernel stach should be 4K, not 32K. Increase MCLSHIFT to 11.
Remove ovbcopy().
 1.31  21-Aug-1998  ragge VAX logical page size increased to 4k.
 1.30  20-Jun-1998  ragge Expand kmem map.
 1.29  29-Apr-1998  thorpej Pull in opt_gateway.h as appropriate.
 1.28  05-Nov-1997  thorpej asm -> __asm__
 1.27  02-Nov-1997  ragge Major rewriting, optimization and simplifying of the pmap code:

- Map in all physical memory first in system space. This reduces
pmap_copy_page() and pmap_zero_page to 3 resp. 2 instructions.
- Have fized position user page tables. Makes the pv_table smaller
and all reverse references faster (and simpler).
- Remove the wiring code. Nobody doesn't even know what a DR32 is anymore.
- Simulate page reference bit by setting page invalid, as suggested by
Rich Draves in a paper for 1991 Mach Usenix Symposium.

This reduced the time spent in the pmap module to between 70-75% of
the previous; and made process startup _much_ faster.
 1.26  19-Oct-1997  ragge branches: 1.26.2;
MSGBUFSIZE must be in CLBYTES, not NBPG. Also expand it to 4 * CLBYTES.
 1.25  19-Sep-1997  leo Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
 1.24  05-Aug-1997  ragge delay() must be protected by #ifdef _KERNEL.
 1.23  24-Feb-1997  fvdl branches: 1.23.4;
Define ALIGNED_POINTER
 1.22  11-Jan-1997  ragge branches: 1.22.6;
#define MAXBSIZE to some nice value.
 1.21  20-Jul-1996  ragge Numerous changes to be able to put Bertram Barth's VAXstation support in.
(Some) Support for VAXstation 2000/MicroVAX 2000, VAXstation 3100/76.
 1.20  10-Jul-1996  ragge Add spl4 - spl7 macros, easy to use when playing with buses.
 1.19  04-Mar-1996  cgd add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes. meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
 1.18  02-Mar-1996  ragge Changes due to 11/780 support. Raise splimp() to BR7.
 1.17  01-Mar-1996  cgd Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE.
 1.16  11-Feb-1996  ragge Prototype for delay().
 1.15  02-Feb-1996  mycroft Fix #includes.
 1.14  30-Dec-1995  ragge An '&' missing in splx macro; causing that sometimes didn't
the interrupt level get set.
 1.13  04-Dec-1995  ragge Added earlier forgotten MACHINE_ARCH, pointed out by Arne Henrik Juul.
Cleaned up a bit.
 1.12  13-Aug-1995  mycroft Fix comment on splnet().
 1.11  13-Aug-1995  mycroft Replace splnet() with splsoftnet(). Add splnet().
 1.10  26-Jun-1995  cgd clean up definitions of ctod(), dtoc(), ctob(), btoc(), btodb(), and
dbtob(). remove unused definitions of ctos(), stoc(), and dtob().
 1.9  16-Jun-1995  ragge DDB support. splddb() and trapcode for ddb.
 1.8  03-May-1995  ragge mtpr support for 11/780 added. DELAY added. mcount() corrected.
trapframe fixed to support all registers.
 1.7  30-Mar-1995  ragge Some bug fixes & update of pcb.
 1.6  18-Mar-1995  cgd don't be so quick to cast macro arguments to unsigned; if the
arguments are really off_t's (e.g. to btodb), then you can lose
information. This was the "> 4G file systems don't work" bug; physio
uses btodb, which was broken.
 1.5  13-Feb-1995  ragge Lots of fixes...
 1.4  25-Nov-1994  ragge Lots of updates & fixes.
 1.3  26-Oct-1994  cgd new RCS ID format.
 1.2  16-Aug-1994  ragge branches: 1.2.2;
Minor updates of some errouneous parameters.
 1.1  02-Aug-1994  ragge Initial VAX port merging.
 1.2.2.2  16-Aug-1994  ragge Minor updates of some errouneous parameters.
 1.2.2.1  16-Aug-1994  ragge file param.h was added on branch netbsd-1-0 on 1994-08-16 23:41:55 +0000
 1.22.6.1  12-Mar-1997  is Merge in changes from Trunk
 1.23.4.2  22-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.23.4.1  23-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.26.2.1  05-Nov-1997  thorpej Update from trunk: asm -> __asm__
 1.35.2.1  03-May-1999  perry branches: 1.35.2.1.2;
pullup 1.35->1.36 (ragge)
 1.35.2.1.2.1  21-Jun-1999  thorpej Sync w/ -current.
 1.38.6.2  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.38.6.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.38.4.1  15-Nov-1999  fvdl Sync with -current
 1.38.2.2  22-Nov-2000  bouyer Sync with HEAD.
 1.38.2.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.42.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.43.2.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.45.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.46.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.46.2.2  16-Mar-2002  jdolecek Catch up with -current.
 1.46.2.1  03-Aug-2001  lukem update to -current
 1.47.6.4  20-Jun-2002  nathanw Catch up to -current.
 1.47.6.3  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.47.6.2  28-Feb-2002  nathanw Catch up to -current.
 1.47.6.1  27-Jul-2001  nathanw file param.h was added on branch nathanw_sa on 2002-02-28 04:12:29 +0000
 1.51.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.51.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.51.2.1  03-Aug-2004  skrll Sync with HEAD
 1.52.16.2  17-Mar-2008  yamt sync with head.
 1.52.16.1  30-Dec-2006  yamt sync with head.
 1.53.8.1  03-Sep-2006  yamt sync with head.
 1.53.4.1  09-Sep-2006  rpaulo sync with head
 1.54.56.2  02-Jul-2008  mjf Sync with HEAD.
 1.54.56.1  03-Apr-2008  mjf Sync with HEAD.
 1.54.52.1  24-Mar-2008  keiichi sync with head.
 1.54.32.1  23-Mar-2008  matt sync with HEAD
 1.55.8.1  03-Jul-2008  simonb Sync with head.
 1.55.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.55.4.2  11-Mar-2010  yamt sync with head
 1.55.4.1  04-May-2009  yamt sync with head.
 1.57.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.58.14.1  18-Feb-2012  mrg merge to -current.
 1.58.10.2  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.58.10.1  17-Apr-2012  yamt sync with head
 1.60.10.1  18-May-2014  rmind sync with head
 1.60.6.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.61.30.1  10-Jun-2019  christos Sync with HEAD
 1.61.28.1  18-Jan-2019  pgoyette Synch with HEAD
 1.62.4.1  18-May-2020  martin Pull up following revision(s) (requested by isaki in ticket #911):

sys/dev/audio/audiodef.h: revision 1.13
sys/dev/audio/audiodef.h: revision 1.14
sys/arch/sparc/include/param.h: revision 1.74
sys/arch/evbarm/conf/GENERIC64: revision 1.148
sys/arch/sh3/include/param.h: revision 1.25
sys/arch/evbarm/conf/GENERIC: revision 1.75
sys/arch/m68k/include/param.h: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.564
sys/arch/hppa/include/param.h: revision 1.27
sys/dev/audio/audio.c: revision 1.68
sys/arch/vax/include/param.h: revision 1.63
sys/dev/audio/audio.c: revision 1.69

Reduce default AUDIO_BLK_MS from 40msec to 10msec on all platform except m68k
(m68k uses 40msec default as before). And remove the option from GENERIC.

- It's not good idea to set such parameter in individual GENERICs.
- 4msec is (probably no problem for most modern real hardware but)
too aggressive to be default.
- 10msec is too severe for antique machines but it's hard to draw a line.

Set AUDIO_BLK_MS 40 msec on other old(slow) architectures not only m68k.

Thanks tsutsui@ for comment about architecture choice.
And move it from audiodef.h to audio.c as suggested by joerg@.


Move machine dependent AUDIO_BLK_MS default value to <machine/param.h>.
If the port has __AUDIO_BLK_MS in <machine/param.h>, it will be used.

Otherwise the default value (currently 10 msec) defined in audio.c will
be used. This mechanism is for very old ports which cannot satisfactorily
handle 10 msec block. Currently hppa, m68k, sh3, sparc(!64) and vax are.

For port maintainers, if general models in your port cannot satisfactorily
handle 10 msec block, please consider to define your suitable longer period
(40 msec would be a good first choice).

But please don't be eager to make the default value shorter.
<machine/param.h> was discussed in source-changes-d. It's better than
ifdef storm, or adding 60+ new header files in every arch/*/include/
directories for this. Thanks mrg@, ad@, and everyone.
http://mail-index.netbsd.org/source-changes-d/2020/05/01/msg012572.html
 1.63.6.1  17-Jun-2021  thorpej Sync w/ HEAD.

RSS XML Feed