]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r217821:
kib [Sat, 5 Feb 2011 23:02:55 +0000 (23:02 +0000)]
MFC r217821:
Document P_FOLLOWFORK.

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

13 years agoMFC r217820:
kib [Sat, 5 Feb 2011 23:01:18 +0000 (23:01 +0000)]
MFC r217820:
Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid.

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

13 years agoMFC r217819:
kib [Sat, 5 Feb 2011 22:57:14 +0000 (22:57 +0000)]
MFC r217819:
Allow debugger to specify that children of the traced process should be
automatically traced. Extend the ptrace(PL_LWPINFO) to report that child
just forked.

To not change the struct thread layout, td_dbg_forked was placed at the
end of the structure.

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

13 years agoMFC r212999 (by jhb):
kib [Sat, 5 Feb 2011 22:04:20 +0000 (22:04 +0000)]
MFC r212999 (by jhb):
Copy td_rqindex during fork instead of zero'ing it to match the comments.

Approved by: jhb

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

13 years agoMFC r198854 (by attilio):
kib [Sat, 5 Feb 2011 21:50:23 +0000 (21:50 +0000)]
MFC r198854 (by attilio):
Split P_NOLOAD into a per-thread flag (TDF_NOLOAD)

Approved by: attilio

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

13 years agoMFC r216019: sh: Make the test for cd/pwd with long pathnames more useful:
jilles [Sat, 5 Feb 2011 21:47:04 +0000 (21:47 +0000)]
MFC r216019: sh: Make the test for cd/pwd with long pathnames more useful:
* Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part
* Delete our test area even if the test fails

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

13 years agoMFC r215766: sh: Pass multiple bytes at a time to lex.
jilles [Sat, 5 Feb 2011 21:40:57 +0000 (21:40 +0000)]
MFC r215766: sh: Pass multiple bytes at a time to lex.

This speeds up the expansion/arith6.0 test considerably.

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

13 years agoMFC r215550: sh: Add a test that manipulates various long strings.
jilles [Sat, 5 Feb 2011 21:39:14 +0000 (21:39 +0000)]
MFC r215550: sh: Add a test that manipulates various long strings.

It is quite effective at detecting mistakes in memalloc.c and code using it.

It is somewhat slow, but some later changes improve it.

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

13 years agoMFC r217774:
mav [Sat, 5 Feb 2011 21:34:26 +0000 (21:34 +0000)]
MFC r217774:
ICH7 SATA controller in legacy mode can provide access to SATA registers
via AHCI-like memory resource at BAR(5). Use it if BIOS was so kind to
allocate memory for that BAR. This allows hot-plug support and connection
speed reporting.

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

13 years agoMFC r216496: sh: Fix corruption of command substitutions with special chars
jilles [Sat, 5 Feb 2011 21:24:37 +0000 (21:24 +0000)]
MFC r216496: sh: Fix corruption of command substitutions with special chars
after newline.

The CTLESC byte to protect a special character was output before instead of
after a newline directly preceding the special character.

The special handling of newlines is because command substitutions discard
all trailing newlines.

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

13 years agoMFC r216630: Explain why it is a bad idea to use aliases in scripts.
jilles [Sat, 5 Feb 2011 21:02:13 +0000 (21:02 +0000)]
MFC r216630: Explain why it is a bad idea to use aliases in scripts.

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

13 years agoMFC r216168: sh(1): Clean up documentation of built-in commands.
jilles [Sat, 5 Feb 2011 21:00:35 +0000 (21:00 +0000)]
MFC r216168: sh(1): Clean up documentation of built-in commands.

Make sure all built-in commands are in the subsection named such, except
exp, let and wordexp which are deliberately undocumented. The text said only
built-ins that really need to be a built-in were documented there but in
fact almost all of them were already documented.

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

13 years agoMFC r217875:
mav [Sat, 5 Feb 2011 20:57:01 +0000 (20:57 +0000)]
MFC r217875:
In addition to r217444, ignore also ATA status errors on DMA Auto-Activation
enabling request. Some HP disks reported to return ABORT error there while
declaring support for this feature.

PR: kern/152817

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

13 years agoMFC r217874:
mav [Sat, 5 Feb 2011 20:54:47 +0000 (20:54 +0000)]
MFC r217874:
Make device initialization sequence shorter when possible. Do not enable/
disable already enabled/disabled SATA features.

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

