]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r233041:
kib [Mon, 19 Mar 2012 10:06:22 +0000 (10:06 +0000)]
MFC r233041:
Remove write-only variable.

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

12 years agoMFC r232541:
kib [Mon, 19 Mar 2012 10:04:45 +0000 (10:04 +0000)]
MFC r232541:
Apply inlined vn_vget_ino() algorithm for ".." lookup in pseudofs.

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

12 years agoMFC r232894:
dim [Mon, 19 Mar 2012 08:10:23 +0000 (08:10 +0000)]
MFC r232894:
  Pull in r145194 from upstream clang trunk:

    Make our handling of MMX x SSE closer to what gcc does:

    * Enabling sse enables mmx.
    * Disabling (-mno-mmx) mmx, doesn't disable sse (we got this right already).
    * The order in not important. -msse -mno-mmx is the same as -mno-mmx -msse.

  Some configure scripts depend on this.

  PR: i386/165968

MFC r232933:
  Update comments and CFLAGS in sys/conf/kern.mk, introduced in r221879,
  to match reality: clang does _not_ disable SSE automatically when
  -mno-mmx is used, you have to specify -mno-sse explicitly.

  Note this was the case even before r232894, which only makes a change in
  the 'positive' flag case; e.g. when you specify -msse, MMX gets enabled
  too.

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

12 years agoMFC r232337:
mav [Mon, 19 Mar 2012 07:34:09 +0000 (07:34 +0000)]
MFC r232337:
Add driver for the RME HDSPe AIO/RayDAT sound cards -- snd_hdspe(4).
Cards are expensive and so rare, so leave the driver as module.

Submitted by: Ruslan Bukin <br@bsdpad.com>

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

12 years agoMFC r230845:
mav [Mon, 19 Mar 2012 07:24:26 +0000 (07:24 +0000)]
MFC r230845:
Make sound(4) more flexible in setting soft buffer and block sizes when
hardware imposes strict limitations on hard buffer and block sizes.

Previous code set soft buffer to be no smaller then hard buffer. On some
cards with fixed 64K physical buffer that caused up to 800ms play latency.
New code allows to set soft buffer size down to just two blocks of the hard
buffer and to not write more then that size ahead to the hardware buffer.
As result of that change I was able to reduce full practically measured
record-playback loop delay in those conditions down to only about 115ms
with theoretical playback latency of only about 50ms.

New code works fine for both vchans and direct cases. In both cases sound(4)
tries to follow hw.snd.latency_profile and hw.snd.latency values and
application-requested buffer and block sizes as much as limitation of two
hardware blocks allows.

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

12 years agoMFC r232783:
mav [Mon, 19 Mar 2012 07:15:42 +0000 (07:15 +0000)]
MFC r232783:
Idle ticks optimization:
 - Pass number of events to the statclock() and profclock() functions
   same as to hardclock() before to not call them many times in a loop.
 - Rename them into statclock_cnt() and profclock_cnt().
 - Turn statclock() and profclock() into compatibility wrappers,
   still needed for arm.
 - Rename hardclock_anycpu() into hardclock_cnt() for unification.

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

12 years agoMFC r232797:
mav [Mon, 19 Mar 2012 07:13:30 +0000 (07:13 +0000)]
MFC r232797:
ServerWorks HT1000 HPET reported to have problems with IRQs >= 16.
Lower (ISA) IRQs are working, but allowed mask is not set correctly.
Block both by default to allow HP BL465c G6 blade system to boot.

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

12 years agoMFC r232505:
eadler [Mon, 19 Mar 2012 01:56:26 +0000 (01:56 +0000)]
MFC r232505:
Remove outdated comment of seven years

PR: docs/116116
Approved by: cperciva

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

12 years agoMFC r231306:
eadler [Mon, 19 Mar 2012 01:51:08 +0000 (01:51 +0000)]
MFC r231306:
Fix NULL ptr dereference in setusercontext if pwd is null,
LOGIN_SETPRIORITY is set, and setting the priority (rtprio or
setpriority) fails.

PR: kern/164238
Approved by: cperciva

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

12 years agoMFC r232504:
eadler [Mon, 19 Mar 2012 01:32:28 +0000 (01:32 +0000)]
MFC r232504:
Remove reference to gcc's non-standard -fwritable-strings, which
doesn't exist in recent releases (and is bad advice anyway)

PR: docs/163119
Approved by: cperciva

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

12 years agoMFC r232503:
eadler [Mon, 19 Mar 2012 01:27:30 +0000 (01:27 +0000)]
MFC r232503:
POSIX mandates that swab do nothing when len < 0

PR: 140690
Approved by: cperciva

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

12 years agoMFC r232506:
eadler [Mon, 19 Mar 2012 01:18:22 +0000 (01:18 +0000)]
MFC r232506:
Explicitly list dependency

PR: misc/160463
Approved by: cperciva

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

