117025 Commits

Author SHA1 Message Date
sobomax
cd0631dc50 MFC: Propagate return value of the kern_execve() to the caller properly.
Approved by:	re
2005-08-04 23:25:32 +00:00
emax
c7034773d9 MFC if_an.c v1.69 to RELENG_6
Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()
are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following
WITNESS warning (produced when an(4) PCMCIA card is detached).
taskqueue_drain with the following non-sleepable locks held:
exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/
sys/dev/an/if_an.c:2836

Do not lock an to check gone flag. Only need to hold the lock to set
the gone flag.

Reviewed by:	imp
Approved by:	re (kemsmith)
2005-08-04 21:12:22 +00:00
brueffer
5660f0803e MFC: rev. 1.28
Mention the default value of PATH and that it may be overridden.

Approved by:	re (hrs)
2005-08-04 19:58:48 +00:00
pjd
02707895b1 MFC: ggatec.8 1.6
Update manual page after ggate rewrite.

Approved by:	re (hrs)
2005-08-04 18:05:33 +00:00
jmg
6361159f78 MFC: v1.45 intro.2, v1.40 help.common
fix a couple documentation nits

Approved by:	re (hrs)
2005-08-04 17:53:40 +00:00
anholt
117221bef4 MFC: r300 DRM support. Supports all current non-PCIE Radeons, as far as the
developers know.

Approved by:	re (kensmith)
2005-08-04 17:31:02 +00:00
jhb
c429bc012d MFC: Fix a typo in the name of a dmamap for a bus_dmamap_sync().
Approved by:	re (kensmith)
2005-08-04 16:44:17 +00:00
jhb
28b017aabc MFC: Fix a bug in pmap_protect() in the PAE case where it could look up the
wrong vm_page_t associated with a pte.

Approved by:	re (kensmith)
2005-08-04 16:41:25 +00:00
nectar
4cb10a2e72 Disable hyperthreading by default for 6.x.
Approved by:	re
2005-08-04 15:17:06 +00:00
kensmith
b1c07723dd Almost ready for BETA2 builds...
Approved by:	re (implicit)
2005-08-01 18:14:48 +00:00
cvs2svn
1947b07479 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-08-01 17:50:20 +00:00
rwatson
a4a77db603 Merge memstat.c:1.6, memstat_internal.h:1.6, memstat_malloc.c:1.5,
memstat_uma.c:1.9 from HEAD to RELENG_6:

 Correct two libmemstat(3) bugs:

  - Move memory_type_list flushing logic from memstat_mtl_free() to
    _memstat_mtl_empty(), a libmemstat-internal function that can
    be called from other parts of the library.  Invoke
    _memstat_mtl_empty() from memstat_mtl_free(), which also frees
    the containing list structure.

    Invoke _memstat_mtl_empty() instead of memstat_mtl_free() in
    various error cases in memstat_malloc.c and memstat_uma.c, which
    previously resulted in the list being freed prematurely.

  - Reverse the order of updating the mt_kegfree and mt_free fields
    of the memory_type in memstat_uma.c, otherwise keg free items
    won't be counted properly for non-secondary zones.

Merged to RELENG_6 earlier than the proposed MFC after date so that it
can make BETA2.

Approved by:	re (kensmith)
2005-08-01 17:14:51 +00:00
csjp
012dd88ba4 Synch with HEAD, this brings in net.bpf.stats.
MFC revision 1.155 (bpf.c)
MFC revision 1.30 (bpfdesc.h)

Approved by:	re@ (kensmith)
2005-07-31 00:48:18 +00:00
csjp
f087bcb30a MFC revision 1.24
date: 2005/07/30 15:53:40;  author: csjp;  state: Exp;  lines: +2 -1
Add missing parenthesis around error handling code upon attaching
mlx devices. This fixes an issue where mlx device drives fail to be
detected at system boot.

Approved by:	re@ (scottl)
2005-07-31 00:41:53 +00:00
mux
e1c2a59068 MFC r1.241:
date: 2005/07/29 22:40:06;  author: mux;  state: Exp;  lines: +1 -0
  Add a new PCI id for fxp(4) cards found on ICH7-based systems.

  Submitted by:   Martin Nilsson <martin@gneto.com>

Approved by:	re@ (kensmith)
2005-07-30 21:45:32 +00:00
hrs
e9ae3443f3 MFC: Document IODATA USB-RSAQ3 USB-Serial Adapter as a supported device.
Approved by:	re (scottl)
2005-07-30 09:35:38 +00:00
hrs
f80092159f MFC: Fix typos and use consistent section names in manual pages:
s/SYSCTLS/SYSCTL VARIABLES/
 s/TUNABLES/LOADER TUNABLES/
 s/CAVEAT/CAVEATS/
 s/DESCIPTION/DESCRIPTION/

Approved by:	re (scottl)
2005-07-30 09:34:58 +00:00
jkoshy
3cc3df0ace MFC r1.7:
Add COMPATIBILITY and HISTORY sections.