13 years agoMFC r217444:
mav [Sat, 5 Feb 2011 20:52:43 +0000 (20:52 +0000)]
MFC r217444:
Some old WD SATA disks report supported and enabled device-initiated
interface power management, but return ABORT error on attempt to disable
it. Make CAM SATA probe sequence ignore this error, as it is not fatal.

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

13 years agoMFC r208505: sh(1): Rework documentation of shell variables.
jilles [Sat, 5 Feb 2011 20:48:45 +0000 (20:48 +0000)]
MFC r208505: sh(1): Rework documentation of shell variables.

* Move the "environment variables" that do not need exporting to be
  effective or that are set by the shell without exporting to a new section
  "Special Variables".
* Add special variables LINENO and PPID.
* Add environment variables LANG, LC_* and PWD; also describe ENV under
  environment variables.

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

13 years agoMFC r208501: sh(1): Improve wording of 'Special Parameters' section.
jilles [Sat, 5 Feb 2011 20:37:33 +0000 (20:37 +0000)]
MFC r208501: sh(1): Improve wording of 'Special Parameters' section.

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

13 years agoMFC r217557: sh: Fix signal messages being sent to the wrong file sometimes.
jilles [Sat, 5 Feb 2011 20:25:17 +0000 (20:25 +0000)]
MFC r217557: sh: Fix signal messages being sent to the wrong file sometimes.

When a foreground job exits on a signal, a message is printed to stdout
about this. The buffer was not flushed after this which could result in the
message being written to the wrong file if the next command was a builtin
and had stdout redirected.

Example:
  sh -c 'kill -9 $$'; : > foo; echo FOO:; cat foo

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

13 years agoUpdate to BIND 9.6.3, the latest from ISC on the 9.6 branch.
dougb [Sat, 5 Feb 2011 19:13:34 +0000 (19:13 +0000)]
Update to BIND 9.6.3, the latest from ISC on the 9.6 branch.

All 9.6 users with DNSSEC validation enabled should upgrade to this
version, or the latest version in the 9.7 branch, prior to 2011-03-31
in order to avoid validation failures for names in .COM as described
here:

https://www.isc.org/announcement/bind-9-dnssec-validation-fails-new-ds-record

In addition the fixes for this and other bugs, there are also the
following:

  * Various fixes to kerberos support, including GSS-TSIG
  * Various fixes to avoid leaking memory, and to problems that could
    prevent a clean shutdown of named

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

13 years agoMFC r217847: sh: Clean up some old comments:
jilles [Sat, 5 Feb 2011 15:09:55 +0000 (15:09 +0000)]
MFC r217847: sh: Clean up some old comments:
* There is no plan for an alternative to the command "set".
* Attempting to unset a readonly variable has not raised an error for quite
  a while, so the order of unsetting a variable and a function with the same
  name does not matter.

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

13 years agoMFC r218166:
mm [Sat, 5 Feb 2011 11:32:53 +0000 (11:32 +0000)]
MFC r218166:

Reintroduce bugfix from r210103 and fix xz on strong-aligned architectures.
This fix was accidentially reverted with the 5.0.0 update in r215187.

PR: bin/154310
Submitted by: Michael Moll <kvedulv@kvedulv.de>

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

13 years agoMFC r217767:
gordon [Sat, 5 Feb 2011 06:25:21 +0000 (06:25 +0000)]
MFC r217767:
Honor $PAGER instead of always calling more.

Approved by: colin@

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

13 years agoMFC r216831,216858:
yongari [Fri, 4 Feb 2011 20:57:37 +0000 (20:57 +0000)]
MFC r216831,216858:
r216831:
  Add vte(4) man page and hook up vte(4) to the build.
  Also add Xr to appropriate man pages.

r216858:
  Remove duplicated "perfect"

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

13 years agoMFC r216830:
yongari [Fri, 4 Feb 2011 20:51:18 +0000 (20:51 +0000)]
MFC r216830:
  Add vte(4) to the list of supported network interface.

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

13 years agoMFC r216829,216833:
yongari [Fri, 4 Feb 2011 20:32:52 +0000 (20:32 +0000)]
MFC r216829,216833:
rr216829:
  Add driver for DM&P Vortex86 RDC R6040 Fast Ethernet.
  The controller is commonly found on DM&P Vortex86 x86 SoC.  The
  driver supports all hardware features except flow control.  The
  flow control was intentionally disabled due to silicon bug.

  DM&P Electronics, Inc. provided all necessary information including
  sample board to write driver and answered many questions I had.
  Many thanks for their support of FreeBSD.

  H/W donated by: DM&P Electronics, Inc.