12 years agoMFC r232501:
eadler [Mon, 19 Mar 2012 01:15:36 +0000 (01:15 +0000)]
MFC r232501:
ehci tunables are only available when kernel is compiled with USB_DEBUG

PR: docs/163646
Approved by: cperciva

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

12 years agoMFC r232466, r232469:
eadler [Mon, 19 Mar 2012 01:04:26 +0000 (01:04 +0000)]
MFC r232466, r232469:
Direct users to swapinfo and pstat from df

PR: bin/165321
Approved by: cperciva

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

12 years agoMFC r232483:
kevlo [Sun, 18 Mar 2012 15:03:02 +0000 (15:03 +0000)]
MFC r232483:

Clean up style(9) nits

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

12 years agoMFC r232994:
kevlo [Sun, 18 Mar 2012 14:49:36 +0000 (14:49 +0000)]
MFC r232994:
- Fix an erroneous invocation of the editline.
- Fix wrong scaling in the bc.library.
- Let length(0.000) conform to what gnu bc does.

PR: bin/159227
Submitted by: AIDA Shinra <shinra at j10n dot org>

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

12 years agoMFC r226892,r228007,r228873,r230121,r232839: sh: Various testcases that
jilles [Sun, 18 Mar 2012 13:02:56 +0000 (13:02 +0000)]
MFC r226892,r228007,r228873,r230121,r232839: sh: Various testcases that
already work.

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

12 years agoMFC r228322,228330,228477,228495,228562,228564,228859,228897,229574,230277:
ed [Sun, 18 Mar 2012 09:19:40 +0000 (09:19 +0000)]
MFC r228322,228330,228477,228495,228562,228564,228859,228897,229574,230277:

  Bring <sys/cdefs.h> in sync with FreeBSD HEAD:

  - Add an __alignof() for non-GCC and GCC < 2.95.
  - Attempt to implement the following C11 keywords: _Alignas(),
    _Alignof(), _Noreturn, _Static_assert() and _Thread_local.
  - Add __generic(), which allows us to do _Generic() in a portable
    fashion.
  - Improve __offsetof(), __DECONST(), __DEVOLATILE() and __DEQUALIFY()
    to use __uintptr_t and __size_t to make them work with less
    header prerequisites.
  - Add __has_feature(), __has_include() and __has_builtin() to make it
    easier to test against Clang features.

Tested by: linimon@'s exp-run (thanks!)

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

12 years agoMFC 232322:
dim [Sat, 17 Mar 2012 22:29:05 +0000 (22:29 +0000)]
MFC 232322:
  Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that
  installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp.

  Note this does *not* disable building and installing gcc, which will
  still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp.  If
  you want to disable gcc completely, you must use WITHOUT_GCC.

MFC 232323:
  Regenerate src.conf(5) after r232322.

MFC 232477:
  In r232322, I forgot one case where a check for MK_CLANG_IS_CC was
  needed, in sys/conf/kern.pre.mk.  Add it now.

MFC 232522:
  Fix a thinko in r232322, where gcc (and its tools) are not built during
  the cross-tools stage, if CC=clang and WITH_CLANG_IS_CC is not set.

  This causes no 'cc' to be installed in the temporary cross-tools tree,
  making lint fall over later in the build, because it ignores ${CC} and
  attempts to run 'cc' anyway.

  To fix this, only skip building gcc during cross-tools, if WITHOUT_GCC
  is set, or if WITH_CLANG_IS_CC is set.

  Pointy hat to: dim

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

12 years agoMFC: r232316
brueffer [Sat, 17 Mar 2012 12:33:12 +0000 (12:33 +0000)]
MFC: r232316

Update bridge(4) default values.

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

12 years agoMFC: r232315
brueffer [Sat, 17 Mar 2012 12:11:53 +0000 (12:11 +0000)]
MFC: r232315

Use a more appropriate default for the maximum number of addresses in the
bridge forwarding table.

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

12 years agoMFC r232780 and r232781:
ed [Sat, 17 Mar 2012 09:10:43 +0000 (09:10 +0000)]
MFC r232780 and r232781:

  Fix whitespace.

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

12 years agoMFC r232785
iwasaki [Sat, 17 Mar 2012 06:48:13 +0000 (06:48 +0000)]
MFC r232785

Fix wrong asresp frame parsing in iwi_checkforqos().

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

12 years agoMFC r227430:
marcel [Sat, 17 Mar 2012 05:45:21 +0000 (05:45 +0000)]
MFC r227430:
On i386, fbt probes are implemented by writing an invalid opcode over
certain instructions in a function prologue or epilogue.  DTrace has a
hook into the invalid opcode fault handler that checks whether the fault
was due to an probe and if so, runs the DTrace magic.

Upon returning from an invalid opcode fault caused by a probe, DTrace must
emulate the instruction that was replaced with the invalid opcode and then
return control to the instruction following the invalid opcode.

There were a pair of related bugs in the emulation for the leave
instruction.  The leave instruction is used to pop off a stack frame prior
to returning from a function.  The emulation for this instruction must
move the trap frame for the invalid opcode fault down the stack to the
bottom of the stack frame that is being removed, and then execute an iret.