Approved by:	re (kensmith)
2005-07-30 09:12:51 +00:00
jkoshy
cd4b393de9 MFC r1.3:
Catch with the source code.  Sort a list alphabetically.  Add a
  HISTORY section.

Approved by:	re (kensmith)
2005-07-30 09:11:25 +00:00
des
0c2d08649a MFC: build BIND without thread support.
Approved by:	re (kensmith)
2005-07-30 07:56:28 +00:00
pjd
5da5bebd6d MFC:
GEOM_ZERO class for performance testing.

Approved by:	re (kensmith)
2005-07-30 06:22:25 +00:00
pjd
b19d155069 MFC: kern_malloc.c 1.145
Fix the way how "InUse" column in 'vmstat -m' output works:
- increase number of allocations count only on successfull malloc(9),
  so it doesn't confuse people;
- because we need to check if 'size > 0', hide 'mtsp->mts_memalloced += size;'
  under the check as well, as for size=0 it is of course a no-op;
- avoid critical_enter()/critical_exit() in case of failure in
  malloc_type_allocated() as there will be nothing to do.

OK'ed by:	rwatson
Approved by:	re (kensmith)
2005-07-30 06:14:57 +00:00
sam
e6f9083cad MFC of api changes (missed in previous commit)
Approved by:	re (kensmith)
2005-07-30 04:09:06 +00:00
sam
ef72bcd034 MFC: add fragthreshold support and accept - (or any) for rtsthreshold
Approved by:	re (kensmith)
2005-07-30 03:31:15 +00:00
sam
b9cc67bbb8 MFC fixes to deal with interfaces being removed:
o we no longer loop
o wpa_supplicant terminates when the last configured interface goes away

Approved by:	re (kensmith)
2005-07-30 01:19:10 +00:00
brooks
7b1f88bc8a Sync dhclient with HEAD:
- Don't complain when debouncing dhclient startup.
 - Fix buffer handling in reveive_packet().  This fixes infinite cpu
   eating loops and probably some crashes.
 - Spell if_defaultroute route correctly in dhclient-script so we
   are allowed to change the default route.
 - Document dhclient -b.
 - Treat reassociation like association.
 - Do not force server-name to be a valid domain name.
 - Handle servers that send NUL-terminated host-name options.

Approved by:	re (scottl)
2005-07-29 23:36:28 +00:00
sam
8764859484 Sync wireless support from HEAD:
o numerous net80211 fixes including fixes for internal bridging,
  frag threshold ioctl, rts threshold bounds checking, min wep
  length check, reject assoc requests w/ wpa/rsn ie when wpa
  is not configured
o misc api changes to reduce differences against forthcoming changes
o add stats for future use and reserve space
o probe inactive neighbors in adhoc mode before timing them out
o debug msg fixups (diff reduction against forthcoming code)
o driver mods to track api changes

Also for ath driver:
o fix diversity handling
o use any fixed antenna setting when sending beacons in adhoc mode

Approved by:	re (kensmith)
2005-07-29 23:31:04 +00:00
kris
1412ec26bf MFC:
>  devfs is not yet fully MPSAFE - for example, multiple concurrent devfs(8)
>  processes can cause a panic when operating on rulesets.

Approved by:	re (scottl)
2005-07-29 23:21:23 +00:00
krion
7be509ace2 MFC: main.c:1.6, perform.c:1.13, pkg_version.1:1.36, version.h:1.5
date: 2005/07/27 07:55:12;  author: krion;  state: Exp;  lines: +12 -2
  Add -o/-O options to pkg_version:

   -o  Show the origin recorded on package generation instead of the
       package name.

   -O  Only list packages whose registered origin is origin.

Approved by:	re (kensmith)
2005-07-29 18:16:06 +00:00
emax
01e9f84530 Insta-MFC to RELENG_6
Fix typo and check correct (rsp) pointer against the NULL value.

Submitted by:	Oliver < urnenfel at tiscali dot es >
Approved by:	re (kensmith)
2005-07-29 16:42:42 +00:00
njl
c388e8b5ba MFC: Bring up to HEAD. Notify user if they don't have permission to run
powerd and don't exit if the error is EPERM.

Approved by:	re (kensmith)
2005-07-29 16:34:05 +00:00
njl
c4c6f5773e MFC: Bring up to HEAD, fixing output format bugs and adding power status
support.

Approved by:	re (kensmith)
2005-07-29 16:31:58 +00:00
njl
afb90606d6 MFC: Bring acpi_battery support up to HEAD, changing the API slightly
and fixing various bugs.

Approved by:	re (kensmith)
2005-07-29 16:27:07 +00:00
njl
d3ce3a1a5c MFC: Use __FBSDID
Approved by:	re (kensmith)
2005-07-29 16:22:37 +00:00
ume
1781d2a2fa MFC 1.12: don't accept invalid form of an address like 1:2:3:4:5:6:7::8.
Approved by:	re (kensmith)
2005-07-29 16:10:35 +00:00
imura
0462832151 MFC rev 1.2: Fix core dump when "smbutil lc".
Approved by:	re (kensmith)
2005-07-29 16:06:33 +00:00
imura
e7ccba9730 MFC rev 1.17: Don't compile ral and ural in the PAE kernel.
Approved by:	re (kensmith)
2005-07-29 16:02:27 +00:00
mux
2b12b67f24 MFC r1.441:
date: 2005/07/24 17:55:57;  author: mux;  state: Exp;  lines: +1 -2
  Add back ed(4) in amd64 GENERIC.  It now works nicely and since those
  chips are commonly found, it makes sense to have it in GENERIC.  This
  is a candidate for a RELENG_6 MFC.

  Approved by;    peter
  Requested by:   pav
  Tested by:      pav