r216833:
  Remove debugging leftovers.

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

13 years agoMFC r216828:
yongari [Fri, 4 Feb 2011 20:12:45 +0000 (20:12 +0000)]
MFC r216828:
  Add RDC Semiconductor R6040 10/100 PHY driver.

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

13 years agoMFC r217207:
ed [Fri, 4 Feb 2011 19:27:49 +0000 (19:27 +0000)]
MFC r217207:

  Add missing __dead2 to __assert().

  __assert() is called when an assertion fails. After printing an error
  message, it will call abort(). abort() never returns, hence it has the
  __dead2 attribute. Also add this attribute to __assert().

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

13 years agoMFC 217350:
jhb [Fri, 4 Feb 2011 17:26:44 +0000 (17:26 +0000)]
MFC 217350:
Use software interrupt priorities for USB kthreads instead of hardware
interrupt priorities.

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

13 years agoMFC 217351:
jhb [Fri, 4 Feb 2011 17:11:37 +0000 (17:11 +0000)]
MFC 217351:
Introduce two new helper macros to define the priority ranges used for
interactive timeshare threads (PRI_*_INTERACTIVE) and non-interactive
timeshare threads (PRI_*_BATCH) and use these instead of PRI_*_REALTIME
and PRI_*_TIMESHARE.  No functional change.

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

13 years agoMFC 217292:
jhb [Fri, 4 Feb 2011 16:30:13 +0000 (16:30 +0000)]
MFC 217292:
- Retire some unused ithread priorities: PI_TTYHIGH, PI_TAPE, and
  PI_DISKLOW.  While here, rename PI_TTYLOW to PI_TTY.
- Add a macro PI_SWI() that takes a SWI_* constant as an argument and
  returns the suitable thread priority.

To preserve the KBI, I did not renumber priorities but simply removed
unused ones.

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

13 years agoMFC 217075:
jhb [Fri, 4 Feb 2011 14:44:42 +0000 (14:44 +0000)]
MFC 217075:
Retire PCONFIG and leave the priority of thread0 alone when waiting for
interrupt config hooks to execute.

To preserve the KBI, I did not renumber priorities but simply removed
PCONFIG.

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

13 years agoMFC 218171:
jhb [Fri, 4 Feb 2011 14:29:05 +0000 (14:29 +0000)]
MFC 218171:
Output an appropriate amount of padding to line up per-CPU state columns
rather than using a terminal sequence to move the cursor when drawing the
initial screen.

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

13 years agoMFC 200605:
jhb [Fri, 4 Feb 2011 13:39:43 +0000 (13:39 +0000)]
MFC 200605:
Add entries to NOTES for the modular phy support so that these options are
documented.

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

13 years agoMFC r216873:
brucec [Fri, 4 Feb 2011 10:19:56 +0000 (10:19 +0000)]
MFC r216873:

There can be more than 0x20000000 swap meta blocks allocated if a swap-backed
md(4) device is used. Don't panic when deallocating such a device if swap
has been used.

PR: kern/133170

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

13 years agoMFC r218026:
kib [Fri, 4 Feb 2011 09:15:23 +0000 (09:15 +0000)]
MFC r218026:
If more than one thread allocated sf buffers for sendfile(2), and
each of the threads needs more while current pool of the buffers is
exhausted, then neither thread can make progress.

Switch to nowait allocations after we got first buffer already.

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

13 years agoMFC 217888
deischen [Fri, 4 Feb 2011 08:51:45 +0000 (08:51 +0000)]
MFC 217888

Prison check addresses set with multicast interface options.

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

13 years agoMFC r217924:
ae [Thu, 3 Feb 2011 11:09:27 +0000 (11:09 +0000)]
MFC r217924:
  While inspecting the disklabel check that start offset of partition is
  within provider's bounds. If not then reject this disklabel.
  Mark bbarea as NULL to do not free it again in destroy method.

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

13 years agoMFC r217991:
kib [Thu, 3 Feb 2011 08:55:45 +0000 (08:55 +0000)]
MFC r217991:
Use unsigned type for the registers in the linux sigcontext.

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