At two points in this process, the emulation code was storing values above
the current value of the stack pointer.  This opened up a window in which
if we were two take an interrupt, the trap frame for the interrupt would
overwrite the values stored on the stack, causing the system to panic
later.

The first bug was that at one point the emulation code saves the new value
for $esp above the current stack pointer value.  The fix is to save this
value instead inside of the original trap frame.  At this point we do
not need the original trap frame so this is safe.

The second bug is that when the emulate code loads $esp from the stack, it
points part-way through the new trap frame instead of at its beginning.
The emulation code adjusts the stack pointer to the correct value
immediately afterwards, but this still leaves a one instruction window in
which an interrupt would corrupt this trap frame.  Fix this by adjusting
the stack frame value before loading it into $esp.

This fixes panics in invop_leave on i386 when using fbt return probes.

Ok'd by: rstone

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

12 years agoMFC r232777:
kib [Sat, 17 Mar 2012 01:37:40 +0000 (01:37 +0000)]
MFC r232777:
Optimize tls_get_addr_common().

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

12 years agoMFC r232973:
kib [Sat, 17 Mar 2012 01:27:09 +0000 (01:27 +0000)]
MFC r232973:
Fix indentation.

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

12 years agoMFC r232967:
kib [Sat, 17 Mar 2012 01:23:49 +0000 (01:23 +0000)]
MFC r232967:
Add PCI Id for the AMT SOL UART on G4x series Intel chipsets.

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

12 years agoMFC r232776:
kib [Sat, 17 Mar 2012 01:19:36 +0000 (01:19 +0000)]
MFC r232776:
Add brackets around bare '-1' used as the macro body.

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

12 years agoMFC r232990:
delphij [Sat, 17 Mar 2012 01:04:07 +0000 (01:04 +0000)]
MFC r232990:

Add the missing IPOIB option.

Sponsored by: iXsystems, Inc.

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

12 years agoMFC 226340,226340:
jhb [Fri, 16 Mar 2012 21:28:05 +0000 (21:28 +0000)]
MFC 226340,226340:
Use queue(3) macros instead of home-rolled versions in several places in
the INET6 code.  This includes retiring the 'ndpr_next' and 'pfr_next'
macros.

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

12 years agoMFC r232668:
emaste [Fri, 16 Mar 2012 13:44:40 +0000 (13:44 +0000)]
MFC r232668:

  Use bus_get_dma_tag() to inherit the PCI bus' 4G boundary constraint.

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

12 years agoMFC r232729:
kib [Fri, 16 Mar 2012 11:00:55 +0000 (11:00 +0000)]
MFC r232729:
Remove the use of toupper() from rtld_printf.c.

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

12 years agoMFC r232947:
kib [Fri, 16 Mar 2012 10:59:04 +0000 (10:59 +0000)]
MFC r232947:
Lock the process around manipulations with p_flag.

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

12 years agoMFC r232709:
kib [Fri, 16 Mar 2012 10:51:42 +0000 (10:51 +0000)]
MFC r232709:
Decomission mnt_noasync. Introduce MNTK_NOASYNC mnt_kern_flag which
allows a filesystem to request VFS to not allow MNTK_ASYNC.

MFC note: the mnt_noasync member of struct mount is left as
padding to preserve the structure layout.

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

12 years agoMFC 232854,232874,232882,232883,232886 for bus_get_dma_tag()
scottl [Fri, 16 Mar 2012 08:46:58 +0000 (08:46 +0000)]
MFC 232854,232874,232882,232883,232886 for bus_get_dma_tag()

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

12 years agoMFC r232518:
raj [Thu, 15 Mar 2012 22:15:06 +0000 (22:15 +0000)]
MFC r232518:

Respect phy-handle property in Ethernet nodes of the device tree.

This lets specify whereabouts of the parent PHY for a given MAC node
(and get rid of ugly kludges in mge(4) and tsec(4)).

Obtained from: Semihalf

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

12 years agoMFC r232512:
raj [Thu, 15 Mar 2012 22:08:25 +0000 (22:08 +0000)]
MFC r232512:

Remove unused #defines. All this is now retrieved from the device tree.

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

12 years agoMFC r232986
sbruno [Thu, 15 Mar 2012 16:26:40 +0000 (16:26 +0000)]
MFC r232986

Update man page to present -T argument in synopsis

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

12 years agoMFC r232071:
kib [Thu, 15 Mar 2012 11:06:37 +0000 (11:06 +0000)]
MFC r232071:
Account the writeable shared mappings backed by file in the vnode
v_writecount.

MFC r232103:
Place the if() at the right location.

MFC note: the added struct vm_object un_pager.vnp.writemappings member
is located after the fields of struct vm_object that could be accessed
from the modules.

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

