121913 Commits

Author SHA1 Message Date
bmah
136ee0a895 MFC: less v406. 2007-07-03 16:01:10 +00:00
rwatson
0166bdd415 Fix a bug in sblock() that has existed since revision 1.1 from BSD:
correctly return an error if M_NOWAIT is passed to sblock() and the
operation might block.  This remarkably subtle macro bug appears to
be responsible for quite a few undiagnosed socket buffer corruption
and mbuf-related kernel panics.

This bug has already been fixed in 7-CURRENT as part of the move to
using sx(9) locks to serialize simultaneous socket I/O, but is an
MFC candidate for all earlier FreeBSD -STABLE branches.

MFC after:	2 weeks
Found by:	Isilon
Submitted by:	jeff
Tested by:	jhb, Yahoo!
2007-07-03 10:14:13 +00:00
delphij
6de6b8a4ce MFC: less v406 2007-07-03 05:12:43 +00:00
pav
8060ec5360 MFC 1.12: Replace rather inefficient bubble sort with a recursive depth-first
search.  This speeds up registration of packages considerably.
2007-07-02 08:05:34 +00:00
pav
510cd574a8 MFC rev. 1.114: Add new x11-drivers category.
MFC rev. 1.115: Add new virtual category kld
2007-07-01 10:37:16 +00:00
jhb
40ca6c4170 MFC: Use the tsc to implement DELAY() if it is usable and calibrated.
Reviewed by:	peter
2007-06-29 21:05:28 +00:00
jhb
6eac914455 Properly initialize the address value in siginfo for Linux binaries on
amd64.  amd64 has a separate tf_addr in the trapframe unlike i386 which
reuses tf_err to pass the address to signals.
2007-06-29 21:04:22 +00:00
delphij
674c5f6bbc MFC: Add -k option. 2007-06-29 01:45:18 +00:00
thompsa
8417a58fbd MFC r1.37
Check the correct port to see if synced is true.

PR:             misc/113958
Submitted by:   Aaron Needles
2007-06-29 00:35:37 +00:00
njl
0f671485fc MFC: use busdma to get a page for activating speedstep mode. 2007-06-28 21:26:11 +00:00
njl
8c7442cb09 MFC: makefile cleanups and remove hard-coded SMBus port from alpm and viapm. 2007-06-28 21:23:56 +00:00
jhb
1f96e040a0 MFC 1.131: Fix for a race between the thread transmitting the request and
the thread processing the reply.
2007-06-28 03:28:28 +00:00
rafan
d322145f20 Force commit to note in previous MFC the correct discussion for
removing warning about nullfs is

http://docs.freebsd.org/cgi/mid.cgi?6eb82e0706182246q6563ba03x31038082125b50ae

Reminded by:	des
2007-06-27 02:37:54 +00:00
remko
f3a8b45984 MFC v 1.66 udf_vnops.c
Correct corrupt read when the read starts at a non-aligned offset.

	PR: kern/77234
	Approved by: imp (mentor)
	Requested by: many many people
	Submitted by: Andriy Gapon <avg at icyb dot net dot ua>

Approved by:	imp (implicit, mentor)
2007-06-26 06:59:24 +00:00
rafan
4d740ae97e MFC rev 1.1435 (nullfs part)
- Remove the warning about NULL filesystem. It is stable and safe to use in
    both 6.x and 7.x. This is based on feedbacks on this thread

    http://docs.freebsd.org/cgi/getmsg.cgi?fetch=81818+0+current/freebsd-stable
    and my use it on 6.x.

Discussed on:  freebsd-stable@
2007-06-26 01:11:03 +00:00
jhb
482018ae53 MFC 1.11 - 1.14: Add a new counter for SACK retransmits and expand TCP
counters from 9 digits to 12.
2007-06-26 00:05:36 +00:00
jhb
27111628aa MFC 1.306: Conditionally acquire Giant when dropping a reference on the
ktrace vnode during execve().
2007-06-25 23:58:46 +00:00
emaste
149b7332ae MFC compat32 argument to do_wait() to make it use fuword32() for readling
longs from 32 bit processes.