13 years agoMFC r216925,217331,217349,217542:
yongari [Wed, 2 Feb 2011 18:42:53 +0000 (18:42 +0000)]
MFC r216925,217331,217349,217542:
r216925:
  Add a 'locked' variant of the foo_start() routine and call it directly
  from interrupt handlers and watchdog routines instead of queueing a task
  to call foo_start().

r217331:
  Make sure to invoke unlocked foo_start since the taskqueue does not
  hold a driver lock. This should fix a regression introduced in
  r216925.

r217349:
  Forgot to remove unlock of the driver lock from age_start_locked() when
  converting it to a locked variant.

r217542:
  Fix some bugs in my last set of changes to ale(4):
  - Remove extra unlock from end of ale_start_locked().
  - Expand scope of locking in interrupt handler.
  - Move ether_ifdetach() earlier and retire now-unneeded DETACH flag.

  Tested by: Aryeh Friedman

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

13 years agoMFC r217187:
jh [Wed, 2 Feb 2011 17:31:01 +0000 (17:31 +0000)]
MFC r217187:

Replace nfs4 with newnfs in netfs_types. nfs4 was removed in r192578 and
mount(8) has supported newnfs since r192930.

PR: conf/153655

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

13 years agoMFC r217880:
kib [Wed, 2 Feb 2011 12:24:53 +0000 (12:24 +0000)]
MFC r217880:
Treat async buffer writes from the gjournal switcher thread the same as
from syncer. We shall not sleep on running buffer space when suspending.

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

13 years agoMFC r217578:
kib [Wed, 2 Feb 2011 12:22:44 +0000 (12:22 +0000)]
MFC r217578:
In linuxolator getdents_common(), do not loop if no records were returned
by VOP_READDIR().

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

13 years agoMFC r217826 (by sem):
kib [Tue, 1 Feb 2011 16:15:31 +0000 (16:15 +0000)]
MFC r217826 (by sem):

Remove DOS-style EOLs.

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

13 years agoMFC r216922:
jh [Tue, 1 Feb 2011 16:11:31 +0000 (16:11 +0000)]
MFC r216922:

Increase carried_error if we skip a file due to an error. This ensures
that setfacl(1) exits with proper exit status on failure.

PR: bin/149780

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

13 years agoMFC r217824:
kib [Tue, 1 Feb 2011 10:20:31 +0000 (10:20 +0000)]
MFC r217824:
When vtruncbuf() iterates over the vnode buffer list, lock buffer object
before checking the validity of the next buffer pointer. Otherwise, the
buffer might be reclaimed after the check, causing iteration to run into
wrong buffer.

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

13 years agoMFC r217823:
kib [Tue, 1 Feb 2011 10:18:36 +0000 (10:18 +0000)]
MFC r217823:
Bio shall not be accessed after g_io_deliver(9).

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

13 years agoMFC r217531:
ae [Tue, 1 Feb 2011 09:27:28 +0000 (09:27 +0000)]
MFC r217531:
  Limit maximum number of GPT entries to 4k. It is most realistic value
  and can prevent kernel memory exhausting when big value is specified
  from command line.

  Split reading and writing operation to several iterations to do not
  trigger KASSERT when data length is greater than MAXPHYS.

  PR:             kern/144962, kern/147851

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

13 years agoMFC r216409: Note with sadness Dan Moschuk's passing
imp [Mon, 31 Jan 2011 17:57:53 +0000 (17:57 +0000)]
MFC r216409: Note with sadness Dan Moschuk's passing

PR: misc/147479

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

13 years agoMFC r218025:
pluknet [Mon, 31 Jan 2011 10:18:42 +0000 (10:18 +0000)]
MFC r218025:

 Remove SuperH architecture from a comment.

Approved by: kib (mentor)

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

13 years agoMFC of 218122, tzdata2011a:
edwin [Mon, 31 Jan 2011 09:30:56 +0000 (09:30 +0000)]
MFC of 218122, tzdata2011a:

- Cleanup rules for Australia/South_Australia (nothing changed)
- Add historical information for Honolulu.

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

13 years ago MFC r218038:
yongari [Mon, 31 Jan 2011 00:27:34 +0000 (00:27 +0000)]
 MFC r218038:
  Fix logic error. Due to the bug, it incorrectly checked TXQ status
  which in turn can leave TXQ active.

  Submitted by: Brad ( brad <> comstyle dot com )

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