12 years agoMFC r232100:
kevlo [Thu, 15 Mar 2012 02:46:12 +0000 (02:46 +0000)]
MFC r232100:
Remove an unused structure and unnecessary cast

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

12 years agoMFC r232099:
kevlo [Thu, 15 Mar 2012 02:37:14 +0000 (02:37 +0000)]
MFC r232099:
Check if the user has necessary permissions on the device

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

12 years agoMFC 232675
ken [Wed, 14 Mar 2012 22:27:28 +0000 (22:27 +0000)]
MFC 232675

  Make the mps(4) module depend on the cam module.

  Submitted by: Mykola Dzham <i@levsha.me>

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

12 years agoMFC: r232822
marius [Wed, 14 Mar 2012 10:02:35 +0000 (10:02 +0000)]
MFC: r232822

Fix a bug introduced in r223938; on big-endian machines coping a 32-bit
quantum bytewise to the address of a 64-bit variable results in writing
to the "wrong" 32-bit half so adjust the address accordingly. This fix
is implemented in a hackish way for two reasons:
o in order to be able to get it into 8.3 with zero impact on the little-
  endian architectures where this bug has no effect and
o to avoid blowing the x86 boot2 out of the water again when compiling
  it with clang, which all sane versions of this fix tested do.
This change fixes booting from UFS1 file systems on big-endian machines.

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

12 years agoMFC r232671: Add lib32 part for libutil after its version bump to 9.
pluknet [Wed, 14 Mar 2012 09:44:46 +0000 (09:44 +0000)]
MFC r232671: Add lib32 part for libutil after its version bump to 9.

PR: misc/165523
Submitted by: Andrey Zonov <andrey zonov org>

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

12 years agoMFC r232833:
kib [Wed, 14 Mar 2012 07:08:15 +0000 (07:08 +0000)]
MFC r232833:
Remove not needed ARGSUSED lint command.

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

12 years agoMFC r232660:
kib [Wed, 14 Mar 2012 06:56:55 +0000 (06:56 +0000)]
MFC r232660:
In batch mode, exit after receiving SIGINT, instead of immediate
output of the next display.

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

12 years agoMerge 231025 from head:
glebius [Tue, 13 Mar 2012 20:37:57 +0000 (20:37 +0000)]
Merge 231025 from head:
  Add new socket options: TCP_KEEPINIT, TCP_KEEPIDLE, TCP_KEEPINTVL and
  TCP_KEEPCNT, that allow to control initial timeout, idle time, idle
  re-send interval and idle send count on a per-socket basis.

  Reviewed by:  andre, bz, lstewart

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

12 years agoMFc r229288:
mav [Tue, 13 Mar 2012 20:36:03 +0000 (20:36 +0000)]
MFc r229288:
Remove unneeded checks for CAM_DEV_QFRZN after cam_periph_runccb() call.
cam_periph_runccb() since the beginning checks it and releases device queue.
After r203108 it even clears CAM_DEV_QFRZN flag after that to avoid double
release, so removed code is unreachable now.

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

12 years agoMFC r228846:
mav [Tue, 13 Mar 2012 20:33:15 +0000 (20:33 +0000)]
MFC r228846:
Use READ CAPACITY(16) to get information about device physical sectors.
As soon as not all devices support READ CAPACITY(16), automatically fall
back to READ CAPACITY(10) if CAM_REQ_INVALID or SSD_KEY_ILLEGAL_REQUEST
status returned.

It also provides first bits of information about Logical Block Provisioning
(aka UNMAP/TRIM) support by the device.

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

