]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r218618:
dchagin [Wed, 2 Mar 2011 19:39:42 +0000 (19:39 +0000)]
MFC r218618:
Slightly rewrite linux_fork:

1) Remove bogus error checking.
2) A new process exit from kernel through fork_trampoline(),
   so remove bogus check.

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

13 years agoMFC r218617:
dchagin [Wed, 2 Mar 2011 19:38:13 +0000 (19:38 +0000)]
MFC r218617:
Remove bogus include <machine/frame.h>

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

13 years agoMFC r218616:
dchagin [Wed, 2 Mar 2011 19:36:06 +0000 (19:36 +0000)]
MFC r218616:
Move linux_clone(), linux_fork(), linux_vfork() to a MI path.

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

13 years agoMFC r218613:
dchagin [Wed, 2 Mar 2011 19:33:46 +0000 (19:33 +0000)]
MFC r218613:
In preparation for moving linux_clone() to a MI path
introduce linux_set_upcall_kse() which is used for MD works.

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

13 years agoMFC r218612:
dchagin [Wed, 2 Mar 2011 19:31:53 +0000 (19:31 +0000)]
MFC r218612:
In preparation for moving linux_clone () to a MI path
move the TLS code in a separate function.

Use function parameter instead of direct using register.

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

13 years agoMFC 217858: Remove dead code.
jhb [Wed, 2 Mar 2011 19:29:24 +0000 (19:29 +0000)]
MFC 217858: Remove dead code.

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

13 years agoMFC 217805:
jhb [Wed, 2 Mar 2011 19:27:01 +0000 (19:27 +0000)]
MFC 217805:
Fix a LOR by dropping the global ifnet locks while allocating a new ifnet
table in if_grow().  The order of the SYSINIT's for ifnet state were swapped
so that the various locks were initialized before being used.

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

13 years agoMFC: r216634, r216673
jkim [Wed, 2 Mar 2011 19:09:49 +0000 (19:09 +0000)]
MFC: r216634, r216673

Improve PCB flags handling and make it more robust.  Add two new functions
for manipulating pcb_flags.  These inline functions are very similar to
atomic_set_int(9) and atomic_clear_int(9) but without unnecessary LOCK
prefix for SMP.  Add comments about the rationale.  Use these functions
wherever possible.  Although there are some places where it is not strictly
necessary (e.g., a PCB is copied to create a new PCB), it is done across
the board for sake of consistency.  Turn pcb_full_iret into a PCB flag as
it is safe now.  Move rarely used fields before pcb_flags and reduce size
of pcb_flags to four bytes.  Fix some style(9) nits in pcb.h while I am in
the neighborhood.

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

13 years agoFix kernel build with MFC of r215706:
netchild [Wed, 2 Mar 2011 13:06:47 +0000 (13:06 +0000)]
Fix kernel build with MFC of r215706:
  Fix linux kernel module breakage introduced in r215675, by including
  <sys/sysent.h>.

Pointyhat to: netchild
Noticed by: kib

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

13 years agoMFC r215664:
netchild [Wed, 2 Mar 2011 09:53:13 +0000 (09:53 +0000)]
MFC r215664:
  By using the 32-bit Linux version of Sun's Java Development Kit 1.6
  on FreeBSD (amd64), invocations of "javac" (or "java") eventually
  end with the output of "Killed" and exit code 137.

  This is caused by:
  1. After calling exec() in multithreaded linux program threads are not
     destroyed and continue running. They get killed after program being
     executed finishes.

  2. linux_exit_group doesn't return correct exit code when called not
     from group leader. Which happens regularly using sun jvm.

  The submitters fix this in a similar way to how NetBSD handles this.

  I took the PRs away from dchagin, who seems to be out of touch of
  this since a while (no response from him).

  The patches committed here are from [2], with some little modifications
  from me to the style.

  PR:                141439 [1], 144194 [2]
  Submitted by:        Stefan Schmidt <stefan.schmidt@stadtbuch.de>, gk
  Reviewed by:        rdivacky (in april 2010)

MFC r215675:
  Do not take the process lock. The assignment to u_short inside the
  properly aligned structure is atomic on all supported architectures, and
  the thread that should see side-effect of assignment is the same thread
  that does assignment.

  Use a more appropriate conditional to detect the linux ABI.

  Suggested by:        kib

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

13 years agoRegen for r219171.
dchagin [Wed, 2 Mar 2011 06:24:46 +0000 (06:24 +0000)]
Regen for r219171.

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

13 years agoMFC r218610:
dchagin [Wed, 2 Mar 2011 06:23:19 +0000 (06:23 +0000)]
MFC r218610:
The fourth argument of linux_clone is a pointer to the TLS.
Change clone syscall definition to match actual linux one.

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

13 years agoMFC r218609:
dchagin [Wed, 2 Mar 2011 06:22:18 +0000 (06:22 +0000)]
MFC r218609:
Remove unused since r134586 thr_exit1() declaration.

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

13 years agoMFC r218646:
dchagin [Wed, 2 Mar 2011 06:21:21 +0000 (06:21 +0000)]
MFC r218646:
The bitset field of freshly created futex should be initialized
explicity. Otherwise, REQUEUE operations fails.

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

13 years agoMFC r218118:
dchagin [Wed, 2 Mar 2011 06:19:31 +0000 (06:19 +0000)]
MFC r218118:
Yet another unimplemented futex operation, print out about it.

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