13 years agoMFC r216766:
yongari [Sun, 30 Jan 2011 23:23:05 +0000 (23:23 +0000)]
MFC r216766:
  Add device id for RDC M3010 which is found on Vortex86 SoC.

  Reviewed by: mav

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

13 years agoMFC r216596:
yongari [Sun, 30 Jan 2011 23:18:25 +0000 (23:18 +0000)]
MFC r216596:
  Document limitation of station address reprogramming.

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

13 years agoMFC r216576,216578-216581,217974:
yongari [Sun, 30 Jan 2011 23:15:45 +0000 (23:15 +0000)]
MFC r216576,216578-216581,217974:
r216576,217974:
  ae(4), igb(4) and ixgbe(4) supports altq(4).

r216578:
  Add .Xr to altq(4).

r216579,216581:
  igb(4), ixgbe(4), mxge(4) and nxge(4) support VLAN hardware tag
  insertion/stripping.
  et(4) and fwe(4) support VLAN oversized frames.

r216580:
  Add ae(4) to the list of drivers use the miibus interface.

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

13 years agoMFC r217704: getgroups(2): Remove <sys/types.h> and refer to sysconf(3).
jilles [Sun, 30 Jan 2011 20:37:42 +0000 (20:37 +0000)]
MFC r217704: getgroups(2): Remove <sys/types.h> and refer to sysconf(3).

Because {NGROUPS_MAX} may become variable, its value should be obtained
using sysconf(3).

In head, r217704 removed mention of <sys/param.h>; this was not mentioned in
stable/8.

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

13 years agoMFC r217756:
nwhitehorn [Sun, 30 Jan 2011 02:17:47 +0000 (02:17 +0000)]
MFC r217756:
Disable ATAPI DMA unconditionally on Apple Kauai ATA controllers, like it
is on the MacIO ones. It appears to be unreliable on all DBDMA-based
controllers for unknown reasons, which should be figured out eventually.

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

13 years agoMFC r216798:
kib [Sat, 29 Jan 2011 22:51:46 +0000 (22:51 +0000)]
MFC r216798:
Add support for FS_TRIM to user-mode UFS utilities.

Tested by: pho

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

13 years agoMFC r216796:
kib [Sat, 29 Jan 2011 22:51:27 +0000 (22:51 +0000)]
MFC r216796:
Add kernel side support for BIO_DELETE/TRIM on UFS.

Tested by: pho

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

13 years agoMFC: 'alfred' command.
alfred [Sat, 29 Jan 2011 08:14:47 +0000 (08:14 +0000)]
MFC: 'alfred' command.

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

13 years agoMFC 217702:
jhb [Fri, 28 Jan 2011 20:21:41 +0000 (20:21 +0000)]
MFC 217702:
Restore support for the 'async' and 'sync' mount options lost when
switching to nmount(2).  While here, sort the options.

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

13 years agoMFC 217416:
jhb [Fri, 28 Jan 2011 20:06:39 +0000 (20:06 +0000)]
MFC 217416:
Add two more features to cpuset(1):
- Add a new -C flag to create a new cpuset and move an existing pid into
  that set.
- Allow 'all' to be specified for a cpu list (e.g. cpuset -s 1 -l all)
  which maps to the list of all CPUs in the system.

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

13 years agoMFC: r217755 r217822
jpaetzel [Fri, 28 Jan 2011 18:25:51 +0000 (18:25 +0000)]
MFC: r217755 r217822

This script parses output of userland tools. In the case of a faulted
zpool the output causes the script to bail out with syntax errors.
Since a scrub of a faulted zpool is pointless, just skip over any
pools marked as such.

PR: conf/150228
Approved by: kib (mentor)

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

13 years agoIn uart_tty_outwakeup(), check CTS/RTS flow control settings and
marcel [Fri, 28 Jan 2011 00:22:03 +0000 (00:22 +0000)]
In uart_tty_outwakeup(), check CTS/RTS flow control settings and
prevent sending data when CTS is de-asserted.
In uart_tty_intr(), call uart_tty_outwakeup() when the CTS signal
changed, knowing that uart_tty_outwakeup() will do the right
thing for flow control. This avoids redundant conditionals.

PR: kern/148644
Submitted by: John Wehle <john@feith.com>

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