12 years agoMFC r232263:
dim [Tue, 13 Mar 2012 18:39:57 +0000 (18:39 +0000)]
MFC r232263:

Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang (disables -Wformat and friends)
- CLANG_NO_IAS (disables integrated assembler)
- CLANG_OPT_SMALL (adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp

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

12 years agoMFC r232515:
bz [Mon, 12 Mar 2012 22:08:03 +0000 (22:08 +0000)]
MFC r232515:

 Rather than printing the output from route add for all FIBs just print them
 for the default FIB followed by a statement with a list of FIB numbers for
 all the other FIBs we install the routes for.

 Request by: kib (to make it less noisy)
Tested by: kib

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

12 years agoMFC r232609:
bz [Mon, 12 Mar 2012 22:05:50 +0000 (22:05 +0000)]
MFC r232609:

 Use = rather than == for expressions to test(1) builtin(1) in sh(1) to
 comply with standards.

 On modern branches there is an undocumented alias (see r219084) but on
 stable/7 this is still an error.

 Sponsored by: Cisco Systems, Inc.

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

12 years agoMFC r232723,r232726:
tuexen [Mon, 12 Mar 2012 21:34:10 +0000 (21:34 +0000)]
MFC r232723,r232726:

Fix a bug reported by Peter Holm which results in a crash:
Verify in sctp_peeloff() that the socket is a one-to-many
style SCTP socket.

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

12 years agoMFC r228485 and r227843:
hselasky [Mon, 12 Mar 2012 18:38:40 +0000 (18:38 +0000)]
MFC r228485 and r227843:
Stop USB audio transfers early so that any audio applications
will time out and close opened /dev/dspX.Y device(s), if
any.

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

12 years agoMFC r232257:
hselasky [Mon, 12 Mar 2012 18:22:04 +0000 (18:22 +0000)]
MFC r232257:
Add support for the MCS7832.

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

12 years agoMFC r230238 and r232684:
hselasky [Mon, 12 Mar 2012 18:13:59 +0000 (18:13 +0000)]
MFC r230238 and r232684:
Add new USB device ID's.

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

12 years agoMFC r232448:
hselasky [Mon, 12 Mar 2012 17:54:17 +0000 (17:54 +0000)]
MFC r232448:
Make sure that the USB system suspend event is executed synchronously
and not asynchronously.

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

12 years agoMFC r232240:
kib [Mon, 12 Mar 2012 12:53:27 +0000 (12:53 +0000)]
MFC r232240:
Currently, the debugger attached to the process executing vfork() does
not get syscall exit notification until the child performed exec of
exit.  Swap the order of doing ptracestop() and waiting for P_PPWAIT
clearing, by postponing the wait into syscallret after ptracestop()
notification is done.

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

12 years agoMFC r232572:
kib [Mon, 12 Mar 2012 12:29:31 +0000 (12:29 +0000)]
MFC r232572:
Use hand-made isspace1() macro which is enough to detect spaces in
libmap.conf.

MFC r232590 (by pluknet):
Rename isspace1() macro to the more appropriate rtld_isspace().

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

12 years agoMerge r226862 from head:
gavin [Sun, 11 Mar 2012 19:23:37 +0000 (19:23 +0000)]
Merge r226862 from head:
   Remove example for linking /dev/vga to /dev/ttyv0, this hasn't been
   required since X version 4.3.0.

PR: conf/161847
Submitted by: eadler

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

12 years agoMFC r232180:
kib [Sun, 11 Mar 2012 00:51:16 +0000 (00:51 +0000)]
MFC r232180:
Document SO_PROTOCOL socket option.

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

12 years agoMFC r232179:
kib [Sun, 11 Mar 2012 00:48:54 +0000 (00:48 +0000)]
MFC r232179:
Add SO_PROTOCOL/SO_PROTOTYPE socket SOL_SOCKET-level option to get the
socket protocol number.

PR: kern/162352

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

12 years agoMFC r232178:
kib [Sun, 11 Mar 2012 00:43:01 +0000 (00:43 +0000)]
MFC r232178:
Remove apparently redundand checks for socket so_proto being non-NULL
from sosetopt() and sogetopt().

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

12 years agoMFC r232694:
kib [Sun, 11 Mar 2012 00:33:54 +0000 (00:33 +0000)]
MFC r232694:

Document P_ORPHAN.

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

12 years agoMFC r230130, r230181, r230312, r230326, r230331, r230451, r230465, r230488,
mav [Sat, 10 Mar 2012 21:58:08 +0000 (21:58 +0000)]
MFC r230130, r230181, r230312, r230326, r230331, r230451, r230465, r230488,
r230507, r230511, r230513, r230532, r230537, r230551, r230554, r230571,
r230574, r230585, r230641, r230768, r230807, r231024:
Sync snd_hda(4) driver with HEAD.

This includes major code refactoring, HDMI support, new volume control,
automatic recording source selection, runtime reconfigureation, support
for more then 4 PCM devices on controller, multichannel recording,
additional playback/record streams, higher bandwidths support, more
informative device names and many other things.

Sponsored by: iXsystems, Inc.

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

12 years agoMFC r232471:
eadler [Sat, 10 Mar 2012 18:36:12 +0000 (18:36 +0000)]
MFC r232471:
Document the [n]eei and [n]bacc options

PR: docs/165009
Approved by: bcr

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

12 years agoMerge r232250 from head:
gavin [Sat, 10 Mar 2012 17:47:43 +0000 (17:47 +0000)]
Merge r232250 from head:

  Correct capitalization of "Hz" in user-visible text (manpages, printf(),
  etc).

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

12 years agoMFC r232102: Exit with proper status when wake() fails.
jh [Sat, 10 Mar 2012 08:27:37 +0000 (08:27 +0000)]
MFC r232102: Exit with proper status when wake() fails.

PR: bin/153527

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

12 years agoMFC r232101: style(9).
jh [Sat, 10 Mar 2012 08:25:49 +0000 (08:25 +0000)]
MFC r232101: style(9).

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

12 years agoMFC r230984:
rstone [Sat, 10 Mar 2012 02:26:12 +0000 (02:26 +0000)]
MFC r230984:

 Whenever a new kernel thread is spawned, explicitly clear any CPU affinity
 set on the new thread.  This prevents the thread from inadvertently
 inheriting affinity from a random sibling.

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

12 years agoJail-mount MFC: r231265,r231267,r231269,r232059,r232186,r232247,
mm [Fri, 9 Mar 2012 16:17:46 +0000 (16:17 +0000)]
Jail-mount MFC: r231265,r231267,r231269,r232059,r232186,r232247,
r232278,r232307,r232342

MFC r231265:
Introduce the "ruleset=number" option for devfs(5) mounts.
Add support for updating the devfs mount (currently only changing the
ruleset number is supported).
Check mnt_optnew with vfs_filteropt(9).

This new option sets the specified ruleset number as the active ruleset
of the new devfs mount and applies all its rules at mount time. If the
specified ruleset doesn't exist, a new empty ruleset is created.

MFC r231267 [1]:
Add support for mounting devfs inside jails.

A new jail(8) option "devfs_ruleset" defines the ruleset enforcement for
mounting devfs inside jails. A value of -1 disables mounting devfs in
jails, a value of zero means no restrictions. Nested jails can only
have mounting devfs disabled or inherit parent's enforcement as jails are
not allowed to view or manipulate devfs(8) rules.

Utilizes new functions introduced in r231265.

MFC r231269:
Allow mounting nullfs(5) inside jails.

This is now possible thanks to r230129.

MFC r232059 [1]:
To improve control over the use of mount(8) inside a jail(8), introduce
a new jail parameter node with the following parameters:

allow.mount.devfs:
allow mounting the devfs filesystem inside a jail

allow.mount.nullfs:
allow mounting the nullfs filesystem inside a jail

Both parameters are disabled by default (equals the behavior before
devfs and nullfs in jails). Administrators have to explicitly allow
mounting devfs and nullfs for each jail. The value "-1" of the
devfs_ruleset parameter is removed in favor of the new allow setting.

MFC r232186:
Analogous to r232059, add a parameter for the ZFS file system:

allow.mount.zfs:
allow mounting the zfs filesystem inside a jail

This way the permssions for mounting all current VFCF_JAIL filesystems
inside a jail are controlled wia allow.mount.* jail parameters.

Update sysctl descriptions.
Update jail(8) and zfs(8) manpages.

MFC r232247:
mdoc(7) stype - start new sentences on new line

MFC r232278 [1]:
Add procfs to jail-mountable filesystems.

MFC r232291:
Bump .Dd to reflect latest update

MFC r232307:
Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it.
Fixes mountd warnings.

MFC r232342 (jamie) [2]:
Handle the case where a boolean parameter is also a node.

PR: bin/165515 [2]
Reviewed by: jamie [1]

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

12 years agoMFC r232350:
jh [Fri, 9 Mar 2012 13:06:24 +0000 (13:06 +0000)]
MFC r232350:

Since r199137 namei() returns EINVAL for DELETE and RENAME operations if
the last component of the pathname is ".".

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

12 years agoMFC r232380:
mav [Fri, 9 Mar 2012 05:43:08 +0000 (05:43 +0000)]
MFC r232380:
Fix names of some Marvell SATA chips. It looks like chips with proprietary
interface supported by mvs(4) are 88SX, while AHCI-like chips are 88SE.

PR: kern/165271

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

12 years agoMFC r232376:
mav [Fri, 9 Mar 2012 05:37:55 +0000 (05:37 +0000)]
MFC r232376:
Add ahci(4) and siis(4) to the hardware notes.

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

12 years agoMFC r232048:
kib [Thu, 8 Mar 2012 12:54:26 +0000 (12:54 +0000)]
MFC r232048:
Allow the parent to gather the exit status of the children reparented
to the debugger.  When reparenting for debugging, keep the child in
the new orphan list of old parent.  When looping over the children in
kern_wait(), iterate over both children list and orphan list to search
for the process by pid.

MFC r232104:
Restore the return statement erronously removed in the r232048.

In order to keep stable/9 KBI, the p_dbg_child member of struct proc
was replaced with padding.

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

12 years agoMFC: r232312
brueffer [Thu, 8 Mar 2012 10:40:14 +0000 (10:40 +0000)]
MFC: r232312

Fix order of arguments to lseek().

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

12 years agoMFC r232339:
ae [Thu, 8 Mar 2012 09:55:18 +0000 (09:55 +0000)]
MFC r232339:
  Note that memory should be freed after uuid_to_string(3) call.

PR: docs/161808

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

12 years agoMFC: r2323467
rmacklem [Thu, 8 Mar 2012 03:02:48 +0000 (03:02 +0000)]
MFC: r2323467
The name caching changes of r230394 exposed an intermittent bug
in the new NFS server for NFSv4, where it would report ENOENT
when the file actually existed on the server. This turned out
to be caused by not initializing ni_topdir before calling lookup()
and there was a rare case where the value on the stack location
assigned to ni_topdir happened to be a pointer to a ".." entry,
such that "dp == ndp->ni_topdir" succeeded in lookup().
This patch initializes ni_topdir to fix the problem.

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

12 years agoMFC: r232327
rmacklem [Thu, 8 Mar 2012 02:27:29 +0000 (02:27 +0000)]
MFC: r232327
Fix the NFS clients so that they use copyin() instead of bcopy(),
when doing direct I/O. This direct I/O code is not enabled by default.

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

12 years agoMFC r232177:
jhibbits [Thu, 8 Mar 2012 01:10:23 +0000 (01:10 +0000)]
MFC r232177:

Add backlight control to ATI-graphics PowerBooks and iBooks.

Approved by: nwhitehorn (mentor)

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

12 years agoMFC r232305:
kib [Wed, 7 Mar 2012 08:10:55 +0000 (08:10 +0000)]
MFC r232305:
Allow shared locks for reads when lower filesystem accept shared locking.

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

12 years agoMFC r232304:
kib [Wed, 7 Mar 2012 08:08:36 +0000 (08:08 +0000)]
MFC r232304:
Document that null_nodeget() cannot take shared-locked lowervp due to
insmntque() requirements.

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

12 years agoMFC r232303:
kib [Wed, 7 Mar 2012 08:05:12 +0000 (08:05 +0000)]
MFC r232303:
In null_reclaim(), assert that reclaimed vnode is fully constructed,
instead of accepting half-constructed vnode. Previous code cannot decide
what to do with such vnode anyway, and although processing it for hash
removal, paniced later when getting rid of nullfs reference on lowervp.

While there, remove initializations from the declaration block.

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

12 years agoMFC r232301:
kib [Wed, 7 Mar 2012 08:02:43 +0000 (08:02 +0000)]
MFC r232301:
Always request exclusive lock for the lower vnode in nullfs_vget().
The null_nodeget() requires exclusive lock on lowervp to be able to
insmntque() new vnode.

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

12 years agoMFC r232299:
kib [Wed, 7 Mar 2012 07:59:30 +0000 (07:59 +0000)]
MFC r232299:
Move the code to destroy half-contructed nullfs vnode into helper
function null_destroy_proto() from null_insmntque_dtr(). Also
apply null_destroy_proto() in null_nodeget() when we raced and a vnode
is found in the hash, so the currently allocated protonode shall be
destroyed.

Lock the vnode interlock around reassigning the v_vnlock.

MFC r232383:
Do not expose unlocked unconstructed nullfs vnode on mount list.
Lock the native nullfs vnode lock before switching the locks.

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

12 years agoMFC r232296:
kib [Wed, 7 Mar 2012 07:55:35 +0000 (07:55 +0000)]
MFC r232296:
Merge a split multi-line comment.

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

12 years agoMFC r231990
mp [Wed, 7 Mar 2012 01:26:24 +0000 (01:26 +0000)]
MFC r231990

Update to tcsh 6.18.01

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

12 years agoMFC: r231387
nyan [Tue, 6 Mar 2012 12:54:13 +0000 (12:54 +0000)]
MFC: r231387

  Reduce diffs against i386.

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

12 years agoMFC r230333
remko [Tue, 6 Mar 2012 10:26:10 +0000 (10:26 +0000)]
MFC r230333

Add new Logitech device to if_run(4).

Original commit message:
  Add support for new USB device.

  PR: usb/164275
  MFC after: 3 days

PR: usb/164275

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

12 years agoMFC r231858:
bz [Mon, 5 Mar 2012 19:13:18 +0000 (19:13 +0000)]
MFC r231858:

 Add regression tests scripts for multi-IP FIBs exercising the send,
 receive and forward path tagging packets with both the ifconfig fib
 option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and
 testing both setfib(2) as well as the SO_SETFIB socket option.

 At 16 FIBs a total of over 64k return codes/replies/stati are checked,
 sometimes multiple times (in different ways, e.g. the reflected request
 as well as ipfw counter values).

 The scripts need two or three machines to run and are thus not added
 to the tools/regression framework but only to tools/test.

MFC r232114:

 Update scripts to work around two sh(1) bugs found in stable/8:
 1) _x=$((_x + 1)) does not work while x=$((x + 1)) does.
 2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted.

 Correct typos and improve some details forwarding.sh already
 had in initiator, esp. related to ipfw accepting if the default
 is deny.

 Add an extra stat call to the "delay" function in addition to the
 touch which together is still a lot faster than sleep 1 but seems
 to help a lot more to mitigate the unrelated kernel race seen.