Approved by:	re@ (kensmith)
2005-07-29 15:40:58 +00:00
delphij
76233f99bb MFC 1.123:
Allow PLAY_MSF, PLAY_TRACK, PLAY_TRACK_REL, PAUSE, PLAY_12 commands to pass
through umass(4), in order to make cdcontrol(1) to issue commands to a USB
CD driver.

The command IDs were obtained from the CAM subsystem.  This was tested
on half dozen of USB CD drivers from different vendors.

Suggested by:   "intron" <intron at intron dot ac>
PR:             usb/83439
Reviewed by:    sanpei
Approved by:	re (kensmith)
2005-07-29 15:39:26 +00:00
cvs2svn
ec43e58941 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-07-29 10:06:58 +00:00
jkoshy
d8ee659609 MFC r1.9:
Fix breakage introduced in rev 1.7.

Approved by:	re (kensmith)
2005-07-29 03:01:40 +00:00
jkoshy
478aec733a MFC r1.12:
Use LK_CANRECURSE since when a PMC-owning process performs an exec(),
  the new text vnode is already locked by itself.

Approved by:	re (kensmith)
2005-07-29 02:58:34 +00:00
rwatson
2be4c0a749 Merge mbuf.c:1.43,1.44 and Makefile:1.27 from HEAD to RELENG_6:
Modify "netstat -mb" to use libmemstat(3) when acting on a live system,
  with a number of positive benefits:

  - Start using UMA(9) statistics for mbufs and clusters, which avoids
    using the mbuf allocator statistics which suffer from races under
    load on SMP.  This should eliminate "negative" mbuf counts in
    netstat -mb.

  - We are now able to track cached (free) mbufs and clusters and count
    it towards memory allocated by the network stack.

  - We are now also able to track memory allocated to mbuf tags since
    libmemstat(3) can also query malloc(9).  We don't print this except
    as part of the total (for now - #if 0).

  - We are now able to track mbuf/cluster/packet allocation failures,
    although they are not currently printed (#if 0).

  - Don't print out sfbuf statistics when running on a kernel core, as
    currently that code is able only to query sysctl for statistics.

mbuf.c:1.44:

  Since libmemstat(3) now supports its own error management mechanism,
  use that instead of trying to use errno, in order to produce a
  sensible error message.

Approved by:	re (kensmith)
2005-07-28 19:54:55 +00:00
nyan
533eeeea47 MFi386: revision 1.616.2.1
> Use an interrupt gate for the NMI handler and prevent too-early
> enabling of interrupts inside of trap().

Approved by:	re (kensmith)
2005-07-28 17:22:39 +00:00
rwatson
41ed4ba1fd Merge Makefile:1.206 from HEAD to RELENG_6:
Hook libmemstat(3) up to the build.

Approved by:	re (kensmith)
2005-07-28 13:47:18 +00:00
rwatson
15a631b33f Merge memstat_uma.c:1.8 from HEAD to RELENG_6:
If a retrieved UMA zone is a secondary zone, don't report keg free
  items, as they actually belong to the  primary zone, and maye otherwise
  be reported more than once.

Approved by:	re (kensmith)
2005-07-28 12:11:41 +00:00
rwatson
b90366a3fc Merge uma.h:1.27, uma_core.c:1.129 from HEAD to RELENG_6:
Rename UMA_MAX_NAME to UTH_MAX_NAME, since it's a maximum in the
  monitoring API, which might or might not be the same as the internal
  maximum (currently none).

  Export flag information on UMA zones -- in particular, whether or
  not this is a secondary zone, and so the keg free count should be
  considered in that light.

Approved by:	re (kensmith)
2005-07-28 12:10:19 +00:00
jkoshy
0775c0fa95 MFC { exception.s:r1.114, machdep.c:r1.617, trap.c:r1.278 }
Use an interrupt gate for the NMI handler and prevent too-early
enabling of interrupts inside of trap().

Revert rev 1.113 of "sys/i386/i386/exception.s" as it is no longer
needed.

Approved by:	re (kensmith)
2005-07-28 03:30:53 +00:00
grehan
85dcd28828 MFC, r1.234:
Make sure /etc/fstab is written out for Apple-partitioned drives

    reviewed by:    scottl

Approved by:	re (Ken Smith)
2005-07-28 01:18:19 +00:00
grehan
c3509ed9f1 MFC, r1.161:
Recognise GEM ethernet adapter (sparc64/ppc).

    reviewed by:    scottl

Approved by:	re (Ken Smith)
2005-07-28 01:17:12 +00:00