13 years agoMFC r218117:
dchagin [Wed, 2 Mar 2011 06:18:21 +0000 (06:18 +0000)]
MFC r218117:
Implement a futex BITSET op.

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

13 years agoRegen for r219165.
dchagin [Wed, 2 Mar 2011 06:13:03 +0000 (06:13 +0000)]
Regen for r219165.

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

13 years agoMFC r218101:
dchagin [Wed, 2 Mar 2011 06:11:41 +0000 (06:11 +0000)]
MFC r218101:
Change linux futex syscall definition to match actual linux one.

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

13 years agoMFC r218100:
dchagin [Wed, 2 Mar 2011 06:09:52 +0000 (06:09 +0000)]
MFC r218100:
The kern_wait() code already removes the SIGCHLD signal for the waited
process. Removing other SIGCHLD signals is not needed and may cause
problems.

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

13 years agoMFC r218059:
dchagin [Wed, 2 Mar 2011 06:08:42 +0000 (06:08 +0000)]
MFC r218059:
Fix my style(9) bg introduced in r218028.

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

13 years agoMFC r218031:
dchagin [Wed, 2 Mar 2011 06:06:38 +0000 (06:06 +0000)]
MFC r218031:
Style(9) fixes.

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

13 years agoMFC r218030:
dchagin [Wed, 2 Mar 2011 06:03:54 +0000 (06:03 +0000)]
MFC r218030:
Implement a variation of the linux_common_wait() which should
be used by linuxolator itself.

Move linux_wait4() to MD path as it requires native struct
rusage translation to struct l_rusage on linux32/amd64.

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

13 years agoMFC r218028:
dchagin [Wed, 2 Mar 2011 06:01:49 +0000 (06:01 +0000)]
MFC r218028:
To avoid excessive code duplication move struct rusage translation
to a separate function.

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

13 years agoMFC r218972:
kib [Wed, 2 Mar 2011 00:36:28 +0000 (00:36 +0000)]
MFC r218972:
Move the  max_threads_per_proc and max_threads_hits variables to the
file where they are used. Declare the kern.threads sysctl node at the
same location. Since no external use for the variables exists, make them
static.

MFC r218976 (by pluknet):
Clean up the now unused #include statement.

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

13 years agoRegen.
kib [Tue, 1 Mar 2011 21:52:24 +0000 (21:52 +0000)]
Regen.

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

13 years agoMFC r210431:
kib [Tue, 1 Mar 2011 21:51:32 +0000 (21:51 +0000)]
MFC r210431:
Remove the linux_exec_copyin_args(), freebsd32_exec_copyin_args() may
serve as well. COMPAT_FREEBSD32 is a prerequisite for COMPAT_LINUX32.

MFC r210451:
Use forward declartion for enum uio_seg in imgact.h. This allows to remove
inclusion of sys/uio.h from the header.

MFC r210498:
Revert r210451, and the similar part of the r210431. The forward-declaration
for the enum tag when enum definition is not complete is not allowed by
C99, and is gcc extension.

MFC r210501:
Remove unneeded includes.

Requested by: dchagin

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

13 years agoMFC of 219149, tzdata2011b:
edwin [Tue, 1 Mar 2011 21:29:00 +0000 (21:29 +0000)]
MFC of 219149, tzdata2011b:

USA/Mercer County, North Dakota - Moved from Mountain time to Central time.

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

13 years agoMFC r218005:
dchagin [Tue, 1 Mar 2011 20:48:03 +0000 (20:48 +0000)]
MFC r218005:
Style(9) fix.

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

13 years agoMFC r217896:
dchagin [Tue, 1 Mar 2011 20:44:14 +0000 (20:44 +0000)]
MFC r217896:
Add macro to test the sv_flags of any process. Change some places to test
the flags instead of explicit comparing with address of known sysentvec
structures.

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

13 years agoMFC r217743:
dchagin [Tue, 1 Mar 2011 20:27:02 +0000 (20:27 +0000)]
MFC r217743:

Style(9) fix.

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

13 years agoMFC r217914:
yongari [Tue, 1 Mar 2011 00:11:44 +0000 (00:11 +0000)]
MFC r217914:
  Document newly added tunables.
   hw.re.intr_filter
   hw.re.msix_disable
   dev.re.%d.int_rx_mod

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

13 years agoMFC r218760:
yongari [Tue, 1 Mar 2011 00:07:38 +0000 (00:07 +0000)]
MFC r218760:
  Add initial support for RTL8401E PCIe Fast Ethernet.

  PR: 154789

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

13 years agoMFC r218289:
yongari [Tue, 1 Mar 2011 00:04:34 +0000 (00:04 +0000)]
MFC r218289:
  Disable TX IP checksum offloading for RTL8168C controllers.  The
  controller in question generates frames with bad IP checksum value
  if packets contain IP options.  For instance, packets generated by
  ping(8) with record route option have wrong IP checksum value. The
  controller correctly computes checksum for normal TCP/UDP packets
  though.
  There are two known RTL8168/8111C variants in market and the issue
  I observed happened on RL_HWREV_8168C_SPIN2. I'm not sure
  RL_HWREV_8168C also has the same issue but it would be better to
  assume it has the same issue since they shall share same core.
  RTL8102E which is supposed to be released at the time of
  RTL8168/8111C announcement does not have the issue.

  Tested by: Konstantin V. Krotov ( kkv <> insysnet dot ru )

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

