119028 Commits

Author SHA1 Message Date
jhb
4c79273d05 MFC: Remove some dead code.
Approved by:	re (scottl)
2006-03-07 15:51:19 +00:00
jhb
5adc475e72 MFC: Fix various minor bugs and nits in callout handling.
Approved by:	re (scottl)
2006-03-07 15:50:25 +00:00
jhb
6b57112b80 MFC: Add a missing check for the return value from copyin().
Approved by:	re (scottl)
2006-03-07 15:49:11 +00:00
emax
f6ce5746e7 MFC:
Add new 'setkeyboard' method to the /etc/rc.d/syscons. It accepts the
keyboard device name (i.e. /dev/kbd0). This method will do nothing is
kbdmux(4) is the current active keyboard, otherwise it will switch
active keyboard as requested.

Modify ukbd(4) entries in the /etc/devd.conf to use /etc/rc.d/syscons
and new 'setkeyboard' method.

Approved by:	re (scottl)
2006-03-07 06:13:17 +00:00
delphij
525f0beab3 Synchnorize with the latest translation for RELENG_6.
errata/article.sgml:		  1.73.2.1 -> 1.73.2.14
  hardware/common/dev.sgml:	 1.282.2.3 -> 1.282.2.8
  relnotes/common/new.sgml:	 1.883.2.8 -> 1.883.2.12
  relnotes/sparc64/article.sgml:        ?? -> 1.6

Obtained from:	The FreeBSD Simplified Chinese Project
Approved by:	re (hrs)
2006-03-07 05:06:25 +00:00
rwatson
78ceb60160 Merge group:1.33,1.34 from HEAD to RELENG_6:
Assign gid 77 to audit instead of gid 73.  The ports group list did not
  include '73', which was assigned in a ports passwd entry to ircservices.

  Pointed out by: ceri

  Allocate an 'audit' group, membership in which will grant the audit
  review right by virtue of read file permission on /var/audit and its
  contents.

  Obtained from:  TrustedBSD Project

Approved by:	re (scottl)
2006-03-06 22:23:10 +00:00
ru
75e4a6dd65 MFC: don't attempt to compile DEFAULTS and don't compile LINT twice.
Requested by:	jkoshy
Approved by:	re (scottl)
2006-03-06 19:36:22 +00:00
mlaier
b439464437 MFC:
Make pflog a seperate module.  As a result pflog_packet() becomes a
  function pointer that is declared in pf_ioctl.c

  Requested by:   yar (as part of the module build reorg)

Approved by:	re (scottl)
2006-03-06 16:10:19 +00:00
mlaier
acec523745 Link the firmware module the build. Forgotten in original MFC.
Reminded by:	Joerg Pulz
Approved by:	re (scottl)
2006-03-06 16:05:53 +00:00
ume
16942a990d MFC: Sync inet_net_pton() and inet_net_ntop() with latest BIND9's
includes an IPv6 support.

	lib/libc/net/inet_net.3:	1.3
	lib/libc/net/inet_net_ntop.c:	1.8
	lib/libc/net/inet_net_pton.c:	1.10

Approved by:	re (scottl)
2006-03-06 14:55:48 +00:00
ume
7a2da0ef17 MFC 1.28: Decrease the value of RES_DFLRETRY from 4 to 2.
Approved by:	re (scottl)
2006-03-06 14:31:30 +00:00
yar
9d17dc8900 MFC rev. 1.326:
Do not discard the current value of __MAKE_CONF when testing
  whether MAKEOBJDIRPREFIX is set at a wrong place.

Approved by:	re (scottl)
2006-03-06 11:17:49 +00:00
ps
9863378685 MFC:
Don't truncate f_mntfromname & f_mntonname to 16 characters when
translating statfs into ostatfs.  Also use strlcpy instead of bcopy
to make sure the copied strings are properly terminated.

