122027 Commits

Author SHA1 Message Date
netchild
34d21d2a2c MFC (1 of X):
- easy linuxulator style(9) fixes (easy = hand removal of non-style code
   change sections in a full diff)

Tested by:	scf (i386), Arno J. Klaassen <arno@heho.snv.jussieu.fr> (amd64)
2007-07-08 08:26:10 +00:00
kientzle
5c3735c354 MFC unbreak installworld. <sigh>
Pointy hat: me
2007-07-07 16:59:11 +00:00
remko
fdf641ceab MFC v 1.124 ata-all.h
MFC v 1.204 ata-disk.c

  Add Viking Interworks 256MB as an ata device; this might give
  some false positives but at this moment it is better to add
  support then to dont have it at all (comment from Soren).

  PR: kern/111516
  Submitted by: Thomas Nystrom <thn at saeab dot se>
  Approved by: re (kensmith)
  Approved by: imp (mentor)
  OK'ed by: sos (With the comment noted above about false
  positives).

Approved by:	imp (mentor,implicit)
2007-07-07 11:36:44 +00:00
remko
66a32e6850 MFC rev 1.33 mdmfs.c
-n is used by newfs to tell "do not generate a .snap directory" instead of
 specifying rotational-positions, reflect that in the command arguments.

 PR: bin/110178
 Submitted by: Alex Kozlov <spam at rm-rf dot kiev dot ua>
 Approved by: imp (mentor)

Approved by:	imp (mentor, implicit)
2007-07-07 11:22:46 +00:00
brian
77b1e42295 Fix a problem introduced in netinet/in.c 1.85.2.7 where
in_ifdetach() calls in_delmulti_ifp().

The code now *really* deletes the elements in in_multihead
for the ifp that's going away (rather than just decrementing
the reference count).  Previously we were left with inm and
ifma structures containing bogus ifnet pointers after
destroying an interface that had more than one IP4 assignment
made to it in it's lifetime.

I've also added a if_delmulti_ent() to make deleting known
ifma structures possible rather than depending on
if_findmulti() to end up finding the same thing.  It
will in fact always find the correct ifma *unless* the
passed sockaddr has a bogus sa_len of zero.

Finally, when adding a multicast address, we no longer
increment the refcount (well, we do, but then we decrement
it again).  The refcount here is in fact bogus so hopefully
readers will see that now.

This code is going directly into -stable as it has been
rewritten in -current and those changes are deemed too
intrusive for -stable consumption right now.

Reviewed by:	bms
2007-07-07 00:54:46 +00:00
kientzle
3c3f90afd7 MFC some comment changes and a reworking of one cast.
With this change, libarchive source in -CURRENT and 6-STABLE
is exactly identical.  The only difference is the
version number (1.9 for 6-STABLE, 2.2 for -CURRENT) and
SHLIB_MAJOR (2 in 6-STABLE, 4 in -CURRENT).  The
source has conditionals to compile the old libarchive 1
API/ABI or the newer libarchive 2 API/ABI depending on
the version number set at compile time.
2007-07-06 16:08:04 +00:00
kientzle
a9b5028b89 MFC removal of extraneous file. This function has been moved
into archive_read.c.
2007-07-06 16:01:06 +00:00
kientzle
4dac99162c Forced commit to note that the big MFC included
the recent fix to disable attempts to use lseek()
on non-regular files.  In particular, this fixes
"tar -t" on tape drives.
2007-07-05 02:30:46 +00:00
kientzle
3cb23e7c55 MFC libarchive 1.9.
This is identical to libarchive 2.2.3 from -CURRENT, with
all of the performance improvements, bug fixes, and new
formats, except that:
  * archive_read_finish() and archive_write_finish() don't return errors
  * archive_write_data() has a different return type
  * user-provided skip callbacks have a slightly different signature

These differences maintain ABI compatibility with libarchive 1.3.1
(hence the "1" in "1.9") and allows libarchive 1.9 to have the
same SHLIB_MAJOR and otherwise serve as a straight replacement
for libarchive 1.3.1 (only better).

Thanks to:  Many, many people who contributed error reports, bug fixes,
  and suggestions over the last three years. ;-)
2007-07-05 01:56:41 +00:00
cvs2svn
65d8032785 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2007-07-04 23:27:39 +00:00
bms
e1599515d1 MFC rev XXXX:
Do not attempt to enable AHCI mode on ALi SATA controllers other
 than the 5288.

 It is not correctly implemented in earlier silicon, and the BIOS often
 lies about AHCI capability on platforms where these chips are deployed.
 With this change I am able to boot FreeBSD on the ASUS Vintage AH-1
 barebones system.

Approved by:	sos
2007-07-04 12:29:15 +00:00
ariff
cdc5bc36ec MFC:
Revisions:
  1.43      src/sys/dev/sound/pci/hda/hdac.c
  1.7       src/sys/dev/sound/pci/hda/hdac_private.h

- Fix input/microphone support for ASUS A8N-VMCSM series.

  Submitted by: Simon Schubert <corecode@fs.ei.tum.de>

- Defer flushing unsolicited response into taskqueue thread rather
  than handle it directly in interrupt handler, since few of its
  operations (like measuring/calibrating jack impedance) are quite
  expensive.
- Misc. debugging cleanups.

Tested by:	joel
2007-07-04 04:05:22 +00:00
ariff
b9c0cfdfd6 MFC (revision 1.10):
Fix no-sound issues with ASUS A9T notebook.

Note: The offending quirk should have been made model/codec specific,
but since there were no records / log which model requires it, the quirk
logic had to be inverted (blacklist instead of whitelist).

Tested by:	Arkadiy Dudevitch <dudevitch@englerllc.com>
2007-07-04 04:04:42 +00:00
remko
c757a99726 MFC rp.c rev 1.73
Fix Rocketport so that it does not crash the system when a device pointer
  changes for example:

  (From Craig Leres):

  tip to a rocketport line
  run "/etc/rc.d/devfs restart"
  exit tip
  (wait for the system to reboot)

  Thanks to Robert Watson for poking me to fix this.

  PR:		kern/109152
  Approved by:	imp (mentor)
  Approved by:	re (kensmith)
  Reviewed by:	jhb
  Submitted by:	Craig Leres <leres@ee dot lbl dot gov>

Approved by:	imp (mentor, implicit)
2007-07-03 20:35:07 +00:00
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