Submitted by:	jhb
2007-06-23 19:18:50 +00:00
brueffer
d2ae102bbe MFC: rev. 1.11
Catch up with the code.
2007-06-23 15:37:34 +00:00
maxim
b3c9d0fb6d MFC rev. 1.17: do not warn if the process exits before we get its name. 2007-06-23 06:22:24 +00:00
maxim
bd35295c7c MFC rev. 1.56: an example how to create /etc/mtree style mtree(8) files. 2007-06-23 06:19:39 +00:00
marck
6def5b91cb MFC rev 1.21:
Failing to set new frequency should not lead to powerd exiting.
	Change err(3) to warn(3) as three other cases.

Approved by:    njl, des
2007-06-22 00:01:55 +00:00
ariff
221bffcff3 MFC: (revision 1.42)
- Fix headphone jack sensing support for Olivetti Olibook 610-430 XPSE [1].
- Drain all callout handlers during driver detach appropriately.
- M_NOWAIT -> M_WAITOK

Tested by:	[1] Gonzalo Lionel Rodriguez
2007-06-21 20:58:44 +00:00
kmacy
b72ebb8641 MFC:
- switch adapter and port lock over to using sx so that resources
   can be allocated atomically
 - add debug macros for printing lock initialization / teardown
 - add buffers to port_info and adapter to allow each lock to have a
   unique name
 - destroy mutexes initialized by cxgb_offload_init
 - remove recursive calls to ADAPTER_LOCK
 - move callout_drain calls so that they don't occur with the lock held
 - ensure that only as many qsets as are needed are initialized and
   destroyed

 Sponsored by: Chelsio Inc.
2007-06-21 03:30:18 +00:00
philip
8105866602 MFC: moused.c rev 1.79
Fix a (very) longstanding bug in moused(8) affecting high-resolution
    rodents when linear acceleration (-a) was enabled with a <1 value to
    slow them down.

    Previously, rounding errors would eat small movements so the mouse
    had to be moved a certain distance to get any movement at all.  We
    now calculate the rounding errors and take them into account when
    reporting movement.

Submitted by:	Oliver Fromme <olli -at- lurza.secnetix.de>
2007-06-20 08:29:18 +00:00
simokawa
52fc334d33 MFC: rev 1.7
Increase buffer size of DV stream to prevent buffer overrun.
2007-06-20 03:24:38 +00:00
bmah
c018ff252b MFC: Fix off-by-one error (introduced in r1.60) that had the effect of
disallowing a read of exactly MAXPHYS bytes.

	pseudofs_vnops.c	1.63 -> 1.64
2007-06-19 18:16:42 +00:00
jhb
2567006b2f Regen. 2007-06-18 22:45:41 +00:00
jhb
9d52499b7d MFC: Support for running 32-bit multithreaded binaries using libthr on
amd64 including:
- Add 32-bit wrappers for thr_new(), thr_suspend(), and the umtx system
  calls.
- Add support to amd64 for constructing thread upcalls for 32-bit
  processes.
- Leave %fs and %gs alone in the signal trampoline for 32-bit processes on
  amd64.
- Add 'casuword32()' to amd64 and ia64.

Tested by:	emaste
2007-06-18 22:44:59 +00:00
gshapiro
952376d89d MFC: You can never have enough documentation.
Document the SENDMAIL_ALIASES, SENDMAIL_MAP_SRC, SENDMAIL_MAP_TYPE, and
     SENDMAIL_START_SCRIPT
     .Xr make.conf 5
     variables.
     These are used in
     .Pa /etc/mail/Makefile .

     PR:       conf/40548

     Revision  Changes    Path
     1.140     +40 -0     src/share/man/man5/make.conf.5
2007-06-18 04:35:36 +00:00
kmacy
1160e870a1 missed add 2007-06-18 02:05:17 +00:00
njl
400d4872e1 Fix compile problem using older acpi-ca interface. 2007-06-18 00:29:55 +00:00
kmacy
9506266355 MFC:
- switch over to standard method for initializing cdevs (contributed by scottl@)
 - break out timer_reclaim_task to be per-port
 - move msix teardown into separate function
 - fix bus_setup_intr for msi-x for the multi-port case so that msi-x resources
   are not corrupted on unload
 - handle 10/100/1000 base-T media and auto negotiation
 - bind qset to cpu even for singleq case
 - white space cleanups
 - remove recursive PORT_LOCK
 - move mtu setting to separate function
 - stop and re-init port when changing mtu
 - replace all direct references to m_data with calls to mtod
 - handle attach failure better by not trying to de-initialize
   taskqueues when they have not been allocated
 - no longer default to jumbo frames
 - fix gcc-4.2 signedness compile errors