13 years agoMerge r217200 from head:
gavin [Thu, 27 Jan 2011 23:16:41 +0000 (23:16 +0000)]
Merge r217200 from head:

  Sync the list of devices supported by uslcom(4) with Linux, bringing in
  all new devices added between our r211022 and their git revision
  93ad03d60b5b18897030038234aa2ebae8234748

  Also correct a Foxconn entry.

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

13 years agoMerge r217264 from head:
gavin [Thu, 27 Jan 2011 23:07:03 +0000 (23:07 +0000)]
Merge r217264 from head:

  Remove a bullet point that appears to have been accidentally inserted twice.
  It has also been included within the feature lists to which it is relevant.

Submitted by: tobez

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

13 years agoMerge r217061, r217274, r217275 from head:
gavin [Thu, 27 Jan 2011 23:05:29 +0000 (23:05 +0000)]
Merge r217061, r217274, r217275 from head:

- Support the Uniform Industrial Corp (UIC) MSR206 Magnetic Card Reader.

- Improve or fix some comments.

- Update the uplcom(4) man page to reflect the devices currently supported by
  uplcom(4).

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

13 years agoMFC r217872: Unbreak .Dd line.
cperciva [Thu, 27 Jan 2011 21:40:31 +0000 (21:40 +0000)]
MFC r217872: Unbreak .Dd line.

Approved by:    re (kib)

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

13 years agoMFC 217237,217291:
jhb [Thu, 27 Jan 2011 21:32:50 +0000 (21:32 +0000)]
MFC 217237,217291:
- Fix two harmless off-by-one errors.
- Always use PRI_BASE() when checking the base type of a thread's priority
  class.

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

13 years agoMFC 217078,217079: Various priority fixes for creating new threads:
jhb [Thu, 27 Jan 2011 21:16:23 +0000 (21:16 +0000)]
MFC 217078,217079: Various priority fixes for creating new threads:
- Move sched_fork() later in fork() after the various sections of the new
  thread and proc have been copied and zeroed from the old thread and
  proc.  Otherwise attempts to modify thread or process data in sched_fork()
  could be undone.
- Don't copy td_{base,}_user_pri from the old thread to the new thread in
  sched_fork_thread() in ULE.  This is already done courtesy the bcopy()
  of the thread copy region.
- Always initialize the real priority (td_priority) of new threads to the
  new thread's base priority (td_base_pri) to avoid bogusly inheriting a
  borrowed priority from the parent thread.
- Properly initialize the base priority (td_base_pri) of thread0 to PVM
  to match the desired priority in td_priority.  Otherwise the first time
  thread0 used a borrowed priority it would drop down to PUSER instead of
  PVM.
- Explicitly initialize the starting priority of new kprocs to PVM to
  avoid inheriting some random priority from thread0.

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

13 years agoMFC 217077:
jhb [Thu, 27 Jan 2011 20:12:18 +0000 (20:12 +0000)]
MFC 217077:
Only change the priority of timeshare threads to PRI_MAX_TIMESHARE
when yield() is called.  Specifically, leave the priority of real time
and idle threads unchanged.

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

13 years agoMFC 217076:
jhb [Thu, 27 Jan 2011 20:09:20 +0000 (20:09 +0000)]
MFC 217076:
- Restore dropping the priority of syncer down to PPAUSE when it is idle.
  This was lost when it was converted to using a condition variable instead
  of lbolt.
- Drop the priority of flowtable down to PPAUSE when it is idle as well
  since it is a similar background task.

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

13 years agoMFC r198787
remko [Thu, 27 Jan 2011 19:11:11 +0000 (19:11 +0000)]
MFC r198787

  Document the WWWSUPFILE variable.

  PR:  137723
  Submitted by: Sofian Brabez <sbrabez at gmail dot com>
  Approved by: imp (mentor, implicit)
  MFC after: 3 days
  Facilitated by: Snow B.V.

PR: 137723

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

13 years agoMFC r216552:
yongari [Thu, 27 Jan 2011 19:05:43 +0000 (19:05 +0000)]
MFC r216552:
  Document JMC251/JMC261 support.

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