13 years agoMFC r217911:
yongari [Tue, 1 Mar 2011 00:01:34 +0000 (00:01 +0000)]
MFC r217911:
  Add support for RTL8105E PCIe Fast Ethernet controller. It seems
  the controller has a kind of embedded controller/memory and vendor
  applies a large set of magic code via undocumented PHY registers in
  device initialization stage. I guess it's a firmware image for the
  embedded controller in RTL8105E since the code is too big compared
  to other DSP fixups. However I have no idea what that magic code
  does and what's purpose of the embedded controller. Fortunately
  driver seems to still work without loading the firmware.

  While I'm here change device description of RTL810xE controller.

  H/W donated by: Realtek Semiconductor Corp.

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

13 years agoMFC r217902:
yongari [Mon, 28 Feb 2011 23:41:27 +0000 (23:41 +0000)]
MFC r217902:
  Do not use interrupt taskqueue on controllers with MSI/MSI-X
  capability. One of reason using interrupt taskqueue in re(4) was
  to reduce number of TX/RX interrupts under load because re(4)
  controllers have no good TX/RX interrupt moderation mechanism.
  Basic TX interrupt moderation is done by hardware for most
  controllers but RX interrupt moderation through undocumented
  register showed poor RX performance so it was disabled in r215025.
  Using taskqueue to handle RX interrupt greatly reduced number of
  interrupts but re(4) consumed all available CPU cycles to run the
  taskqueue under high TX/RX network load.  This can happen even with
  RTL810x fast ethernet controller and I believe this is not
  acceptable for most systems.

  To mitigate the issue, use one-shot timer register to moderate RX
  interrupts. The timer register provides programmable one-shot timer
  and can be used to suppress interrupt generation. The timer runs at
  125MHZ on PCIe controllers so the minimum time allowed for the
  timer is 8ns. Data sheet says the register is 32 bits but
  experimentation shows only lower 13 bits are valid so maximum time
  that can be programmed is 65.528us. This yields theoretical maximum
  number of RX interrupts that could be generated per second is about
  15260. Combined with TX completion interrupts re(4) shall generate
  less than 20k interrupts. This number is still slightly high
  compared to other intelligent ethernet controllers but system is
  very responsive even under high network load.

  Introduce sysctl variable dev.re.%d.int_rx_mod that controls amount
  of time to delay RX interrupt processing in units of us. Value 0
  completely disables RX interrupt moderation. To provide old
  behavior for controllers that have MSI/MSI-X capability, introduce
  a new tunable hw.re.intr_filter. If the tunable is set to non-zero
  value, driver will use interrupt taskqueue. The default value of
  the tunable is 0. This tunable has no effect on controllers that
  has no MSI/MSI-X capability or if MSI/MSI-X is explicitly disabled
  by administrator.

  While I'm here cleanup interrupt setup/teardown since re(4) uses
  single MSI/MSI-X message at this moment.

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

13 years agoMFC r217868:
yongari [Mon, 28 Feb 2011 23:36:03 +0000 (23:36 +0000)]
MFC r217868:
  Remove TX taskqueue and directly invoke re_start in interrupt task.

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

13 years agoMerge userspace DTrace support from head to stable/8:
rwatson [Mon, 28 Feb 2011 23:28:35 +0000 (23:28 +0000)]
Merge userspace DTrace support from head to stable/8:

r209721:

  Merge from vendor-sys/opensolaris:
  * add fasttrap files

r209731:

  Introduce USD_{SET,GET}{BASE,LIMIT}. These help setting up the user
  segment descriptor hi and lo values. Idea from Solaris.

  Reviewed by:  kib

r209763:

  Fix style issues with the previous commit, namely
  use-tab-instead-of-space and don't use underscores in macro variables.

  Pointed out by:       bde

r210292:

  Fix typo in comment.

r210357:

  MFamd64:
    Add USD_GETBASE(), USD_SETBASE(), USD_GETLIMIT() and USD_SETLIMIT().

r210611:

  Bump the witness pendlist to 768 to accomodate the increased number of
  spinlocks.

r211553:

  Add sysname to struct opensolaris_utsname. This is needed by one DTrace
  test.

r211566:

  Add a sysname char * to struct opensolaris_utsname.

r211606:

  Add the FreeBSD definition for the fasttrap ioctls.

r211607:

  Add a function compatibility function dtrace_instr_size_isa() that on
  FreeBSD does the same as dtrace_dis_isize().

r211608:

  Kernel DTrace support for:
  o uregs  (sson@)
  o ustack (sson@)
  o /dev/dtrace/helper device (needed for USDT probes)

r211610:

  Add more compatibility structure members needed by the upcoming fasttrap
  DTrace device.

r211611:

  Destroy the helper device when unloading.

r211613:

  Fix style issues.

r211614:

  Bump KDTRACE_THREAD_ZERO and use M_ZERO as a malloc flag instead of
  calling bzero.

r211615:

  Remove an elif and add an or-clause.

r211616:

  Add an extra comment to the SDT probes definition. This allows us to get
  use '-' in probe names, matching the probe names in Solaris.

  Add userland SDT probes definitions to sys/sdt.h.

r211617:

  Call the systrace_probe_func() when the error value.

r211618:

  Port this to FreeBSD. We miss some suword functions, so we use copyout.