Approved by:	re (scottl)
2006-03-06 10:56:43 +00:00
ps
25e5540c17 MFC: rev 1.153
Fix bug in malloc_uninit():
Releasing items from the mt_zone can not be done by a simple
uma_zfree() call since mt_zone is allocated with the UMA_ZONE_MALLOC
flag. Use uma_zfree_arg instead and supply the slab.

This bug caused panics in low memory situations on unloading kernel
modules containing MALLOC_DEFINE(..) statements.

Approved by:	re (scottl)
2006-03-06 08:42:07 +00:00
thompsa
92f76ec5f0 MFC r1.8: Do not use the TSC where its known to be broken.
Approved by:	re (scottl)
2006-03-06 06:38:38 +00:00
wkoszek
5155d8fd57 MFC:
crypto.ko depends on zlib.

   Submitted by:   Ben Kelly <bkelly at vadev.org>
   Approved by:    rwatson
   Point hat to:   me
   MFC after:      1 day

Approved by:	re (scottl)
2006-03-05 00:48:05 +00:00
mnag
44fb063930 MFC 1.23:
- Print message about cpufreq and timecounter TSC

Approved by:	re (scottl)
2006-03-05 00:03:29 +00:00
mnag
b5e6e41da9 MFC 1.12:
- Add entry about using timecounter TSC and cpu frequency changing.

Approved by:	re (scottl)
2006-03-05 00:00:57 +00:00
ume
e70f9bb8b0 MFC:
- Just query 'as is', if there is a trailing dot in the name.
- Don't query 'as is' twice.

	lib/libc/net/getaddrinfo.c:	1.71
	lib/libc/net/res_query.c:	1.31

Approved by:	re (scottl)
2006-03-04 17:44:27 +00:00
ume
16f8008330 MFC 1.5: Add definitions of SWIDTH. It fixes the problem that
tcsh 6.14 doesn't work correctly with ko_KR.eucKR locale.

Approved by:	re (scottl)
2006-03-04 17:36:27 +00:00
ceri
103a494bc7 Correct yypo in the last commit.
Submitted by:	maxim
Approved by:	re (implicit; the last commit was not what they approved)
2006-03-04 17:27:08 +00:00
ceri
160c8f61ee MFC revision 1.416:
Add new NTP servers for Taiwan.

Approved by:	re (scottl)
2006-03-04 17:24:10 +00:00
ceri
af710ab71d MFC revision 1.23:
Add a note explaining what the rescue/ directory is for.

Approved by:	re (scottl)
2006-03-04 17:13:47 +00:00
dwmalone
7dc5077d8b MFC: Make quot skip unallocated inodes.
Approved by:	re (scottl)
2006-03-04 16:59:09 +00:00
oleg
54f5019d6b MFC rev. 1.38
- If PHY changes it's state fast enough, we can miss (under certain conditions)
  link event. Fix it.

Approved by:	re (scottl)
2006-03-04 09:36:13 +00:00
oleg
75e7405ca4 MFC rev. 1.121-1.124
- Synchronize status block on every call of bge_poll_locked() (rev. 1.121)
- Return immediately out of bge_rxeof()/bge_txeof() if there are no packets
  to process. This could save some pci register accesses. (rev. 1.122)
- Enable 'complete' (including tcp/udp pseudo header) hardware rx checksum
  offloading. (rev. 1.123)
- Ignore link events for MII/GMII cards if MI auto-polling disabled.(rev. 1.124)
- Clear bge_link flag in bge_stop() (rev. 1.124)
- Force link state check after bge_ifmedia_upd(). Otherwise we can miss link
  event if PHY changes it's state fast enough.(rev. 1.124)
- Fix some comments.

Approved by:	re (scottl)
2006-03-04 09:34:48 +00:00
oleg
53a66e4fcb MFC if_ethersubr.c rev. 1.214, if_bridge.c rev. 1.54
Properly initialize args structure before passing it to ipfw_chk(): having
uninitialized args.inp is unhealthy for uid/gid/jail ipfw rules.