13 years agoMFC r216551:
yongari [Thu, 27 Jan 2011 19:02:28 +0000 (19:02 +0000)]
MFC r216551:
  Add support for JMicron JMC251/JMC261  Gigabit/Fast ethernet
  controller with Card Read Host Controller. These controllers are
  multi-function devices and have the same ethernet core of
  JMC250/JMC260. Starting from REVFM 5(chip full mask revision)
  controllers have the following features.
   o eFuse support
   o PCD(Packet Completion Deferring)
   o More advanced PHY power saving

  Because these controllers started to use eFuse, station address
  modified by driver is permanent as if it was written to EEPROM. If
  you have to change station address please save your controller
  default address to safe place before reprogramming it. There is no
  way to restore factory default station address.

  Many thanks to JMicron for continuing to support FreeBSD.

  HW donated by: JMicron

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

13 years agoMFC r216546,216548-216550:
yongari [Thu, 27 Jan 2011 18:44:05 +0000 (18:44 +0000)]
MFC r216546,216548-216550:
r216546:
  Consistently put a tab character between #define and the macro name.

r216548:
  Fix a regression introduced in r213893. FPGA version requires PHY
  probing so allow PHY probing on all possible addresses.

r216549:
  Make sure whether driver allocated resource before releasing it.

r216550:
  Use system defined PCIR_EXPRESS_DEVICE_CTL instead of using magic
  number.

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

13 years agoMFC r216438:
yongari [Thu, 27 Jan 2011 18:37:10 +0000 (18:37 +0000)]
MFC r216438:
  Remove unecessary and clearly wrong usage of atomic(9).

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

13 years agoMFC r216362:
yongari [Thu, 27 Jan 2011 18:31:07 +0000 (18:31 +0000)]
MFC r216362:
  Remove unecessary and clearly wrong usage of atomic(9).

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

13 years agoMFC r217509:
mav [Thu, 27 Jan 2011 13:53:21 +0000 (13:53 +0000)]
MFC r217509:
Fix 32bit bit fields handling. This fixes card serial number fetching.
It was just a cosmetic issue, because that number is only reported in logs.

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

13 years agoMFC r208441:
mav [Thu, 27 Jan 2011 13:52:23 +0000 (13:52 +0000)]
MFC r208441:
Report relative card address to NewBus as location string.

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

13 years agoMFC r215725:
mav [Thu, 27 Jan 2011 13:43:33 +0000 (13:43 +0000)]
MFC r215725:
Fix small typo.

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

13 years agoMFC r215936:
mav [Thu, 27 Jan 2011 13:40:03 +0000 (13:40 +0000)]
MFC r215936:
Do hard reset before soft reset for SATA channels. Soft reset reported to be
not enough to restore device readiness in some situations.

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

13 years agoMFC r215451:
mav [Thu, 27 Jan 2011 13:38:52 +0000 (13:38 +0000)]
MFC r215451:
Record that there is no devices if SATA reset found none.

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

13 years agoMFC r215449:
mav [Thu, 27 Jan 2011 13:37:45 +0000 (13:37 +0000)]
MFC r215449:
Some VIA SATA controllers provide access to non-standard SATA registers via
PCI config space. Use them to implement hot-plug and link speed reporting.
Tested on ASRock PV530 board with VX900 chipset.

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

13 years agoMFC r217633:
kib [Thu, 27 Jan 2011 09:52:31 +0000 (09:52 +0000)]
MFC r217633:
In tmpfs_readdir(), normalize handling of the directory entries that
either overflow the supplied buffer, or cause uiomove fail.
Do not advance cached de when directory entry was not copied out.
Do not return EOF when no entries could be copied due to first entry
too large for supplied buffer, signal EINVAL instead.

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

13 years agoMFC r217869,217870: Fix .Dd lines in re(4) and nfe(4).
cperciva [Thu, 27 Jan 2011 09:01:00 +0000 (09:01 +0000)]
MFC r217869,217870: Fix .Dd lines in re(4) and nfe(4).
k

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

13 years agoMFC 216486,216764:
jhb [Wed, 26 Jan 2011 20:36:04 +0000 (20:36 +0000)]
MFC 216486,216764:
Use bus_alloc_resource_any() instead of bus_alloc_resource().

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

13 years agoMFC 216621: Fix a typo in a comment.
jhb [Wed, 26 Jan 2011 20:29:11 +0000 (20:29 +0000)]
MFC 216621: Fix a typo in a comment.

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

13 years agoMFC 216590:
jhb [Wed, 26 Jan 2011 20:26:46 +0000 (20:26 +0000)]
MFC 216590:
Don't whine about child drivers calling pci_enable_busmaster().  That is
perfectly normal.

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

