]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoCherry-pick a single bit from r222958. Do not pass '3' as the sleepflag
kib [Mon, 13 Jun 2011 19:40:09 +0000 (19:40 +0000)]
Cherry-pick a single bit from r222958. Do not pass '3' as the sleepflag
to bufobj_wwait() in the ffs_syncvnode(). It only mangles the priority
argument of msleep().

Discussed with: jeff

git-svn-id: svn://svn.freebsd.org/base/stable/8@223055 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222586:
kib [Mon, 13 Jun 2011 19:33:13 +0000 (19:33 +0000)]
MFC r222586:
Fix an infinite loop in vm_object_page_clean() when the
filesystem returns permanent errors for some page writes.

To accomodate the stable/8 locking requirements, vm page queue lock
is taken around the loop in vnode_pager_undirty_pages() which modifies
m->dirty field.

Reviewed by: alc

git-svn-id: svn://svn.freebsd.org/base/stable/8@223054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219925:
jh [Mon, 13 Jun 2011 15:53:56 +0000 (15:53 +0000)]
MFC r219925:

Recognize "ro", "rdonly", "norw", "rw" and "noro" as equal options in
vfs_equalopts(). This allows vfs_sanitizeopts() to filter redundant
occurrences of these options. It was possible that for example both "ro"
and "rw" options became active concurrently.

PR: kern/133614

MFC r220040:

Fix some style issues in r219925.

git-svn-id: svn://svn.freebsd.org/base/stable/8@223050 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222802:
davidxu [Mon, 13 Jun 2011 06:32:56 +0000 (06:32 +0000)]
MFC r222802:
Use p4prio_to_tsprio to calculate TS priority instead of using
p4prio_to_rtpprio which is for RT priority.

git-svn-id: svn://svn.freebsd.org/base/stable/8@223037 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222466
rmacklem [Sun, 12 Jun 2011 02:05:59 +0000 (02:05 +0000)]
MFC: r222466
Modify the umount(8) command so that it doesn't do
a sync(2) syscall before unmount(2) for the "-f" case.
This avoids a forced dismount from getting stuck for
an NFS mountpoint in sync() when the server is not
responsive. With this commit, forced dismounts should
normally work for the NFS clients, but can take up to
about 1minute to complete.

git-svn-id: svn://svn.freebsd.org/base/stable/8@223003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222464
rmacklem [Sun, 12 Jun 2011 01:48:31 +0000 (01:48 +0000)]
MFC: r222464
Add a check for MNTK_UNMOUNTF at the beginning of nfs_sync()
in the old NFS client so that a forced dismount doesn't
get stuck in the VFS_SYNC() call that happens before
VFS_UNMOUNT() in dounmount(). Analagous to r222329 for the new NFS client.
An additional change is needed before forced dismounts will work.

git-svn-id: svn://svn.freebsd.org/base/stable/8@223002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222758, 222759, 222770:
gjb [Sat, 11 Jun 2011 00:30:56 +0000 (00:30 +0000)]
MFC 222758, 222759, 222770:

- Document that when running 'su -m <user> -c <command>', <command> is
  run within a shell as <user>.
- Bump date
- Attempt to clear up some confusion in the following example, by
  stating the '-c' argument is passed to the shell, not to su(1), which
  would indicate the login class.

      'su -m <user> -c <command>'

PR: 157078

git-svn-id: svn://svn.freebsd.org/base/stable/8@222965 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 198714 [1]:
gjb [Fri, 10 Jun 2011 23:42:03 +0000 (23:42 +0000)]
MFC 198714 [1]:

- The majors file was removed long ago, 0 should be used instead.

PR: 139230
Original commit by: brueffer

git-svn-id: svn://svn.freebsd.org/base/stable/8@222961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222532:
jhb [Fri, 10 Jun 2011 19:16:26 +0000 (19:16 +0000)]
MFC 222532:
- Document the -H option and 'H' key alongside other options and keys
  rather than at the bottom of the manpage.
- Remove an obsolete comment about SWAIT being a stale state.  It was
  resurrected for a different purpose in FreeBSD 5 to mark idle ithreads.
- Add a comment documenting that the SLEEP and LOCK states typically
  display the name of the event being waited on with lock names being
  prefixed with an asterisk and sleep event names not having a prefix.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222948 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221079:
jhb [Fri, 10 Jun 2011 19:13:22 +0000 (19:13 +0000)]
MFC 221079:
Generate the network byte order version of the window size structure in a
temporary variable on the stack and then copy that into the output buffer
so that the htons() conversions use aligned accesses.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222660:
jhb [Fri, 10 Jun 2011 19:12:00 +0000 (19:12 +0000)]
MFC 222660:
- Rename the Cronyx Omega2-PCI entry to Exar XR17C158 since that is the
  real owner of the device ID.  Also rename the associated config
  function while here.
- Add support for the 2-port and 4-port Exar parts as well: Exar XR17C/D152
  and Exar XR17C154.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222651:
jhb [Fri, 10 Jun 2011 19:08:07 +0000 (19:08 +0000)]
MFC 222651:
Properly return an ENOBUFS error if a write to a tun(4) device fails
due to m_uiotombuf() failing.