PR:		kern/92589
Approved by:	re (scottl)
2006-03-04 09:24:30 +00:00
oleg
cc9e9b47a3 MFC rev. 1.315
Fix five years old bug in ip_reass(): if we are using 'full' (i.e. including
pseudo header) hardware rx checksum offloading ip_reass() fails to calculate
TCP/UDP checksum for reassembled packet correctly.

Reviewed by:	sam (earlier version), bde
Approved by:	re (scottl)
2006-03-04 09:16:11 +00:00
emax
a82149838a MFC:
Integrate kbdmux(4) into syscons(4) and kbd code.

By default syscons(4) will look for the kbdmux(4) keyboard first, and then,
if not found, look for any keyboard.

Current kbd code is modified so if kbdmux(4) is the current keyboard, all
new keyboards are automatically added to the kbdmux(4).

Switch to kbdmux(4) can be done at boot time, by loading kbdmux module at
the loader prompt, or at runtime, by kldload'ing the kbdmux module and
releasing current active keyboard.

If, for whatever reason, kbdmux(4) is not required/desired then just do
not load it and everything should work as before. It is also possible to
kldunload kbdmux at runtime and syscons(4) will automatically switch to
the first available keyboard.

Approved by:	re (scottl)
2006-03-04 00:41:28 +00:00
emax
da9748b323 MFC kbdmux.c rev 1.8
Provide ability to disable kbdmux(4) with the hint.kbdmux.0.disabled="1" hint.
Document hint in the kbdmux(4) man page.

Fix endian bugs accessing ioctl arguments that are passed by value.

Approved by:	re (scottl)
2006-03-04 00:08:20 +00:00
yar
8ad2c1e26d MFC sys/coda/coda.h rev. 1.14, sys/modules/coda5/Makefile rev. 1.7:
CODA_COMPAT_5 may not be defined unconditionally in the coda5 module.
  Otherwise a kernel build would break in the coda5 module if the main
  kernel conf file enabled CODA_COMPAT_5, too.  Redefined symbols are
  strictly disallowed by -Werror.

  To overcome this issue, introduce a different symbol indicating coda5
  build, CODA5_MODULE, and translate it to CODA_COMPAT_5 appropriately
  in /sys/coda/coda.h.

Approved by:	re (scottl)
2006-03-03 22:05:23 +00:00
yar
66a63eb020 MFC rev. 1.13:
Move the hard-coded ETHER_* options to where they belong --
  inside !if defined(KERNBUILDDIR).

  Utilize the fact the module will support all frames by default --
  it needs no ETHER_* options unless some frames need to be disabled.

  Fix the comment respectively.

  Don't forget to create fake opt_ef.h if no ETHER_* are set.

Approved by:	re (scottl)
2006-03-03 22:02:44 +00:00
thompsa
9602c362ca MFC r1.11: Fix up the Bridge Identifier field in the BPDU packet.
Approved by:	re (scottl)
2006-03-03 21:36:26 +00:00
scottl
621b0991ac Disable some code that isn't ready for prime time.
Approved by: re
2006-03-02 06:17:52 +00:00
ariff
2966f18491 MFC (revision 1.5):
- Fix severe crackling after long running and abusive module load / unload
  by forcing DMA alignment to default buffer size.
- Make sure DMA pointer properly aligned to avoid being truncated by caller
  which causing severe underruns and random popping (especially in 32bit
  playback / recording).
- Add AC97 inverted external amplifier quirk for Maxselect x710s
  - http://maxselect.ru/
- Trim unnecessary pointer alignment.

Approved by:	re (scottl)
2006-03-02 00:11:29 +00:00
ariff
9d23604d8e Fix random popping while playing in 32bit by increasing default buffer size
from 4096 to 8192.

Approved by:	re (scottl)
2006-03-02 00:09:30 +00:00
ariff
4fb1acdda4 MFC (revision 1.60):
Fix possible DMA leak and locking violation especially
during suspend <-> resume and module load <-> unload.