13 years agoCleanup mergeinfo a bit.
jhb [Wed, 26 Jan 2011 20:18:56 +0000 (20:18 +0000)]
Cleanup mergeinfo a bit.

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

13 years agoMFC 216334:
jhb [Wed, 26 Jan 2011 20:14:03 +0000 (20:14 +0000)]
MFC 216334:
When reopening a stream backed by an open file descriptor, do not close
the existing file descriptor.  Instead, let dup2() atomically close the
old file descriptor when assigning the newly opened file to the same
descriptor.  This closes a race in a multithreaded application where a
concurrent open() could allocate the existing file descriptor in between
the calls to close() and dup2().

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

13 years agoMFC 216235,216236:
jhb [Wed, 26 Jan 2011 20:08:53 +0000 (20:08 +0000)]
MFC 216235,216236:
When masking direct and processor devices during an inquiry, properly
preserve the upper bits of the first data byte.

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

13 years agoMFC r217590:
bschmidt [Wed, 26 Jan 2011 16:59:07 +0000 (16:59 +0000)]
MFC r217590:
Jump to the next element and not to an arbitrary point. frm[1] contains
the element's data length, frm[2] is the first byte of the element's data.

Submitted by: Monthadar Al Jaberi <monthadar at gmail.com>

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

13 years agoMFC r217747:
kib [Wed, 26 Jan 2011 08:39:34 +0000 (08:39 +0000)]
MFC r217747:
Fix typo.

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

13 years agoMerge from head to stable/8:
scf [Tue, 25 Jan 2011 23:25:23 +0000 (23:25 +0000)]
Merge from head to stable/8:

r216813:
Fix the LINUX_SOUND_MIXER_INFO ioctl to return success after the
information is set to FreeBSD.  It had been falling through to the end
of linux_ioctl_sound() and returning ENOIOCTL.  Noticed when running the
Linux ALSA amixer tool.

Add a LINUX_SOUND_MIXER_READ_CAPS ioctl which is used by the Skype
v2.1.0.81 binary.

Reviewed by: gavin

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

13 years agoMFC r217134: sed: Add test for r217863 (-i race).
jilles [Tue, 25 Jan 2011 23:04:57 +0000 (23:04 +0000)]
MFC r217134: sed: Add test for r217863 (-i race).

r217863 is the MFC of r217133.

PR: bin/153261

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

13 years agoMFC r217133: sed: Try hard links to make -i target available continually.
jilles [Tue, 25 Jan 2011 23:02:25 +0000 (23:02 +0000)]
MFC r217133:   sed: Try hard links to make -i target available continually.

When creating a backup file, sed renamed the original before renaming the
changed copy into place, leading to a short time when no file with the
original name was present (usually only visible on SMP systems). Try
creating the backup file using a hard link instead, avoiding this problem.
If creating the hard link fails for any reason, fall back to the old rename
method.

When not creating a backup file, sed already renamed the changed copy onto
the original. This remains unchanged.

PR: bin/153261
Submitted by: Pedro F. Giffuni
Reviewed by: dds (older version)
Obtained from: Illumos

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

13 years agoMFC 214835:
jhb [Tue, 25 Jan 2011 22:08:22 +0000 (22:08 +0000)]
MFC 214835:
Adjust the order of operations in spinlock_enter() and spinlock_exit() to
work properly with single-stepping in a kernel debugger.

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

13 years agoMFC r217484: mknod(2): The required include is <sys/stat.h>, not <unistd.h>.
jilles [Tue, 25 Jan 2011 21:45:00 +0000 (21:45 +0000)]
MFC r217484: mknod(2): The required include is <sys/stat.h>, not <unistd.h>.

This is what SUSv4 requires, and also the only thing that works if strict
standards compliance is requested or mknodat() is needed.

PR: standards/123688
Submitted by: gcooper

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

13 years agoMFC 214675:
jhb [Tue, 25 Jan 2011 20:59:47 +0000 (20:59 +0000)]
MFC 214675:
Don't leak the LLE lock if the arptimer callout is pending or inactive.

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

13 years agoMFC 215541:
jhb [Tue, 25 Jan 2011 20:54:15 +0000 (20:54 +0000)]
MFC 215541:
Set the POSIX semaphore capability when the semaphore module is enabled.

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