Sponsored by: Cisco Systems, Inc.

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

12 years agoMFC r231855:
bz [Mon, 5 Mar 2012 19:10:55 +0000 (19:10 +0000)]
MFC r231855:

 Add regression tests for the setsockopt(2) SO_SETFIB socket option.

 Check that the expected domain(9) families all handle the socket option
 correctly and do proper bounds checks.  This would catch bugs as fixed
 in (r230938,)r230981.

Sponsored by: Cisco Systems, Inc.

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

12 years agoMFC 232411:
ken [Mon, 5 Mar 2012 18:54:28 +0000 (18:54 +0000)]
MFC 232411:

  Fix a problem that was causing the mpt(4) driver to attach to MegaRAID
  cards that should be handled by the mfi(4) driver.

  The root of the problem is that the mpt(4) driver was masking off the
  bottom bit of the PCI device ID when deciding which cards to attach to.

  It appears that a number of the mpt(4) Fibre Channel cards had a LAN
  variant whose PCI device ID was just one bit off from the FC card's device
  ID.  The FC cards were even and the LAN cards were odd.

  The problem was that this pattern wasn't carried over on the SAS and
  parallel SCSI mpt(4) cards.  Luckily the SAS and parallel SCSI PCI device
  IDs were either even numbers, or they would get masked to a supported
  adjacent PCI device ID, and everything worked well.

  Now LSI is using some of the odd-numbered PCI device IDs between the 3Gb
  SAS device IDs for their new MegaRAID cards.  This is causing the mpt(4)
  driver to attach to the RAID cards instead of the mfi(4) driver.

  The solution is to stop masking off the bottom bit of the device ID, and
  explicitly list the PCI device IDs of all supported cards.

  This change should be a no-op for mpt(4) hardware.  The only intended
  functional change is that for the 929X, the is_fc variable gets set.  It
  wasn't being set previously, but needs to be because the 929X is a Fibre
  Channel card.

  Reported by: Kashyap Desai <Kashyap.Desai@lsi.com>

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