While here, trim unneeded error handling related to tuninit() since it
can never fail.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222944 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222254:
jhb [Fri, 10 Jun 2011 19:03:17 +0000 (19:03 +0000)]
MFC 222254:
Fix an issue with critical sections and SMP rendezvous handlers.
Specifically, a critical_exit() call that drops the nesting level to zero
has a brief window where the pending preemption flag is set and the
nesting level is set to zero.  This is done purposefully to avoid races
where a preemption scheduled by an interrupt could be lost otherwise (see
revision 144777).  However, this does mean that if an interrupt fires
during this window and enters and exits a critical section, it may preempt
from the interrupt context.  This is generally fine as the interrupt code
is careful to arrange critical sections so that they are not exited until
it is safe to preempt (e.g. interrupts EOI'd and masked if necessary).

However, the SMP rendezvous IPI handler does not quite follow this rule,
and in general a rendezvous can never be preempted.  Rendezvous handlers
are also not permitted to schedule threads to execute, so they will not
typically trigger preemptions.  SMP rendezvous handlers may use
spinlocks (carefully) such as the rm_cleanIPI() handler used in rmlocks,
but using a spinlock also enters and exits a critical section.  If the
interrupted top-half code is in the brief window of critical_exit() where
the nesting level is zero but a preemption is pending, then releasing the
spinlock can trigger a preemption.  Because we know that SMP rendezvous
handlers can never schedule a thread, we know that a critical_exit() in
an SMP rendezvous handler will only preempt in this edge case.  We also
know that the top-half thread will happily handle the deferred preemption
once the SMP rendezvous has completed, so the preemption will not be lost.

This makes it safe to employ a workaround where we use a nested critical
section in the SMP rendezvous code itself around rendezvous action
routines to prevent any preemptions during an SMP rendezvous.  The
workaround intentionally avoids checking for a deferred preemption
when leaving the critical section on the assumption that if there is a
pending preemption it will be handled by the interrupted top-half code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222942 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222252:
jhb [Fri, 10 Jun 2011 18:58:32 +0000 (18:58 +0000)]
MFC 222252:
Simplify a stale assertion.  We have not called mi_switch() from a nested
critical section during a preemption for several years.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222032:
jhb [Fri, 10 Jun 2011 18:55:58 +0000 (18:55 +0000)]
MFC 222032:
Fix a race in the SMP rendezvous code.  Specifically, the write by the
last CPU to to finish the rendezvous action may become visible to
different CPUs at different times.  As a result, the CPU that initiated
the rendezvous may exit the rendezvous and drop the lock allowing another
rendezvous to be initiated on the same CPU or a different CPU.  In that
case the exit sentinel may be cleared before all CPUs have noticed causing
those CPUs to hang forever.

Workaround this by using a generation count to notice when this race
occurs and to exit the rendezvous in that case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220794:
jhb [Fri, 10 Jun 2011 18:51:22 +0000 (18:51 +0000)]
MFC 220794:
When checking to see if a window update should be sent to the remote peer,
don't force a window update if the window would not actually grow due to
window scaling.  Specifically, if the window scaling factor is larger than
2 * MSS, then after the local reader has drained 2 * MSS bytes from the
socket, a window update can end up advertising the same window.  If this
happens, the supposed window update actually ends up being a duplicate ACK.
This can result in an excessive number of duplicate ACKs when using a
higher maximum socket buffer size.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221209:
jhb [Fri, 10 Jun 2011 18:46:40 +0000 (18:46 +0000)]
MFC 221209:
TCP reuses t_rxtshift to determine the backoff timer used for both the
persist state and the retransmit timer.  However, the code that implements
"bad retransmit recovery" only checks t_rxtshift to see if an ACK has been
received in during the first retransmit timeout window.  As a result, if
ticks has wrapped over to a negative value and a socket is in the persist
state, it can incorrectly treat an ACK from the remote peer as a
"bad retransmit recovery" and restore saved values such as snd_ssthresh and
snd_cwnd.  However, if the socket has never had a retransmit timeout, then
these saved values will be zero, so snd_ssthresh and snd_cwnd will be set
to 0.

If the socket is in fast recovery (this can be caused by excessive
duplicate ACKs such as those fixed by 220794), then each ACK that arrives
triggers either NewReno or SACK partial ACK handling which clamps snd_cwnd
to be no larger than snd_ssthresh.  In effect, the socket's send window
is permamently stuck at 0 even though the remote peer is advertising a
much larger window and pending data is only sent via TCP window probes
(so one byte every few seconds).

Fix this by adding a new TCP pcb flag (TF_PREVVALID) that indicates that
the various snd_*_prev fields in the pcb are valid and only perform
"bad retransmit recovery" if this flag is set in the pcb.  The flag is set
on the first retransmit timeout that occurs and is cleared on subsequent
retransmit timeouts or when entering the persist state.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222934 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222389
rmacklem [Fri, 10 Jun 2011 13:28:14 +0000 (13:28 +0000)]
MFC: r222389
Fix the new NFS client so that it handles NFSv4 state
correctly during a forced dismount. This required that
the exclusive and shared (refcnt) sleep lock functions check
for MNTK_UMOUNTF before sleeping, so that they won't block
while nfscl_umount() is getting rid of the state. As
such, a "struct mount *" argument was added to the locking
functions. I believe the only remaining case where a forced
dismount can get hung in the kernel is when a thread is
already attempting to do a TCP connect to a dead server
when the krpc client structure called nr_client is NULL.
This will only happen just after a "mount -u" with options
that force a new TCP connection is done, so it shouldn't
be a problem in practice.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222931 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208582 (by mjacob):
mav [Fri, 10 Jun 2011 10:43:49 +0000 (10:43 +0000)]
MFC r208582 (by mjacob):
Add a new primitive, XPT_SCAN_TGT, to cover the range between scanning a
whole bus (XPT_SCAN_BUS) and a single lun on that bus (XPT_SCAN_LUN).

It's less resource comsumptive than scanning a whole bus when the
caller knows only one target has changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222520:
mav [Fri, 10 Jun 2011 10:13:40 +0000 (10:13 +0000)]
MFC r222520:
Add quirks to hint 4K physical sector (Advanced Format) for ATA disks not
reporting it properly (none? of known disks now).

Hitachi and WDC AF disks seem could be identified more or less formally.
For Seagate and Samsung enumerate some found models/series.
For other disks it can be forced with kern.cam.ada.X.quirks=1 tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220778, r220785:
mav [Fri, 10 Jun 2011 10:09:48 +0000 (10:09 +0000)]
MFC r220778, r220785:
Remove some unused variables.

Found with:     Clang Static Analyzer

git-svn-id: svn://svn.freebsd.org/base/stable/8@222926 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220690 (by jh):
mav [Fri, 10 Jun 2011 09:58:48 +0000 (09:58 +0000)]
MFC r220690 (by jh):
Move a comment to the right place. The rearrange done in r208928 left
the comment to a wrong place.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220686 (by jh):
mav [Fri, 10 Jun 2011 09:57:48 +0000 (09:57 +0000)]
MFC r220686 (by jh):
Move TUNABLE_INT_FETCH() out of the SIM lock to avoid sleeping while
holding the lock. The fix is analogous to r220618 for ada(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@222924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220644:
mav [Fri, 10 Jun 2011 09:54:48 +0000 (09:54 +0000)]
MFC r220644:
Make CAM report devices with ATA/SATA transport to devstat(9) as IDE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206112, r208928 (by mjacob):
mav [Fri, 10 Jun 2011 09:51:15 +0000 (09:51 +0000)]
MFC r206112, r208928 (by mjacob):
Rearrange how things are done to avoid dereferencing stale pointers in
the case of immediate unconfigure after configure. Hold the periph an
extra count while we have the task to create sysctl context outstanding
so that the periph doesn't go away unexpectedly.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222652:
mav [Fri, 10 Jun 2011 09:18:43 +0000 (09:18 +0000)]
MFC r222652:
Update disk's stripesize and stripeoffset parameters on provider open.
They are media-dependent and may change in run-time, same as sectorsize
and/or mediasize.

SCSI devices return physical sector size and offset via READ CAPACITY(16)
command and so can not report it until media inserted or at least until
probe sequence completed. UNMAP support is also reported there.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221101:
mav [Fri, 10 Jun 2011 09:12:09 +0000 (09:12 +0000)]
MFC r221101:
Implement relaxed comparision for hardcoded provider names to make it
ignore adX/adaY difference in both directions to simplify migration to
the CAM-based ATA or back.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222306:
mav [Fri, 10 Jun 2011 08:59:30 +0000 (08:59 +0000)]
MFC r222306:
Add Marvell 88SE9172 chip PCI ID.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222304:
mav [Fri, 10 Jun 2011 08:58:13 +0000 (08:58 +0000)]
MFC r222304:
Marvell 88SE91xx controllers are known to report soft-reset completion
without waiting for device readiness (or at least not updating FIS receive
area in time). To workaround that, special quirk was added earlier to wait
for the FIS receive area update. But it was found that under same PCI ID
0x91231b4b and revision 0x11 there are two completely different chip
versions (firmware?): HBA and RAID. The problem is that RAID version in
some cases, such as hot-plug, does not update FIS receive area at all!

To workaround that, differentiate the chip versions by their capabilities,
and, if RAID version found, skip FIS receive area update waiting and read
device signature from the PxSIG register instead. This method doesn't work
for HBA version when PMP attached, so keep using previous workaround there.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222285:
mav [Fri, 10 Jun 2011 08:54:52 +0000 (08:54 +0000)]
MFC r222285:
According to SATA specification, when Serial ATA Enclosure Management Bridge
(SEMB) is unable to communicate to Storage Enclosure Processor (SEP), in
response to hard and soft resets it should among other things return value
0x7F in Status register. The weird side is that it means DRQ bit set, which
tells that reset request is not completed. It would be fine if SEMB was the
only device on port. But if SEMB connected to PMP or built into it, it may
block access to other devices sharing same SATA port.

Make some tunings/fixes to soft-reset handling to workaround the issue:
 - ahci(4): request CLO on the port after soft reset to ignore DRQ bit;
 - siis(4): gracefully reinitialize port after soft reset timeout (hardware
doesn't detect reset request completion in this case);
 - mvs(4): if PMP is used, send dummy soft-reset to the PMP port to make it
clear DRQ bit for us.

For now this makes quirks in ata_pmp.c, hiding SEMB ports of SiI3726/SiI4726
PMPs, less important.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC rr222039:
mav [Fri, 10 Jun 2011 08:49:38 +0000 (08:49 +0000)]
MFC rr222039:
Add support for "LED" enclosure management messages, defined by the AHCI.

When supported by hardware, this allows to control per-port activity, locate
and fault LEDs via the led(4) API for localization and status reporting
purposes. Supporting AHCI controllers may transmit that information to the
backplane controllers via SGPIO interface. Backplane controllers interpret
received statuses in some way (IBPI standard) to report them using present
indicators.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220929:
mav [Fri, 10 Jun 2011 08:32:33 +0000 (08:32 +0000)]
MFC r220929:
According to ATA specifications, when ATAPI master is the only device, it
should respond with all zeroes to any access to slave registers. Test with
PATA devices confirmed such behavior. Unluckily, Intel SATA controllers in
legacy emulation mode behave differently, not making any difference between
ATA and ATAPI devices. It causes false positive slave device detection and,
as result, command timeouts.

To workaround this problem, mask result of legacy-emulated soft-reset with
the device presence information received from the SATA-specific registers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222915 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221423, r221424, r221426, r221428, r221434:
netchild [Fri, 10 Jun 2011 07:54:38 +0000 (07:54 +0000)]
MFC r221423, r221424, r221426, r221428, r221434:

  This is v4l2 support for the linuxulator. This allows to access FreeBSD
  native devices which support the v4l2 API from processes running within
  the linuxulator, e.g. skype or flash can access the multimedia/pwcbsd
  or multimedia/webcamd supplied drivers.

MFC r221425:

  Fix typo in comment, improve comment.

MFC tested by: nox

git-svn-id: svn://svn.freebsd.org/base/stable/8@222914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222647:
ru [Fri, 10 Jun 2011 06:11:33 +0000 (06:11 +0000)]
MFC r222647:

Don't pass -o1- to groff(1) by default.  If ms(7) formatted document
uses the .RP macro, a separate cover page is created as page 0 which
is not otherwise output.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222913 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222589:
emaste [Fri, 10 Jun 2011 03:27:25 +0000 (03:27 +0000)]
MFC r222589:

  There are a couple of structs in mfireg.h with members named 'class'.
  These cause problems when trying to include the header in a C++ project.
  Rename them to 'evt_class', and track the change in mfi and mfiutil.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222912 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221793: nc(1) from OpenBSD 4.9.
delphij [Fri, 10 Jun 2011 01:15:23 +0000 (01:15 +0000)]
MFC r221793: nc(1) from OpenBSD 4.9.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222909 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222603:
ae [Thu, 9 Jun 2011 10:43:36 +0000 (10:43 +0000)]
MFC r222603:
  Do not hide stripeoffset from libgeom(3), it may be useful even when
  stripesize is zero.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222895 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222757:
mm [Thu, 9 Jun 2011 10:04:11 +0000 (10:04 +0000)]
MFC r222757:

Remove empty #ifndef

git-svn-id: svn://svn.freebsd.org/base/stable/8@222894 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222720,222721: corrections to amdsbwd.4
avg [Thu, 9 Jun 2011 08:30:46 +0000 (08:30 +0000)]
MFC r222720,222721: corrections to amdsbwd.4

git-svn-id: svn://svn.freebsd.org/base/stable/8@222892 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221527: prepare code that does topology detection for amd cpus for bulldozer
avg [Thu, 9 Jun 2011 08:25:56 +0000 (08:25 +0000)]
MFC r221527: prepare code that does topology detection for amd cpus for bulldozer

git-svn-id: svn://svn.freebsd.org/base/stable/8@222891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219791:
dchagin [Thu, 9 Jun 2011 05:24:28 +0000 (05:24 +0000)]
MFC r219791:

Remove dead code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219783, r219786:
dchagin [Thu, 9 Jun 2011 05:23:28 +0000 (05:23 +0000)]
MFC r219783, r219786:

A bit rearranged rtalloc1_fib() code.
To avoid code duplication move the miss label to line up and jump on it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222888 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219776:
dchagin [Thu, 9 Jun 2011 05:21:08 +0000 (05:21 +0000)]
MFC r219776:

Remove a now unused variable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222887 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222329
rmacklem [Thu, 9 Jun 2011 01:10:39 +0000 (01:10 +0000)]
MFC: r222329
Add a check for MNTK_UNMOUNTF at the beginning of nfs_sync()
in the new NFS client so that a forced dismount doesn't
get stuck in the VFS_SYNC() call that happens before
VFS_UNMOUNT() in dounmount().
Additional changes are needed before forced dismounts will work.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222886 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221784:
dchagin [Wed, 8 Jun 2011 21:39:00 +0000 (21:39 +0000)]
MFC r221784:

Remove wrong comment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222881 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215013 by mdf@:
dchagin [Wed, 8 Jun 2011 21:36:36 +0000 (21:36 +0000)]
MFC r215013 by mdf@:

Whitespace and other aspects of style(9).  No functional changes.

MFC r220730:

Remove malloc(9) return value checks when M_WAITOK is used.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222880 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222328:
jhb [Wed, 8 Jun 2011 21:32:14 +0000 (21:32 +0000)]
MFC 222328:
For Timedia multiport serial adapters, the first two ports use a SUN1889
which uses a non-standard clock (* 8) while any additional ports use
SUN1699 chips which use a standard clock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222879 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 222093:
jhb [Wed, 8 Jun 2011 21:29:12 +0000 (21:29 +0000)]
MFC 222093:
Add support for the SIIG Cyber 2S PCIe adapter.  It is based on an
Oxford Semiconductor OX16PCI954 but uses only two ports with a non-default
clock rate.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222877 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221731:
jhb [Wed, 8 Jun 2011 21:23:18 +0000 (21:23 +0000)]
MFC 221731:
Add an entry for the SIIG Quartet Serial 850 which uses an Oxford
chip with a non-default clock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222876 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221326:
jhb [Wed, 8 Jun 2011 21:14:04 +0000 (21:14 +0000)]
MFC 221326:
Add an entry for the Kuroutoshikou SERIAL4P-LPPCI2 which uses an Oxford
4 port chip but with a nonstandard clock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222874 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221208:
jhb [Wed, 8 Jun 2011 21:10:44 +0000 (21:10 +0000)]
MFC 221208:
Add a 'show progress' command that shows a summary of all in-progress
commands for a given adapter.  Specifically, it shows the status of any
drive or volume activities currently in progress similar to the
'drive process' and 'volume progress' commands.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222872 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221182,222760:
jhb [Wed, 8 Jun 2011 20:57:22 +0000 (20:57 +0000)]
MFC 221182,222760:
Add support for Oxford PCI Express Expresso family devices.
For these devices, the number of supported ports is read from a register
in BAR 0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222871 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221179:
jhb [Wed, 8 Jun 2011 20:12:38 +0000 (20:12 +0000)]
MFC 221179:
Trim an additional unnecessary <linker_set.h> include.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222870 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220390:
jhb [Wed, 8 Jun 2011 19:58:20 +0000 (19:58 +0000)]
MFC 220390:
Fix several places to ignore processes that are not yet fully constructed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218056:
mm [Wed, 8 Jun 2011 19:45:47 +0000 (19:45 +0000)]
MFC r218056:

Fix bug in the netfront driver that caused excessive packet drops during
receive processing.

Remove unnecessary restrictions on the mbuf chain length built during an
LRO receive.  This restriction was copied from the Linux netfront driver
where the LRO implementation cannot handle more than 18 discontinuities.
The FreeBSD implementation has no such restriction.

Approved by: gibbs (private e-mail)

git-svn-id: svn://svn.freebsd.org/base/stable/8@222867 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221430:
netchild [Wed, 8 Jun 2011 11:36:06 +0000 (11:36 +0000)]
MFC r221430:
  Use proper return codes (valuable output, invalid config, problems).

git-svn-id: svn://svn.freebsd.org/base/stable/8@222857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoSync Groff with what's in HEAD except for not re-enabling ANSI SGR support.
ru [Wed, 8 Jun 2011 08:22:54 +0000 (08:22 +0000)]
Sync Groff with what's in HEAD except for not re-enabling ANSI SGR support.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222855 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222560:
ae [Wed, 8 Jun 2011 04:57:14 +0000 (04:57 +0000)]
MFC r222560:
  Hide some debug messages under debug macro.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222851 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222559:
ae [Wed, 8 Jun 2011 04:50:23 +0000 (04:50 +0000)]
MFC r222559:
  Hide useless warning under debug macro.

  PR: kern/69963, kern/139226

git-svn-id: svn://svn.freebsd.org/base/stable/8@222849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219558:
dchagin [Wed, 8 Jun 2011 03:55:58 +0000 (03:55 +0000)]
MFC r219558:

Style(9) fixes. No functional changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222847 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219405:
dchagin [Wed, 8 Jun 2011 03:45:40 +0000 (03:45 +0000)]
MFC r219405:
Extend struct sysvec with new method sv_schedtail, which is used for an
explicit process at fork trampoline path instead of eventhadler(schedtail)
invocation for each child process.

Remove eventhandler(schedtail) code and change linux ABI to use newly added
sysvec method.

While here replace explicit comparing of module sysentvec structure with the
newly created process sysentvec to detect the linux ABI.

MFC r219421:
Remove bogus since r219405 check of the Linux ABI.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222846 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222291
rmacklem [Wed, 8 Jun 2011 01:28:46 +0000 (01:28 +0000)]
MFC: r222291
Add some missing mutex locking to the new NFS client.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222844 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC less v443.
delphij [Wed, 8 Jun 2011 01:18:47 +0000 (01:18 +0000)]
MFC less v443.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222289
rmacklem [Wed, 8 Jun 2011 01:14:31 +0000 (01:14 +0000)]
MFC: r222289
Fix the new NFS client so that it correctly sets the "must_commit"
argument for a write RPC when it succeeds for the first one and
fails for a subsequent RPC within the same call to the function.
This makes it compatible with the old NFS client for this case.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222842 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 219968:
jhb [Tue, 7 Jun 2011 21:48:36 +0000 (21:48 +0000)]
MFC 219968:
Fix some locking nits with the p_state field of struct proc:
- Hold the proc lock while changing the state from PRS_NEW to PRS_NORMAL
  in fork to honor the locking requirements.  While here, expand the scope
  of the PROC_LOCK() on the new process (p2) to avoid some LORs.  Previously
  the code was locking the new child process (p2) after it had locked the
  parent process (p1).  However, when locking two processes, the safe order
  is to lock the child first, then the parent.
- Fix various places that were checking p_state against PRS_NEW without
  having the process locked to use PROC_LOCK().  Every place was already
  locking the process, just after the PRS_NEW check.
- Remove or reduce the use of PROC_SLOCK() for places that were checking
  p_state against PRS_NEW.  The PROC_LOCK() alone is sufficient for reading
  the current state.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 221138:
jhb [Tue, 7 Jun 2011 21:15:43 +0000 (21:15 +0000)]
MFC 221138:
Only align MSI message groups based on the number of messages being
allocated, not the maximum number of messages the device supports.  The
spec only requires the former, and I believe I implemented the latter due
to misunderstanding an e-mail.  In particular, this fixes an issue where
having several devices that all support 16 messages can run out of
IDT vectors on x86 even though the driver only uses a single message.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219242:
dchagin [Tue, 7 Jun 2011 18:43:02 +0000 (18:43 +0000)]
MFC r219242:

Print out shared flag for debug purpose.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222831 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222666:
nwhitehorn [Tue, 7 Jun 2011 14:36:13 +0000 (14:36 +0000)]
MFC r222666:
Fix a typo derived from a mismerge from mmu_oea that would cause
pmap_sync_icache() to sync random (possibly uncached or nonexisting!)
memory, causing kernel page faults or machine checks, most easily
triggered by using GDB. While here, add an additional safeguard to only
sync cacheable memory.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222823 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222430:
nwhitehorn [Tue, 7 Jun 2011 14:35:18 +0000 (14:35 +0000)]
MFC r222430:
Require an error instead of a timeout to decide the new-style fan
commands won't work. This prevents a busy system from making smu(4)
suddenly decide its fans use the old-style command set.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222822 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222234:
attilio [Mon, 6 Jun 2011 23:36:39 +0000 (23:36 +0000)]
MFC r222234:
Fix arguments passing to _long() version of atomic functions.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222796 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222509, r222510, r222513, r222551, r222552, r222701, r222703,
np [Mon, 6 Jun 2011 22:26:02 +0000 (22:26 +0000)]
MFC r222509, r222510, r222513, r222551, r222552, r222701, r222703,
and some direct modifications to minimize diffs with head.

r222509:
L2 table code.  This is enough to get the T4's switch + L2 rewrite
filters working.  (All other filters - switch without L2 info rewrite,
steer, and drop - were already fully-functional).

r222510:
- Specialized ingress queues that take interrupts for other ingress
  queues.  Try to have a set of these per port when possible, fall back
  to sharing a common pool between all ports otherwise.
- One control queue per port (used to be one per hardware channel).
- t4_eth_rx now handles Ethernet rx only.
- sysctls to display pidx/cidx for some queues.

r222513:
Update to firmware interface 1.3.10

r222551:
Firmware device log.

r222552:
Provide hit-count with rest of the information about a filter.

r222701:
Allow lazy fill up of freelists.

r222703:
Cause backpressure (instead of dropping frames) on congestion.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222794 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222233
rmacklem [Mon, 6 Jun 2011 21:51:35 +0000 (21:51 +0000)]
MFC: r222233
Set the MNT_NFS4ACLS flag for an NFSv4 client mount
if the NFSv4 server supports it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222789 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 196727 [1]:
gjb [Mon, 6 Jun 2011 21:40:38 +0000 (21:40 +0000)]
MFC 196727 [1]:

Document MALLOC_PRODUCTION knob.

PR: 136029
Original commit by: maxim [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@222784 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 199873 [1]:
gjb [Mon, 6 Jun 2011 21:23:11 +0000 (21:23 +0000)]
MFC 199873 [1]:

- correct xref sections

PR: 140940
Original commit by: danger [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@222781 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 199871 [1]:
gjb [Mon, 6 Jun 2011 21:07:44 +0000 (21:07 +0000)]
MFC 199871 [1]:

- correctly render the provided example

PR: 140962
Obtained from: danger [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@222780 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222578 and r222696.
hselasky [Mon, 6 Jun 2011 20:58:15 +0000 (20:58 +0000)]
MFC r222578 and r222696.
Add new USB serial device driver.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 199245 [1]:
gjb [Mon, 6 Jun 2011 20:48:36 +0000 (20:48 +0000)]
MFC 199245 [1]:

Fix the grammar in the isprint(3) description.

PR: 140456
Obtained from: roam [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@222775 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218951 [1]:
gjb [Mon, 6 Jun 2011 16:17:02 +0000 (16:17 +0000)]
MFC 218951 [1]:

- Add reference to makefs(8).

PR: 154708
Obtained from: jh [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@222762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220965 [1]:
gjb [Mon, 6 Jun 2011 16:00:23 +0000 (16:00 +0000)]
MFC 220965 [1]:

Remove incomplete sentence from tcpdrop(8).

PR: 156593
Obtained from: maxim [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@222761 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC ZFS version 28 and related revisions:
mm [Mon, 6 Jun 2011 09:36:46 +0000 (09:36 +0000)]
MFC ZFS version 28 and related revisions:
208682, 211900, 212543, 213791, 216378, 218007, 218725, 219089, 219090,
219092, 219316, 219317, 219320, 219404, 219636, 219703, 219959, 219973,
220447, 220575, 221112, 221177, 221263, 221409, 222050, 222267, 222268

MFC r208682 (pjd):
Fix panic when reading label from provider with non power of 2 sector size.

MFC r211900 (pjd):
Use ZFS_CTLDIR_NAME instead of hardcoding ".zfs".

MFC r212543 (imp):
Simplify atomic selection

MFC r213791 (rpaulo):
Pass a format string to panic() and to taskqueue_start_threads().

Found with: clang

MFC r216378 (pjd):
Remove redundant semicolon and empty like.

MFC r218007 (jchandra):
CDDL fixes for MIPS n32.

Provide 64 bit atomic ops, and use 32 bit pointer.

MFC r218725 (dim):
When building libzpool on ia64 or sparc64, don't add the .note.GNU-stack
section.

MFC r219089 (pjd):
Finally... Import the latest open-source ZFS version - (SPA) 28.

Few new things available from now on:

- Data deduplication.
- Triple parity RAIDZ (RAIDZ3).
- zfs diff.
- zpool split.
- Snapshot holds.
- zpool import -F. Allows to rewind corrupted pool to earlier
  transaction group.
- Possibility to import pool in read-only mode.

MFC r219090 (pjd):
Commit two more files missed in r219089.

MFC r219092 (pjd):
Use proper lock in assertion.

MFC r219316 (pjd):
Simplify zvol_remove_minors() a bit.

MFC r219317 (pjd):
Make renaming of a ZVOL, ZVOL's parent directory and ZVOL snapshot work.

MFC r219320 (pjd):
Fix libzpool build.

MFC r219404 (pjd):
Correct readdir over ZFS handling.

MFC r219636 (pjd):
Fix potential panic in dbuf_sync_list() relate to spill blocks handling.

MFC r219703 (ae):
The size of zfsboot2 grown up to 64 Kbytes in r219089.
Increase NSECT up to 128 sectors too.

MFC r219959 (pjd):
Properly print characters larger than 127.

MFC r219973 (pjd):
Checking file access on size change is bogus. The checks are done earlier by
VFS where we know if this is truncate(2) or ftruncate(2). If this is the
latter we should depend on the mode the file was opened and not on the current
permission.

MFC r220447 (mm):
Partially fix ZFS compat code for sparc64.
Some endianess bugs still need to be resolved.

MFC r220575 (pjd):
Fix 'zfs list <path>' handling. If the path was found, the 'ret' variable was
uninitialized.

MFC r221112 (marcel):
Fix copy-paste bug.

MFC r221177 (jhb):
Due to space constraints, the UFS boot2 and boot1 use an evil hack where
boot2 calls back into boot1 to perform disk reads.  The ZFS MBR boot blocks
do not have the same space constraints, so remove this hack for ZFS.
While here, remove commented out code to support C/H/S addressing from
zfsldr.  The ZFS and GPT bootstraps always just use EDD LBA addressing.

MFC r221263 (mm):
Fix deduplicated zfs receive
(dmu_recv_stream builds incomplete guid_to_ds_map)

Illumos-gate changeset: 13329:c48b8bf84ab7

MFC r221409 (marius):
Convert the last use of xcopyout() to ddi_copyout() and remove the now
unused xcopyin() as well as xcopyout().

MFC r222050 (mm):
Restore old (v15) behaviour for a recursive snapshot destroy.
(zfs destroy -r pool/dataset@snapshot)

To destroy all descendent snapshots with the same name the top level
snapshot was not required to exist. So if the top level snapshot does
not exist, check permissions of the parent dataset instead.

Filed as Illumos Bug #1043

MFC r222267 (pjd):
Don't access task structure once we call task function.
The task structure might be no longer available.
This also allows to eliminates the need for two tasks in the zio structure.

MFC r222268 (pjd):
Don't pass pointer to name buffer which is on the stack to another thread,
because the stack might be paged out once the other thread tries to use the
data. Instead, just allocate memory.

Discussed with: pjd

git-svn-id: svn://svn.freebsd.org/base/stable/8@222741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217358, 222286, 222519:
bcr [Mon, 6 Jun 2011 07:26:07 +0000 (07:26 +0000)]
MFC r217358, 222286, 222519:

r222519:
Minor wording adjustments to usbdump(8).

PR: docs/157317
Submitted by: Warren Block (wblock at wonkity dot com)
Reviewed by: hps@

r222286:
[mdoc] Fixed .Dt call.

r217358:
Documents OUTPUT formats.  While I'm here cleans up styles and words.

Reviewed by: brueffer@

git-svn-id: svn://svn.freebsd.org/base/stable/8@222740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222492:
bcr [Mon, 6 Jun 2011 07:15:19 +0000 (07:15 +0000)]
MFC r222492:

Add a short description about NO_CHECKSUM.

PR: docs/155980
Submitted by KOIE Hidetaka (koie at suri co jp)

git-svn-id: svn://svn.freebsd.org/base/stable/8@222739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220403:
delphij [Mon, 6 Jun 2011 06:47:11 +0000 (06:47 +0000)]
MFC r220403:

Update arcmsr(4) to vendor version 1.20.00.21.  This release primarily
improves command timeout handling.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: Ching-Lung Huang <ching2048 areca com tw>

git-svn-id: svn://svn.freebsd.org/base/stable/8@222737 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222210, 222211, 222287:
delphij [Mon, 6 Jun 2011 05:40:52 +0000 (05:40 +0000)]
MFC r222210, 222211, 222287:

 - Diff reduction against NetBSD.  The most notable change is to zdiff(1)
   to handle more file formats including bzip2 and xz.
 - Match symbolic link handling behavior with GNU gzip, bzip2 and xz:
   When we are operating on a symbolic link pointing to an existing
   file, bail out by default, but go ahead if -f is specified.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222065:
attilio [Sat, 4 Jun 2011 22:51:06 +0000 (22:51 +0000)]
MFC r222065:
Sync XEN support with i386 about the usage of ipi_send_cpu()

git-svn-id: svn://svn.freebsd.org/base/stable/8@222700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222447:
bcr [Sat, 4 Jun 2011 11:28:44 +0000 (11:28 +0000)]
MFC r222447:

Mention that jumbo frame support is disabled on PCIe VT6130/VT6132
controllers because of TX MAC hangs when trying to send a frame
that is larger than 4K (see r200759).

PR: docs/156742
Submitted by: Michael Moll (kvedulv at kvedulv dot de)
Reviewed by: yongari@

git-svn-id: svn://svn.freebsd.org/base/stable/8@222677 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222390: find: If a part of an expression is unknown, do not call it an
jilles [Fri, 3 Jun 2011 18:18:54 +0000 (18:18 +0000)]
MFC r222390: find: If a part of an expression is unknown, do not call it an
option.

Although most of the primaries and operators start with "-", they are not
options.

Examples:
  find . -xyz
  find . -name xyz -or bad

git-svn-id: svn://svn.freebsd.org/base/stable/8@222657 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r222075
rmacklem [Thu, 2 Jun 2011 20:57:36 +0000 (20:57 +0000)]
MFC: r222075
Add a sanity check for the existence of an "addr" option
to both NFS clients. This avoids the crash reported by
Sergey Kandaurov (pluknet@gmail.com) to the freebsd-fs@
list with subject "[old nfsclient] different nmount()
args passed from mount vs mount_nfs" dated May 17, 2011.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222629 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r222298:
mav [Thu, 2 Jun 2011 08:39:10 +0000 (08:39 +0000)]
MFC r222298:
Add better names for the Intel HDMI audio codecs.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222598 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r211910 (by jfv):
mav [Thu, 2 Jun 2011 07:51:33 +0000 (07:51 +0000)]
MFC r211910 (by jfv):
Add Intel Cougar Point PCH HD Audio Controller ID

git-svn-id: svn://svn.freebsd.org/base/stable/8@222597 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208934:
mav [Thu, 2 Jun 2011 07:45:45 +0000 (07:45 +0000)]
MFC r208934:
Add set of codec IDs.

PR:             kern/147466

git-svn-id: svn://svn.freebsd.org/base/stable/8@222596 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r221789, r221794 (by jfv):
mav [Thu, 2 Jun 2011 07:39:05 +0000 (07:39 +0000)]
MFC r221789, r221794 (by jfv):
Chipset support for the new Intel Panther Point PCH, thanks
to Seth Heasley for preparing the changes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222595 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMRC r212721:
mav [Thu, 2 Jun 2011 07:21:27 +0000 (07:21 +0000)]
MRC r212721:
Few whitespace cleanups and comments tunings.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222594 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209339:
mav [Thu, 2 Jun 2011 07:19:19 +0000 (07:19 +0000)]
MFC r209339:
Core i5, same as previously Core2Duo, found to not set P-state for single
core lower then set on other cores. Do not try to test P-states on attach
on SMP systems. It is hopeless now and will just pollute verbose logs.
If needed, check still can be forced via loader tunable.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoPartial MFC of r212370. np@ requested this functionality so I kept in
mdf [Wed, 1 Jun 2011 18:26:59 +0000 (18:26 +0000)]
Partial MFC of r212370.  np@ requested this functionality so I kept in
the cxgb change, but otherwise MFC'd only the new function
sbuf_new_for_sysctl(9) and none of the changed code.

MFC r217830:

Document sbuf_new_for_sysctl(9).

Partial MFC of r217916:

Explicitly wire the user buffer rather than doing it implicitly in
sbuf_new_for_sysctl(9).  This allows using an sbuf with a SYSCTL_OUT
drain for extremely large amounts of data where the caller knows that
appropriate references are held, and sleeping is not an issue.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212478: (originally by kan@)
mdf [Wed, 1 Jun 2011 17:51:18 +0000 (17:51 +0000)]
MFC r212478: (originally by kan@)

Add missing pointer increment to sbuf_cat.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212365, r212367:
mdf [Wed, 1 Jun 2011 17:36:52 +0000 (17:36 +0000)]
MFC r212365, r212367:

r212365: Refactor sbuf code so that most uses of sbuf_extend() are in
a new sbuf_put_byte().  This makes it easier to add drain
functionality when a buffer would overflow as there are fewer code
points.

r212367: Add drain functionality to sbufs.  The drain is a function
that is called when the sbuf internal buffer is filled.  For kernel
sbufs with a drain, the internal buffer will never be expanded.  For
userland sbufs with a drain, the internal buffer may still be expanded
by sbuf_[v]printf(3).

Sbufs now have three basic uses:
1) static string manipulation.  Overflow is marked.
2) dynamic string manipulation.  Overflow triggers string growth.
3) drained string manipulation.  Overflow triggers draining.

In all cases the manipulation is 'safe' in that overflow is detected and
managed.

Note that r212367 had to be minorly re-implemented to dynamically
allocate space for a function pointer, a void * argument, and an int
error, to not break the ABI/KBI.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212180-r212184:
mdf [Wed, 1 Jun 2011 16:34:18 +0000 (16:34 +0000)]
MFC r212180-r212184:

Use math rather than iteration when the desired sbuf size is larger than
SBUF_MAXEXTENDSIZE.

Fix brain fart when converting an if statement into a KASSERT.

Fix user-space libsbuf build.  Why isn't CTASSERT available to
user-space?

Style(9) fixes and eliminate the use of min().

Use a better #if guard.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212364:
mdf [Wed, 1 Jun 2011 15:46:12 +0000 (15:46 +0000)]
MFC r212364:

Fix small errors in the sbuf(9) man page.

git-svn-id: svn://svn.freebsd.org/base/stable/8@222566 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFixed lost svn:mergeinfo on some directories in sys/
art [Wed, 1 Jun 2011 14:41:08 +0000 (14:41 +0000)]
Fixed lost svn:mergeinfo on some directories in sys/

Approved by: avg (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@222565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f