PR:		kern/92764
Approved by:	re (scottl)
2006-03-02 00:08:28 +00:00
kris
ff03d3aa0c MFC r1.35: Don't refer to obsolete loader method for setting dumpdev.
Approved by:	re (mux)
2006-03-01 22:35:15 +00:00
glebius
0f023eef98 MFC 1.20 by ambrisko:
Grab the media from the passed in structure to put it into the
  global structure.

PR:		bin/91399, bin/93727
Approved by:	re (scottl)
2006-03-01 22:24:23 +00:00
wkoszek
8f5b501262 MFC:
Connect zlib to the build.

  This patch fixes a problem, which exists if you have IPSEC in your kernel
  and want to have crypto support loaded as KLD. By moving zlib to separate
  module and adding MODULE_DEPEND directives, it is possible to use such
  configuration without complication. Otherwise, since IPSEC is linked with
  zlib (just like crypto.ko) you'll get following error:

          interface zlib.1 already present in the KLD 'kernel'!

  Approved by:    cognet (mentor)

Approved by:	re (scottl)
2006-03-01 21:40:14 +00:00
andre
a5af09bc1f MFC: Have TCP Inflight disable itself if the RTT is below a certain
threshold.

The sysctl net.inet.tcp.inflight.rttthresh specifies the threshold
in milliseconds below which inflight will disengage.  It defaults
to 10ms.

Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-03-01 21:13:29 +00:00
andre
d097823b38 MFC: Make sysctl_msec_to_ticks(SYSCTL_HANDLER_ARGS) generally available instead
of being private to tcp_timer.c.

Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-03-01 21:08:53 +00:00
andre
5a2c39cf68 MFC uipc_domain.c rev. 1.45 and uipc_mbuf.c rev. 1.162:
Make kern.ipc.[max_linkhdr|max_protohdr|max_hdr|max_datalen] read-only.

Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-03-01 20:58:36 +00:00
jhb
a8eaf2520e MFC: Change pfs_visible() to optionally return with the process still
locked to simplify some locking and close some races.

Approved by:	re (scottl)
2006-03-01 20:54:33 +00:00
andre
e41548655f MFC rev. 1.49 to 1.51: Print statistics on jumbo clusters and improve
packet zone information.

Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-03-01 20:54:21 +00:00
jhb
7d639ae56e MFC: Remove extraneous PHOLD() in kthread_create().
Approved by:	re (scottl)
2006-03-01 20:53:24 +00:00
jhb
1729bc3f72 MFC: Hold the proc lock while calling proc_sstep().
Approved by:	re (scottl)
2006-03-01 20:52:10 +00:00
wkoszek
dbe3338f30 Forced commit in order to note, that I brought style(9) changes together with
functional changes. It was done by accident. Proper comment to the previous
commit should be:

MFC:
   Extend kldunload(8) functionality and fix minor problems:
   o multiple modules can be unloaded at once (specified either by id or be
     module name)
   o exit with EX_USAGE after usage() is called.
   o remove unused variables, since we keep command line flags as bitmask,
     in 'opt'.
   o 'kldload -n ...' does nothing. Add comment to this options.

   Additionally:
   o Update manual page to conform new functionality.
   o Increace WARNS to 6. Because we can.

   o Bump a date in .Dd field. Spotted by brueffer@.

   Approved by:	cognet (mentor)

Approved by:	re (scottl)
2006-03-01 20:51:53 +00:00
andre
0d82649a50 MFC: Replace 4k mbuf clusters with PAGE_SIZE clusters.
Note: The jumbo mbuf cluster API has been MFC'd only recently and
never shipped in a release.  Thus the API change does not violate
our stable branch guidelines with regard to API compatibility.

Requested by:	glebius, gallatin
Sponsored by:	TCP/IP Optimization Fundraise 2005
Approved by:	re (scottl)
2006-03-01 20:51:49 +00:00
jhb
1169153605 MFC: Change the x86 interrupt code to allocate IDT vectors on-demand.
Approved by:	re (scottl)
2006-03-01 20:50:10 +00:00