12 years agoMFC r232239:
kib [Mon, 5 Mar 2012 11:45:19 +0000 (11:45 +0000)]
MFC r232239:
Fix a race in top non-interactive mode.  Use plain sleep(3) call instead
of arming timer and then pausing.  If SIGALRM is delivered before pause(3)
is entered, top hangs.

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

12 years agoMFC r232392:
kib [Mon, 5 Mar 2012 11:43:27 +0000 (11:43 +0000)]
MFC r232392:
Belatedly add dl_iterate_phdr(3) to the list of installed manpages.

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

12 years agoMFC r232202:
delphij [Mon, 5 Mar 2012 05:18:58 +0000 (05:18 +0000)]
MFC r232202:

Drop setuid status while doing file operations to prevent potential
information leak.  This changeset is intended to be a minimal one
to make backports easier.

Reviewed by: kevlo, remko

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

12 years agoMFC r231929:
ae [Mon, 5 Mar 2012 04:53:49 +0000 (04:53 +0000)]
MFC r231929:
  If nested scheme allows dump kernel to its partition, we may allow
  dump for the parent partition too.

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

12 years agoMFC r231754:
ae [Mon, 5 Mar 2012 04:51:22 +0000 (04:51 +0000)]
MFC r231754:
  Add additional check to EBR probe and create methods:
  don't try probe and create  EBR scheme when parent partition type
  is not "ebr". This fixes error messages about corrupted EBR for
  some partitions where is actually another partition scheme.

  NOTE: if you have EBR on the partition with different than "ebr"
  (0x05) type, then you will lost access to partitions until it will be
  changed.