r211738:

  Port the fasttrap provider to FreeBSD. This provider is responsible for
  injecting debugging probes in the userland programs and is the basis for
  the pid provider and the usdt provider.

r211744:

  MD fasttrap implementation.

r211745:

  Replace a pksignal() call with tdksignal().

  Pointed out by:       kib

r211746:

  Update for the recent location of the fasttrap code.

r211747:

  Replace structure assignments with explicity memcpy calls. This allows
  Clang to compile this file: it was using the builtin memcpy and we want
  to use the memcpy defined in gptboot.c. (Clang can't compile boot2 yet).

  Submitted by: Dimitry Andric <dimitry at andric.com>
  Reviewed by:  jhb

r211751:

  Add a trap code for DTrace induced traps.

r211752:

  Add two DTrace trap type values. Used by fasttrap.

r211753:

  Enable fasttrap and make dtraceall depend on fasttrap when building i386
  or amd64.

r211804:

  Call the necessary DTrace function pointers when we have different kinds
  of traps.

r211813:

  Add the necessary DTrace function pointers.

r211839:

  Sync DTrace bits with amd64 and fix the build.

r211924:

  Register an interrupt vector for DTrace return probes. There is some
  code missing in lapic to make sure that we don't overwrite this entry,
  but this will be done on a sequent commit.

r211925:

  Replace a memory barrier with a mutex barrier.

r211926:

  Add the path necessary to find fasttrap_isa.h to CFLAGS.

r211929:

  Remove debugging.

r212004:

  When DTrace is enabled, make sure we don't overwrite the IDT_DTRACE_RET
  entry with an IRQ for some hardware component.

  Reviewed by:  jhb

r212093:

  Make the /dev/dtrace/helper node have the mode 0660. This allows
  programs that refuse to run as root (pgsql) to install probes when their
  user is part of the wheel group.

r212357:

  Fix two bugs in DTrace:
  * when the process exits, remove the associated USDT probes
  * when the process forks, duplicate the USDT probes.

r212465:

  Avoid a LOR (sleepable after non-sleepable) in
  fasttrap_tracepoint_enable().

r212494:

  Revamp locking a bit. This fixes three problems:
  * processes now can't go away while we are inserting probes (fixes a panic)
  * if a trap happens, we won't be holding the process lock (fixes a hang)
  * fix a LOR between the process lock and the fasttrap bucket list lock

  Thanks to kib for pointing some problems.

r212568:

  Bump __FreeBSD_version to reflect the userland DTrace changes

Sponsored by:                   The FreeBSD Foundation
Userspace DTrace work by:       rpaulo

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

13 years agoMFC r217857:
yongari [Mon, 28 Feb 2011 21:21:24 +0000 (21:21 +0000)]
MFC r217857:
  Prefer MSI-X to MSI on controllers that support MSI-X. All
  recent PCIe controllers(RTL8102E or later and RTL8168/8111C or
  later) supports either 2 or 4 MSI-X messages. Unfortunately vendor
  did not publicly release RSS related information yet. However
  switching to MSI-X is one-step forward to support RSS.

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

13 years agoMFC: r219036
ken [Mon, 28 Feb 2011 16:39:15 +0000 (16:39 +0000)]
MFC: r219036

Silence 'out of chain frames' warnings and bump the number of frames.

mps.c: Hide the 'out of chain frames' warning behind MPS_INFO.

mps_sas.c: Hide the SIM queue freeze/unfreeze messages behind MPS_INFO.

mpsvar.h: Bump the number of chain frames from 1024 to 2048.  From
testing, it looks like this makes it less likely that we'll
run out of chain frames, and it doesn't cost much memory
(32K).

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

13 years agoMFC 205076 [1]:
gjb [Sun, 27 Feb 2011 18:23:28 +0000 (18:23 +0000)]
MFC 205076 [1]:

Fix reference to fsck(8).

PR: 154215
Submitted by: Mats Erik Andersson (debian of gisladisker se)
Obtained from: uqs [1]

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

13 years agoMFC 212498:
gjb [Sun, 27 Feb 2011 17:30:45 +0000 (17:30 +0000)]
MFC 212498:

Rewording and typo fixes in newfs(8).

PR: 150490

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

13 years agoMFC r218881:
kib [Sun, 27 Feb 2011 09:12:24 +0000 (09:12 +0000)]
MFC r218881:
Add restrict keyword to pthread_sigmask prototype and manpage.

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

13 years agoMFC r217453
alc [Sat, 26 Feb 2011 21:27:41 +0000 (21:27 +0000)]
MFC r217453
  For some time now, the kernel and kmem objects have been ordinary
  OBJT_PHYS objects.  Thus, there is no need for handling them specially
  in vm_fault().  In fact, this special case handling would have led to
  an assertion failure just before the call to pmap_enter().

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

13 years agoMFC r217477
alc [Sat, 26 Feb 2011 21:24:13 +0000 (21:24 +0000)]
MFC r217477
  Clean up the start of vm_page_alloc().

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

13 years agoMFC r206140
alc [Sat, 26 Feb 2011 21:18:38 +0000 (21:18 +0000)]
MFC r206140
  Re-enable the call to pmap_release() by vmspace_dofree().

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

13 years agoMFC r216090
alc [Sat, 26 Feb 2011 21:08:09 +0000 (21:08 +0000)]
MFC r216090
  Correct an error in the allocation of the vm_page_dump array in
  vm_page_startup().  Specifically, the dump_avail array should be used
  instead of the phys_avail array to calculate the size of vm_page_dump.

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

13 years agoMFC r217642:
ume [Sat, 26 Feb 2011 20:04:14 +0000 (20:04 +0000)]
MFC r217642:
  - Hide the internal scope address representation of the KAME IPv6
    stack from the output of `netstat -ani'.
  - The node-local multicast address in the output of `netstat -rn'
    should be handled as well.

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

13 years agoMFC r218974:
brucec [Sat, 26 Feb 2011 12:04:34 +0000 (12:04 +0000)]
MFC r218974:

Handle memory allocation failures in include().

Fix a format specifier in libefi: status is an unsigned int, not unsigned
long.

PR:           i386/85652
Submitted by: Ben Thomas <bthomas at virtualiron.com>

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

13 years agoMFC r218985:
brucec [Sat, 26 Feb 2011 11:46:06 +0000 (11:46 +0000)]
MFC r218985:

Use the cprd_mem field when setting the start and length for a memory
resource - the layout of cprd_port is identical but using cprd_mem
makes the code easier to understand.

PR:           kern/118493
Submitted by: Weongyo Jeong <weongyo.jeong at gmail.com>

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

13 years agoMFC r218965:
brucec [Sat, 26 Feb 2011 10:29:53 +0000 (10:29 +0000)]
MFC r218965:

Fix typos - remove duplicate "is".

PR: docs/154934
Submitted by: Eitan Adler <lists at eitanadler.com>

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

13 years agoMFC r216591:
netchild [Fri, 25 Feb 2011 15:32:44 +0000 (15:32 +0000)]
MFC r216591:
  Suggest to run the delete-old target after the second mergemaster. If you run
  it before, your rc scripts may still reference old files/directories and
  if you are in the unlucky situation to have triggered a reboot (intentionally
  or not) between the delete-old run and the mergemaster, your system may not
  start anymore.

  While I'm here, give a hint about delete-old-libs.

  Noticed by:        bcr (luckily in a discussion and not by getting hit by
                          this)

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

13 years agoMFC r218724: test: Note that this is used both as a normal program and
jilles [Fri, 25 Feb 2011 14:54:57 +0000 (14:54 +0000)]
MFC r218724: test: Note that this is used both as a normal program and
a shell builtin.

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

13 years agoMFC r218753:
dougb [Thu, 24 Feb 2011 23:43:56 +0000 (23:43 +0000)]
MFC r218753:

Remove in-addr.arpa from the list of zones it is possible to slave locally

MFC r218865:

Add a note about AXFR of important zones being available from ICANN

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

13 years ago8.2-RELEASE has been announced, shift to -STABLE.
kensmith [Thu, 24 Feb 2011 20:44:11 +0000 (20:44 +0000)]
8.2-RELEASE has been announced, shift to -STABLE.

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

13 years agoAdd more relnotes item: a carp(4) and linkstate change issue is fixed.
hrs [Thu, 24 Feb 2011 19:11:27 +0000 (19:11 +0000)]
Add more relnotes item: a carp(4) and linkstate change issue is fixed.

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

13 years agoMFC r218918:
brucec [Thu, 24 Feb 2011 11:08:23 +0000 (11:08 +0000)]
MFC r218918:

Make private functions static.

PR:           kern/43611
Submitted by: Matt Emmerton <matt at gsicomp.on.ca>

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

13 years agoMFC r218910:
brucec [Thu, 24 Feb 2011 11:03:16 +0000 (11:03 +0000)]
MFC r218910:

The FD_FORM ioctl used to ignore errors from the floppy controller; now when
it encounters an error it returns an error from the ioctl.
Ignore any errors when using the FD_FORM ioctl.

PR:   kern/103862

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

13 years agoMFC r218909:
brucec [Thu, 24 Feb 2011 10:23:22 +0000 (10:23 +0000)]
MFC r218909:

Fix typos - remove duplicate "the".

PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>

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

13 years agoMFC r218772:
kib [Thu, 24 Feb 2011 10:11:29 +0000 (10:11 +0000)]
MFC r218772:
Install iodev.h.

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

13 years agoMFC r218917:
pluknet [Thu, 24 Feb 2011 09:12:45 +0000 (09:12 +0000)]
MFC r218917:

 mdoc(7) markup.

Approved by: avg (mentor)

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

13 years agoMore wording nit.
hrs [Wed, 23 Feb 2011 20:26:43 +0000 (20:26 +0000)]
More wording nit.

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

13 years agoMFH r218477: Fix termcap entry typo.
uqs [Wed, 23 Feb 2011 20:24:10 +0000 (20:24 +0000)]
MFH r218477: Fix termcap entry typo.

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

13 years agoVarious wording fixes.
hrs [Wed, 23 Feb 2011 20:13:07 +0000 (20:13 +0000)]
Various wording fixes.

Suggested by: keramida

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

13 years agoUpdate Errata document for 8.2R. CVE-2011-0014 fix for OpenSSL.
hrs [Wed, 23 Feb 2011 19:33:42 +0000 (19:33 +0000)]
Update Errata document for 8.2R.  CVE-2011-0014 fix for OpenSSL.

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

13 years agoImport and update relnotes items for 8.2R:
hrs [Wed, 23 Feb 2011 19:07:50 +0000 (19:07 +0000)]
Import and update relnotes items for 8.2R:
fix SA table's cell width[1],
alq(4) improvement in details, TCP reassembly improved[2],
xz rewording[3], and
various grammer fixes[4].

Suggested by: dougb[1], keramida[1], lstewart[2], mm[3], mandree[4].

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

13 years agoMFC r218710:
yongari [Tue, 22 Feb 2011 21:24:36 +0000 (21:24 +0000)]
MFC r218710:
  Fix a regression introduced in r215906. The change made in r215906
  caused link re-negotiation whenever application joins or leaves a
  multicast group.  If driver is running, it would have established a
  link so there is no need to start re-negotiation. The re-negotiation
  broke established link which in turn stopped multicast application
  working while re-negotiation is in progress.

  PR: kern/154667

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

13 years agoMFC r218854:
brucec [Tue, 22 Feb 2011 17:43:09 +0000 (17:43 +0000)]
MFC r218854:

Update the icmp example to show allowing only the safe types.

Suggested by: Tom Judge <tom at tomjudge.com>

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

13 years agoMFC r218841:
brucec [Tue, 22 Feb 2011 17:40:18 +0000 (17:40 +0000)]
MFC r218841:

Allow users to create ufs1 filesystems via the noninteractive install.cfg
system.

PR:           bin/113979

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

13 years agoMFC r218840:
brucec [Tue, 22 Feb 2011 17:38:43 +0000 (17:38 +0000)]
MFC r218840:

Remove the quotas option from the Startup Services menu.
GENERIC has no support for quotas so this option has no effect.

PR:           bin/123237
Submitted by: Lawrence Mayer <lawmay3 at i12.com>

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

13 years agoMFC r218839:
brucec [Tue, 22 Feb 2011 17:37:13 +0000 (17:37 +0000)]
MFC r218839:

In the distribution list, 'A' is listed as the key to press to select both
'All' and 'Minimal'. Update the keys for Minimal and Custom to avoid the
conflict.

PR:   bin/153809
Submitted by: Janne Snabb <snabb at epipe.com>

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

13 years agoMFC r218368:
bschmidt [Mon, 21 Feb 2011 21:00:29 +0000 (21:00 +0000)]
MFC r218368:
Fix cut&paste mistake.

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

13 years agoMFC: r218812
ken [Mon, 21 Feb 2011 18:11:56 +0000 (18:11 +0000)]
MFC: r218812

Fix several issues with the mps(4) driver.

When the driver ran out of DMA chaining buffers, it kept the timeout for
the I/O, and I/O would stall.

The driver was not freezing the device queue on errors.

mps.c: Pull command completion logic into a separate
function, and call the callback/wakeup for commands
that are never sent due to lack of chain buffers.

Add a number of extra diagnostic sysctl variables.

Handle pre-hardware errors for configuration I/O.
This doesn't panic the system, but it will fail the
configuration I/O and there is no retry mechanism.
So the device probe will not succeed.  This should
be a very uncommon situation, however.

mps_sas.c: Freeze the SIM queue when we run out of chain
buffers, and unfreeze it when more commands
complete.

Freeze the device queue when errors occur, so that
CAM can insure proper command ordering.

Report pre-hardware errors for task management
commands.  In general, that shouldn't be possible
because task management commands don't have S/G
lists, and that is currently the only error path
before we get to the hardware.

Handle pre-hardware errors (like out of chain
elements) for SMP requests.  That shouldn't happen
either, since we should have enough space for two
S/G elements in the standard request.

For commands that end with
MPI2_IOCSTATUS_SCSI_IOC_TERMINATED and
MPI2_IOCSTATUS_SCSI_EXT_TERMINATED, return them
with CAM_REQUEUE_REQ to retry them unconditionally.
These seem to be related to back end, transport
related problems that are hopefully transient.  We
don't want to go through the retry count for
something that is not a permanent error.

Keep track of the number of outstanding I/Os.

mpsvar.h: Track the number of free chain elements.

Add variables for the number of outstanding I/Os,
and I/O high water mark.

Add variables to track the number of free chain
buffers and the chain low water mark, as well as
the number of chain allocation failures.

Add I/O state flags and an attach done flag.

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

13 years agoMFC: r218811:
ken [Mon, 21 Feb 2011 16:55:53 +0000 (16:55 +0000)]
MFC: r218811:

In the MPS driver, during device removal processing, don't assume that
the controller firmware will return all of our commands.  Instead, keep
track of outstanding I/Os and return them to CAM once device removal
processing completes.

mpsvar.h: Declare the new "io_list" in the mps_softc.

mps.c: Initialize the new "io_list" in the mps softc.

mps_sas.c: o Track SCSI I/O requests on the io_list from the
  time of mpssas_action() through mpssas_scsiio_complete().
o Zero out the request structures used for device
  removal commands prior to filling them out.
o Once the target reset task management function completes
  during device removal processing, assume any SCSI I/O
  commands that are still oustanding will never return
  from the controller, and process them manually.

Submitted by: gibbs

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

13 years agoMFC r216098:
jh [Mon, 21 Feb 2011 16:30:27 +0000 (16:30 +0000)]
MFC r216098:

- Report an error when a label with invalid name is attempted to be
  created with glabel(8).
- Fix a typo in an error message.
- Fix comment typos.

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

13 years agoMFC r218127, r218128:
mm [Mon, 21 Feb 2011 10:08:47 +0000 (10:08 +0000)]
MFC r218127, r218128:

Add xz(1) support to newsyslog.
Rewrite and simplify logfile compression code.

Approved by: gad

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

13 years agoMFC r217524,217766:
yongari [Mon, 21 Feb 2011 01:19:09 +0000 (01:19 +0000)]
MFC r217524,217766:
  Change model names of controller RTL_HWREV_8168_SPIN[123] to real ones.
  s/RL_HWREV_8168_SPIN1/RL_HWREV_8168B_SPIN1/g
  s/RL_HWREV_8168_SPIN2/RL_HWREV_8168B_SPIN2/g
  s/RL_HWREV_8168_SPIN3/RL_HWREV_8168B_SPIN3/g
  No functional changes.

r217766:
  Apply TX interrupt moderation to all RTL810xE PCIe Fast Ethernet
  controllers. Experimentation with RTL8102E, RTL8103E and RTL8105E
  showed dramatic decrement of TX completion interrupts under high TX
  load(e.g.  from 147k interrupts/second to 10k interrupts/second)
  With this change, TX interrupt moderation is applied to all
  controllers except RTL8139C+.

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

13 years agoMFC r217499:
yongari [Mon, 21 Feb 2011 01:08:13 +0000 (01:08 +0000)]
MFC r217499:
  Implement initial jumbo frame support for RTL8168/8111 C/D/E PCIe
  GbE controllers. It seems these controllers no longer support
  multi-fragmented RX buffers such that driver have to allocate
  physically contiguous buffers.

   o Retire RL_FLAG_NOJUMBO flag and introduce RL_FLAG_JUMBOV2 to
     mark controllers that use new jumbo frame scheme.
   o Configure PCIe max read request size to 4096 for standard frames
     and reduce it to 512 for jumbo frames.
   o TSO/checksum offloading is not supported for jumbo frames on
     these controllers. Reflect it to ioctl handler and driver
     initialization.
   o Remove unused rl_stats_no_timeout in softc.
   o Embed a pointer to structure rl_hwrev into softc to keep track
     of controller MTU limitation and remove rl_hwrev in softc since
     that information is available through a pointer to structure
     rl_hwrev.

  Special thanks to Realtek for donating sample hardwares which made
  this possible.

  H/W donated by: Realtek Semiconductor Corp.

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

13 years agoMFC r217498:
yongari [Mon, 21 Feb 2011 01:04:16 +0000 (01:04 +0000)]
MFC r217498:
  Add initial support for RTL8168E/8111E-VL PCIe GbE.

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

13 years agoMFC r217247,217381-217382,217384-217385:
yongari [Mon, 21 Feb 2011 00:58:50 +0000 (00:58 +0000)]
MFC r217247,217381-217382,217384-217385:
r217247:
  When driver is not running, do not send DUMP command to controller
  and just show old (cached) values. Controller will not respond to
  the command unless MAC is enabled so DUMP request for down
  interface caused request timeout.

r217381:
  Allow TX/RX checksum offloading to be configured independently.

r217382:
  re_reset() should be called only after setting device specific
  features.

r217384:
  Make sure to check validity of dma maps before destroying.

r217385:
  If driver is not able to allocate RX buffer, do not start driver.
  While I'm here move RX buffer allocation and descriptor
  initialization up to not touch hardware registers in case of RX
  buffer allocation failure.

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

13 years agoMFC r217246,217832:
yongari [Mon, 21 Feb 2011 00:47:39 +0000 (00:47 +0000)]
MFC r217246,217832:
r217246:
  Implement TSO on RealTek RTL8168/8111 C or later controllers.
  RealTek changed TX descriptor format for later controllers so these
  controllers require MSS configuration in different location of TX
  descriptor. TSO is enabled by default for controllers that use new
  descriptor format.
  For old controllers, TSO is still disabled by default due to broken
  frames under certain conditions but users can enable it.
  Special thanks to Hayes Wang at RealTek.

r217832:
  Disable TSO for all Realtek controllers. Experimentation showed
  RTL8111C generated corrupted frames where TCP option header was
  broken. All other sample controllers I have did not show such
  problem so it could be RTL8111C specific issue. Because there are
  too many variants it's hard to tell how many controllers have such
  issue. Just disable TSO by default but have user override it.

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

13 years agoMFH r218089:
uqs [Sun, 20 Feb 2011 11:29:40 +0000 (11:29 +0000)]
MFH r218089:

syscons: install all available kbdmaps

eee_nordic.kbd, us.dvorakl.kbd, and us.dvorakr.kbd were not installed.

Found by:     Neil Short <neshort@yahoo.com>

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

13 years agoMFC r218670:
kib [Sun, 20 Feb 2011 09:17:59 +0000 (09:17 +0000)]
MFC r218670:
Lock the vnode around clearing of VV_TEXT flag. Remove mp_fixme() note
mentioning that vnode lock is needed.

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

13 years agoMFC r215432:
yongari [Sun, 20 Feb 2011 01:24:59 +0000 (01:24 +0000)]
MFC r215432:
  MCP55 is the only NVIDIA controller that supports VLAN tag
  insertion/stripping and it also supports TSO over VLAN. Implement
  TSO over VLAN support for MCP55 controller.

  While I'm here clean up SIOCSIFCAP ioctl handler. Since nfe(4)
  sets ifp capabilities based on various hardware flags in device
  attach, there is no need to check hardware flags again in
  SIOCSIFCAP ioctl handler. Also fix a bug which toggled both TX and
  RX checksum offloading even if user requested either TX or RX
  checksum configuration change.

  Tested by: Rob Farmer ( rfarmer <> predatorlabs dot net )

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

13 years agoMFC r217794:
yongari [Sun, 20 Feb 2011 01:20:49 +0000 (01:20 +0000)]
MFC r217794:
  Reinitialize driver when MTU is changed and driver is running.

  Reported by: Huang, Yusheng ( yusheng.huang <> bluecoat com )

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

13 years agoMFC r218141:
yongari [Sun, 20 Feb 2011 01:15:26 +0000 (01:15 +0000)]
MFC r218141:
  alc_rev was used without initialization such that it failed to
  apply AR8152 v1.0 specific initialization code. Fix this bug by
  explicitly reading PCI device revision id via PCI accessor.

  Reported by: Gabriel Linder ( linder.gabriel <> gmail dot com )

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

13 years agoMFC r217379:
yongari [Sun, 20 Feb 2011 01:08:49 +0000 (01:08 +0000)]
MFC r217379:
  - Move ether_ifdetach() earlier and remove now-unneeded IN_DETACH flag.
  - Expand locking in interrupt handler.

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

13 years agoMFC r217353:
yongari [Sun, 20 Feb 2011 01:02:11 +0000 (01:02 +0000)]
MFC r217353:
  - Add a locked variant of jme_start() and invoke it directly while holding
    the lock instead of queueing it to a task.
  - Do not invoke jme_rxintr() to reclaim any unprocessed but received
    packets when shutting down the interface.  Instead, just drop these
    packets to match the behavior of other drivers.
  - Hold the driver lock in the interrupt handler to avoid races with
    ioctl requests to down the interface.

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

13 years agoMFC: revision 218391
nyan [Sat, 19 Feb 2011 11:47:48 +0000 (11:47 +0000)]
MFC: revision 218391

  Fix linking of the kernel without device npx.

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

13 years agoMFC: revision 218390
nyan [Sat, 19 Feb 2011 11:44:46 +0000 (11:44 +0000)]
MFC: revision 218390

  Clear the padding when returning context to the usermode.

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

13 years agoMFC r218329:
kib [Sat, 19 Feb 2011 07:45:17 +0000 (07:45 +0000)]
MFC r218329:
Fix kernel linkage without device npx.

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

13 years agoMFC r218327:
kib [Sat, 19 Feb 2011 07:39:14 +0000 (07:39 +0000)]
MFC r218327:
Clear the padding when returning context to the usermode.

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

13 years agoMFC 212441,212492:
gjb [Fri, 18 Feb 2011 17:41:39 +0000 (17:41 +0000)]
MFC 212441,212492:

- Note O_SYNC and O_NOFOLLOW flags in dbopen(3) since r190497. [1]
- Bump dates in dbopen(3) and cpuset_getaffinity(2).

PR: 150030 [1]

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

13 years agoMFC: 212420, 212616, 212772, 212802, 213535, 213702, 213704, 213707, 213708,
ken [Fri, 18 Feb 2011 16:29:38 +0000 (16:29 +0000)]
MFC: 212420, 212616, 212772, 212802, 213535, 213702, 213704, 213707, 213708,
     213743, 213839, 213840, 213882, 213898, 216088, 216227, 216363, 216368:

Merge the mps(4) driver into stable/8.  This is currently only included in
GENERIC on amd64, since that is the only architecture it has been tested
on.

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

13 years agoMFC r218550:
kib [Fri, 18 Feb 2011 09:47:58 +0000 (09:47 +0000)]
MFC r218550:
For UIO_NOCOPY case of reading request on zfs vnode, which has vm object
attached, activate the page after the successful read, and free the page
if read was unsuccessfull.

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

13 years agoMFC: r214904: bring MIPS minidump support to libkvm
obrien [Fri, 18 Feb 2011 00:02:35 +0000 (00:02 +0000)]
MFC: r214904: bring MIPS minidump support to libkvm

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

13 years agoMFC r218620:
brucec [Wed, 16 Feb 2011 21:41:44 +0000 (21:41 +0000)]
MFC r218620:

If the pf.conf(5) example file is copied when setting up a firewall it's
easy to forget about icmp. Update the file to show allowing icmp through
the firewall.

PR: docs/144096

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

13 years agoMFC r218619:
brucec [Wed, 16 Feb 2011 21:27:19 +0000 (21:27 +0000)]
MFC r218619:

Fix typos.

PR: docs/131625
Submitted by: Andrew Wright <andrew at qemg.org>

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

13 years agoMFC r218652, r218677:
brucec [Wed, 16 Feb 2011 21:21:23 +0000 (21:21 +0000)]
MFC r218652, r218677:

Only print the unit number when invoked with the -n flag.

PR: bin/144300
Submitted by: arundel

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

13 years agoMFC r218650:
brucec [Wed, 16 Feb 2011 21:10:50 +0000 (21:10 +0000)]
MFC r218650:

Move potentially offensive fortune to fortunes-o.

PR: bin/137702

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

13 years agoGuess when all the bits will be in place for announcing 8.2-RELEASE.
kensmith [Wed, 16 Feb 2011 14:25:26 +0000 (14:25 +0000)]
Guess when all the bits will be in place for announcing 8.2-RELEASE.

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