Sponsored by: Chelsio Inc.
2007-06-17 23:52:17 +00:00
njl
5e114508d2 MFC: add hooks for HPET missed in previous commit 2007-06-17 17:28:41 +00:00
njl
5e0ffc7159 MFC: add support for probing HPET via table 2007-06-17 17:19:21 +00:00
simokawa
a2dbc4cca9 MFC: Suppress compiler optimization so that orb[1] must be written first. 2007-06-17 10:46:19 +00:00
brueffer
952588f567 MFC:
Remove compat ifdefs for version < 500014

Approved by:	rwatson (mentor)
2007-06-17 09:38:27 +00:00
cvs2svn
7f8046d2c1 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-06-17 00:43:51 +00:00
wilko
6a3dcefa18 Forced commit to clarify preceding unclear commit message:
- core was contacted by Joerg Peter Schley requesting 2 comment lines
  be removed with his name & email address in it.
2007-06-16 20:49:49 +00:00
wilko
41666fd18a Per request (to core) by the person refered to in the comment. 2007-06-16 19:23:14 +00:00
maxim
e49b85d836 MFC periodic/daily/480.status-ntpd. 2007-06-16 08:07:08 +00:00
delphij
6f8d77c784 Pullup revision 1.191
date: 2007/03/12 09:13:13;  author: sos;  state: Exp;  lines: +1 -1
Fix support for the VIA8237A SATA part.

HW sponsored by: Bob Bishop
2007-06-15 08:53:23 +00:00
njl
3d656def18 MFC 1.4: note panic if struct selinfo is used without being zeroed. 2007-06-15 02:54:32 +00:00
gshapiro
38d3d614c9 MFC: Add a new rc.conf variable, sendmail_rebuild_aliases, which tells
/etc/rc.d/sendmail whether or not to run newaliases if the database
     is missing or the aliases text file is newer than aliases.db.

     In my opinion, the aliases file should never be automatically rebuilt.
     The current text form could represent a work in progress.  Therefore,
     in FreeBSD 7.0, this new option will default to "NO".  When this rc.d
     change is MFC'ed, it will need to remain "YES" to maintain backward
     compatibility.

     PR:             conf/86252
     Approved by:    re (kensmith)
     MFC after:      3 days

     Revision  Changes    Path
     1.316     +1 -0      src/etc/defaults/rc.conf
     1.17      +10 -8     src/etc/rc.d/sendmail
     1.1039    +6 -0      src/release/doc/en_US.ISO8859-1/relnotes/article.sgml
2007-06-15 02:39:36 +00:00
davidch
e7c59ea317 - Fixed build problem with unused variable. 2007-06-14 22:58:14 +00:00
davidch
b06d865575 - Updated firmware to latest release (v3.4.8) to fix TSO + jumbo frame lockup
- Added MSI (hw.bce.msi_enable) sysctl
- Fixed kernel panic when MSI is used and module is unloaded
- Added several new debug routines
- Removed slack space for RX/TX chains since it only covers sloppy coding
- Fixed a potential problem when programming jumbo MTU size in hardware
- Various other comment changes
- Added 2.5G support for BCM5708S
2007-06-14 21:28:14 +00:00
davidch
dc731d42ef New features:
- Moved BCM5706S/5708S SerDes support to brgphy (since they are not technically
  TBI interfaces)
- Added 2.5G support for BCM5708S
2007-06-14 21:07:19 +00:00
davidch
ab3228a497 - Added a new Ethernet media type (2500BaseSX) to support BCM5708 controllers
which support a 2.5Gbps mode over fiber using next page extensions during
  autonegotiation.  Typically only found in blade systems which also include
  a Broadcom 2.5Gbps capable switch.
2007-06-14 20:02:41 +00:00
bde
2c1a613795 MFC: all except 1.63:
1.59-1.62: already merged
1.63: removal of bridge(45) not merged
1.64: already merged
1.65: use uintmax_t
1.66: repair formatting to 79 columns
1.67: increase accuracy of timeouts and thus of per-interval counts
1.68: style fixes

Requested by:	kuriyama (1.66)

1.66 changes the whitespace in output.  Hopefully nothing depends on the
exact misformatting that it fixes.
2007-06-14 12:38:12 +00:00
keramida
d012a1e8fc MFC 1.326 -- Add a description of moused_XXX_flags to rc.conf(5) 2007-06-14 08:09:37 +00:00