MFC r231928:
  Add alias for the partition type 0x0f. Now "ebr" name is used for both
  types 0x05 and 0x0f, but 0x05 is preferred and used when partition is
  created with "gpart add -t ebr ...".
  This should keep EBR partitions accessible after r231754 for those,
  who have EBR on the partition with type 0x0f.

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

12 years agoMFC r231751:
ae [Mon, 5 Mar 2012 04:46:28 +0000 (04:46 +0000)]
MFC r231751:
  Add PART::type attribute handler. It returns partition type as string.

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

12 years agoMFC r230865:
raj [Sun, 4 Mar 2012 17:53:40 +0000 (17:53 +0000)]
MFC r230865:

 Adjust mvs(4) to handle interrupt cause reg depending on the actual number of
 channels available

 - current code treats bits 4:7 in 'SATAHC interrupt mask' and 'SATAHC
   interrupt cause' as flags for SATA channels 2 and 3

 - for embedded SATA controllers (SoC) these bits have been marked as reserved
   in datasheets so far, but for some new and upcoming chips they are used for
   purposes other than SATA

 Submitted by: Lukasz Plachno
 Reviewed by: mav
 Obtained from: Semihalf

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

12 years agoMFC r228504, r228530.
raj [Sun, 4 Mar 2012 17:00:46 +0000 (17:00 +0000)]
MFC r228504, r228530.

r228504:
 Make *intr{cnt,names} on ARM reside in data section, similar to other arches.

 sintrnames and sintrcnt are initialized with non-zero values, which were
 discarded by the .bss directive, so consumers like "vmstat -i" were not
 getting correct data.

 Submitted by: Lukasz Plachno
 Obtained from: Semihalf

r228530:
 ARM pmap fixes:

 - Write Buffers have to be drained after write to Page Table even if caches
   are in write-through mode.

 - Make sure to sync PTE in pmap_zero_page_generic().

 Submitted by: Michal Mazur
 Reviewed by: cognet
 Obtained from: Semihalf

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