]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
14 years agoMFC r198678:
nwhitehorn [Tue, 8 Dec 2009 05:32:44 +0000 (05:32 +0000)]
MFC r198678:

ake procstat -k work on PowerPC by avoiding mistakenly using signed
compares with a low address (0x1000) and a high address
(the KVA kernel stack).

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

14 years agoMFC r198445:
nwhitehorn [Tue, 8 Dec 2009 05:27:06 +0000 (05:27 +0000)]
MFC r198445:

Turn on NAP mode on G5 systems, and refactor the HID0 setup code a little.
This makes my G5 Xserve sound slightly less like it is filled with
howling banshees.

MFC r198968:

Unbreak E500 builds. The inline assembly for the 970 CPUs
is invalid when compiling for BookE.

MFC r199533:

Fix cpuid output on E500 core.

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

14 years agoMFC r198444:
nwhitehorn [Tue, 8 Dec 2009 05:23:07 +0000 (05:23 +0000)]
MFC r198444:

Allow Heathrow-based machines to boot a kernel containing option SMP
without panicing.

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

14 years agoMFC r200070:
nwhitehorn [Tue, 8 Dec 2009 05:18:59 +0000 (05:18 +0000)]
MFC r200070:

Add manpages for ams(4), akbd(4), adb(4), and cuda(4), which describe
various drivers for Apple Desktop Bus controllers and peripherals.

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

14 years agoMFC 200060:
fabient [Mon, 7 Dec 2009 20:49:49 +0000 (20:49 +0000)]
MFC 200060:
Use a better check for a valid kernel stack address when capturing
kernel call chains.

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

14 years agoMFC 198433:
fabient [Mon, 7 Dec 2009 20:44:43 +0000 (20:44 +0000)]
MFC 198433:
Not all Intel Core (TM) CPUs implement PMC_CLASS_IAF fixed-function
counters.  For such CPUs, use an alternate mapping of convenience
names to events supported by PMC_CLASS_IAP programmable counters.

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

14 years agoMFC 198432:
fabient [Mon, 7 Dec 2009 20:40:48 +0000 (20:40 +0000)]
MFC 198432:
Only claim that the PMC_CLASS_IAF PMCs are supported by a CPU if
there are PMCs on the CPU that belong to the class.

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

14 years agoMFC revision 197579 and 199617:
delphij [Mon, 7 Dec 2009 19:59:28 +0000 (19:59 +0000)]
MFC revision 197579 and 199617:

Add two new fcntls to enable/disable read-ahead:

 - F_READAHEAD: specify the amount for sequential access.  The amount is
   specified in bytes and is rounded up to nearest block size.
 - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
   access size.

A third argument of zero disables the read-ahead behavior.

Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.

Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.

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

14 years agoMFC 200061:
jhb [Mon, 7 Dec 2009 19:07:45 +0000 (19:07 +0000)]
MFC 200061:
The fd_mask type is an unsigned long, not an int, so treat the mask as a
long instead of an int when examining the results of select() to look for
RPC requests.  Previously this routine would ignore RPC requests to sockets
whose file descriptor mod 64 was greater than 31 on a 64-bit platform.

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

14 years agoMFC 199974:
jhb [Mon, 7 Dec 2009 17:18:52 +0000 (17:18 +0000)]
MFC 199974:
Remove extra parantheses from usb_ethernet.c and usb_serial.c lines.
config(8) doesn't parse parantheses and instead treated them as being
part of the device driver name (e.g. '(u3g' vs 'u3g').  While here, fix the
style of these long lines to match the wrapping used for other long lines
in this file.

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

14 years agoMFC 199714
rnoland [Mon, 7 Dec 2009 16:37:02 +0000 (16:37 +0000)]
MFC 199714

Create a seperate ZFS enabled loader.

This adds zfsloader which will be called by zfsboot/gptzfsboot code rather
than the tradional loader.  This eliminates the need to set the
LOADER_ZFS_SUPPORT variable in order to get a ZFS enabled loader.

Note however, that you must reinstall your bootcode (zfsboot/gptzfsboot)
in order for the boot process to use the new loader.

New installations will no longer be required to build a ZFS enabled
loader for a working ZFS boot system.  Installing zfsboot/gptzfsboot is
sufficient for acknowledging the use of CDDL code and therefore the ZFS
enabled loader.

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

14 years agoMFC: r200019
brueffer [Mon, 7 Dec 2009 08:38:44 +0000 (08:38 +0000)]
MFC: r200019

Fix the dprintf() prototype.

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

14 years agoMFC: r197900
brueffer [Mon, 7 Dec 2009 08:36:49 +0000 (08:36 +0000)]
MFC: r197900

Improved one-line description of this module (taken from NOTES).

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

14 years agoMFC:
hrs [Mon, 7 Dec 2009 07:41:29 +0000 (07:41 +0000)]
MFC:

r197139
- Add afexists() to check if the specified address family exists
  on the system or not.

r197697
- Add AF_IPX and AF_NATM to afexists().

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

14 years agoMFC 197288,197326,197327,197328,197342,197914,197929,
tuexen [Mon, 7 Dec 2009 07:33:51 +0000 (07:33 +0000)]
MFC 197288,197326,197327,197328,197342,197914,197929,
    197955,199365,199370,199371,199373,199866
This MFCs all SCTP/VNET relevant fixes from head.

Approved by: rrs (mentor)

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

14 years agoMFC:
hrs [Mon, 7 Dec 2009 06:25:19 +0000 (06:25 +0000)]
MFC:

r197144:
- Add an extension of set_rcvar(), a new function set_rcvar_obsolete(),
  and $desc.

  The set_rcvar_obsolete() is to mark a variable as obsolete and define
  the new one.  More specifically, a warning is displayed when
  a variable is removed or changed in the source tree and the user
  still defines the old one.

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

14 years agoMFC:
hrs [Mon, 7 Dec 2009 06:05:36 +0000 (06:05 +0000)]
MFC:

r197138:
- The ifconfig(8) command now supports NDP flags which are handled by ndp(8).

r198006:
- Use printb() to display the "nd6 options=" line.

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

14 years agoMFC r198406: wordexp(3): fix some bugs with signals and long outputs
jilles [Sun, 6 Dec 2009 22:14:58 +0000 (22:14 +0000)]
MFC r198406: wordexp(3): fix some bugs with signals and long outputs

* retry various system calls on EINTR
* retry the rest after a short read (common if there is more than about 1K
  of output)
* block SIGCHLD like system(3) does (note that this does not and cannot
  work fully in threaded programs, they will need to be careful with wait
  functions)

PR: 90580

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

14 years agoMFC r198963: sh: Fix memory leak when using a variable in arithmetic
jilles [Sun, 6 Dec 2009 22:01:45 +0000 (22:01 +0000)]
MFC r198963: sh: Fix memory leak when using a variable in arithmetic
like $((x)).

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

14 years agoMFC of r199642
edwin [Sun, 6 Dec 2009 21:07:47 +0000 (21:07 +0000)]
MFC of r199642

The output of perror(1) is now showing local messages for locales
supported by libc/nls

PR:             bin/140499
Approved by:    gnn@

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

14 years agomfc r200056
luigi [Sun, 6 Dec 2009 19:01:33 +0000 (19:01 +0000)]
mfc r200056
  use qsort_r instead of heapsort;
  staticize two functions.

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

14 years agoMFC r198467:
bz [Sun, 6 Dec 2009 09:36:11 +0000 (09:36 +0000)]
MFC r198467:

  Unconditionally call the setsockopt for IPV6_V6ONLY for v6 linux sockets
  no matter whether we are compiled as module or if our default of the
  net.inet6.ip6.v6only sysctl already matches what we would set.

  This avoids unnecessary complications with modules, VIMAGES, INET6 and
  the sysctl value, especially considering that most users will use
  linux compat as a module.

  Discussed with:       kib, rwatson (weeks ago)
  Reviewed by:  rwatson

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

14 years agoMFC r199237:
np [Sun, 6 Dec 2009 01:59:06 +0000 (01:59 +0000)]
MFC r199237:

sc->rev and is_offload(sc) will always be 0 during probe.  Wait till
attach to get correct values.

(missed this one in r200175)

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

14 years agoMFC r199237, r199238, r199239, r199240, r200003
np [Sun, 6 Dec 2009 01:45:55 +0000 (01:45 +0000)]
MFC r199237, r199238, r199239, r199240, r200003

r199237:
sc->rev and is_offload(sc) will always be 0 during probe.  Wait till
attach to get correct values.

r199238:
Make sure *some* edc is setup even for an unknown transceiver (assume
it is optical).

r199239:
The 10GBASE-T card should use an IPG of 1.  Also enable the check
for low power startup on this card.

r199240:
Don't disable the XGMAC's tx on ifconfig down.  It is unnecessary
and can cause false backpressure in the chip.  Fix a us/ms mixup
while here.

r200003:
T3 firmware 7.8.0 for cxgb(4)

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

14 years agoMFC r197729:
bz [Sat, 5 Dec 2009 20:43:15 +0000 (20:43 +0000)]
MFC r197729:

  Make sure that the primary native brandinfo always gets added
  first and the native ia32 compat as middle (before other things).
  o(ld)brandinfo as well as third party like linux, kfreebsd, etc.
  stays on SI_ORDER_ANY coming last.

  The reason for this is only to make sure that even in case we would
  overflow the MAX_BRANDS sized array, the native FreeBSD brandinfo
  would still be there and the system would be operational.

Reviewed by: kib

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

14 years agoMFC r197726:
bz [Sat, 5 Dec 2009 20:40:28 +0000 (20:40 +0000)]
MFC r197726:

  Print a warning in case we cannot add more brandinfo because
  we would overflow the MAX_BRANDS sized array.

Reviewed by: kib

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

14 years agoMFC r197518:
bz [Sat, 5 Dec 2009 20:37:46 +0000 (20:37 +0000)]
MFC r197518:

  lindev(4) [1] is supposed to be a collection of linux-specific pseudo
  devices that we also support, just not by default (thus only LINT or
  module builds by default).

  While currently there is only "/dev/full" [2], we are planning to see more
  in the future.  We may decide to change the module/dependency logic in the
  future should the list grow too long.

  This is not part of linux.ko as also non-linux binaries like kFreeBSD
  userland or ports can make use of this as well.

Suggested by: rwatson [1] (name)
Submitted by: ed [2]
Discussed with: markm, ed, rwatson, kib (weeks ago)
Reviewed by: rwatson, brueffer (prev. version)
PR: kern/68961

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

14 years agoMFC r198050:
bz [Sat, 5 Dec 2009 19:44:16 +0000 (19:44 +0000)]
MFC r198050:

  Compare pointer to NULL rather than 0.

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

14 years agoMFC r198076:
bz [Sat, 5 Dec 2009 19:42:42 +0000 (19:42 +0000)]
MFC r198076:

  Explicitly compare to a return code.

  Discussed with: philip (after we both misread the logic there the 1st time)

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

14 years agoMFC r199947, 199950:
bz [Sat, 5 Dec 2009 19:25:29 +0000 (19:25 +0000)]
MFC r199947, 199950:
  Enable IPcomp by default.

PR: kern/123587

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

14 years agoMFC r199946:
bz [Sat, 5 Dec 2009 19:21:58 +0000 (19:21 +0000)]
MFC r199946:

  Add more statistics variables for IPcomp.

  Try to version the struct in a backward compatible way.
  People asked for the versioning of the stats structs in general before.

Note: old netstat binaries, as only consumer, continue to work as they are
      still using kvm but will not display the new stats. [1]

Discussed with: rwatson [1]

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

14 years agoMFC r199906:
bz [Sat, 5 Dec 2009 19:12:35 +0000 (19:12 +0000)]
MFC r199906:

  In case the compression result is the same size as the orignal version,
  the compression was useless as well.  Make sure to not update the data
  and return, else we would waste resources when decompressing.

  This also avoids the copyback() changing data other consumers like
  xform_ipcomp.c would have ignored because of no win and sent out without
  noting that compression was used, resulting in invalid packets at the
  receiver.

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

14 years agoMFC r199905:
bz [Sat, 5 Dec 2009 19:11:02 +0000 (19:11 +0000)]
MFC r199905:
  Assimilate very similar input and output code paths
  (no real functional change).

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

14 years agoMFC r199904:
bz [Sat, 5 Dec 2009 19:09:26 +0000 (19:09 +0000)]
MFC r199904:

  Add SDT iter probes forgotten in r199885 (r200138 for stable/8).

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

14 years agoMFC r199899:
bz [Sat, 5 Dec 2009 19:07:28 +0000 (19:07 +0000)]
MFC r199899:
  Only add the IPcomp header if crypto reported success and we have a lower
  payload size.  Before we had always added the header, no matter if we
  actually send out compressed data or not.

  With this, after the opencrypto/deflate changes, IPcomp starts to work
  apart from edge cases.  Leave it disabled by default until those are
  fixed as well.

PR: kern/123587

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

14 years agoMFC r199897:
bz [Sat, 5 Dec 2009 19:06:03 +0000 (19:06 +0000)]
MFC r199897:
  Remove whitespace.

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

14 years agoMFC r199896:
bz [Sat, 5 Dec 2009 19:03:20 +0000 (19:03 +0000)]
MFC r199896:
  Directly send data uncompressed if the packet payload size is lower than
  the compression algorithm threshold.

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

14 years agoMFC r199895:
bz [Sat, 5 Dec 2009 19:01:50 +0000 (19:01 +0000)]
MFC r199895:
  Change memory managment from a fixed size array to a list.
  This is needed to avoid running into out of buffer situations
  where we cannot alloc a new buffer because we hit the array size
  limit (ZBUF).
  Use a combined allocation for the struct and the actual data buffer
  to not increase the number of malloc calls. [1]

  Defer initialization of zbuf until we actually need it.

  Make sure the output buffer will be large enough in all cases.

  Details discussed with: kib [1]
  Reviewed by:            kib [1]

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

14 years agoMFC r199887:
bz [Sat, 5 Dec 2009 18:59:58 +0000 (18:59 +0000)]
MFC r199887:
  Z_PARTIAL_FLUSH is marked deprecated. Z_SYNC_FLUSH is the suggested
  replacement but only use it for inflate. For deflate use Z_FINISH
  as Z_SYNC_FLUSH adds a trailing marker in some cases that inflate(),
  despite the comment in zlib, does npt seem to cope well with, resulting
  in errors when uncompressing exactly fills the outbut buffer without
  a Z_STREAM_END and a successive call returns an error.

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

14 years agoMFC r199885:
bz [Sat, 5 Dec 2009 18:57:32 +0000 (18:57 +0000)]
MFC r199885:
  Add SDT probes for opencrypto:deflate:deflate_gobal:*.
  They are not nice but they were helpful.

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

14 years agoMFC r199884:
bz [Sat, 5 Dec 2009 18:55:54 +0000 (18:55 +0000)]
MFC r199884:

  Define an SDT provider for "opencrypto".

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

14 years agoMFC r199883:
bz [Sat, 5 Dec 2009 18:54:21 +0000 (18:54 +0000)]
MFC r199883:
  Add SDT_PROBE[1-5] in the same way we have SDT_PROBE_DEFINE[1-5] to
  avoid having to add all the unused trailing arguments as zeros.

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

14 years agoMFC r199894:
bz [Sat, 5 Dec 2009 18:17:15 +0000 (18:17 +0000)]
MFC r199894:

  Correct a typo.

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

14 years agoMFC r200001:
emaste [Sat, 5 Dec 2009 17:07:43 +0000 (17:07 +0000)]
MFC r200001:

  Fix parenthesis typo -- copy full frame pointer for userland callchain,
  not just one byte.

Submitted by:        Ryan Stone      rysto32 at gmail dot com

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

14 years agosome simple MFC:
luigi [Sat, 5 Dec 2009 12:51:51 +0000 (12:51 +0000)]
some simple MFC:

r200020:
  change the type of the opcode from enum *:8  to u_int8_t
  so the size and alignment of the ipfw_insn is not compiler dependent.
  No changes in the code generated by gcc.

r200023:
  Add new sockopt names for ipfw and dummynet.

  This commit is just grabbing entries for the new names
  that will be used in the future, so you don't need to
  rebuild anything now.

r200034
  Dispatch sockopt calls to ipfw and dummynet
  using the new option numbers, IP_FW3 and IP_DUMMYNET3.
  Right now the modules return an error if called with those arguments
  so there is no danger of unwanted behaviour.

r200040
  - initialize src_ip in the main loop to prevent a compiler warning
    (gcc 4.x under linux, not sure how real is the complaint).
  - rename a macro argument to prevent name clashes.
  -  add the macro name on a couple of #endif
  - add a blank line for readability.

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

14 years agoMFC r200008:
mav [Sat, 5 Dec 2009 08:44:55 +0000 (08:44 +0000)]
MFC r200008:
Add CAM_ATAIO_DMA ATA command flag to mark DMA protocol commands.
It is not needed for SATA controllers, but required for PATA.

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

14 years agoRevert unintentional change in revision 200103.
marcel [Fri, 4 Dec 2009 18:35:02 +0000 (18:35 +0000)]
Revert unintentional change in revision 200103.

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

14 years agoMFC rev 200051:
marcel [Fri, 4 Dec 2009 18:29:59 +0000 (18:29 +0000)]
MFC rev 200051:
Make sure bus space accesses use unorder memory loads and stores.

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

14 years agoMFC r199843:
jh [Fri, 4 Dec 2009 11:26:52 +0000 (11:26 +0000)]
MFC r199843:

Clarify that the value of the fts_info field is different in post-order.

Approved by: trasz (mentor)

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

14 years agoMFC r199529:
jh [Fri, 4 Dec 2009 11:23:37 +0000 (11:23 +0000)]
MFC r199529:

Extend ddb(4) "show mount" command to print active string mount options.
Note that only option names are printed, not values.

Approved by: trasz (mentor)

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

14 years agoMFC: r199988
brueffer [Fri, 4 Dec 2009 07:08:15 +0000 (07:08 +0000)]
MFC: r199988

Add an .Nm for strncat.

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

14 years agoMFC r199565:
yongari [Thu, 3 Dec 2009 18:48:32 +0000 (18:48 +0000)]
MFC r199565:
  Move interface reinitialization down after disabling WOL in resume
  path.

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

14 years agoMFC r199564:
yongari [Thu, 3 Dec 2009 18:42:19 +0000 (18:42 +0000)]
MFC r199564:
  Minimize interface reinitialization by checking IFF_DRV_RUNNING
  flag. This fixes unnecessary interface UP/DOWNs during getting an
  IP address via DHCP.

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

14 years agoDisable SSL renegotiation in order to protect against a serious
cperciva [Thu, 3 Dec 2009 09:18:40 +0000 (09:18 +0000)]
Disable SSL renegotiation in order to protect against a serious
protocol flaw. [09:15]

Correctly handle failures from unsetenv resulting from a corrupt
environment in rtld-elf. [09:16]

Fix permissions in freebsd-update in order to prevent leakage of
sensitive files. [09:17]

Approved by: so (cperciva)
Security: FreeBSD-SA-09:15.ssl
Security: FreeBSD-SA-09:16.rtld
Security: FreeBSD-SA-09:17.freebsd-udpate

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

14 years agoMFC r199066 + 199339:
delphij [Wed, 2 Dec 2009 21:58:00 +0000 (21:58 +0000)]
MFC r199066 + 199339:

Apply a NetBSD fix (revision 1.12) to handle multi-session bzip2 files
as created by pbzip2.

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

14 years agoMFC 199815:
fanf [Wed, 2 Dec 2009 19:28:55 +0000 (19:28 +0000)]
MFC 199815:

Fix performance bugs in factor(6).

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

14 years agoMFC 199813, 199817, 199842, 199867:
fanf [Wed, 2 Dec 2009 15:30:53 +0000 (15:30 +0000)]
MFC 199813, 199817, 199842, 199867:

Update unifdef to latest upstream version.

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

14 years agoMFC r199644:
mav [Wed, 2 Dec 2009 12:26:26 +0000 (12:26 +0000)]
MFC r199644:

Add some missing WDMA/UDMA modes.

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

14 years agoMFC r199822:
mav [Wed, 2 Dec 2009 10:47:11 +0000 (10:47 +0000)]
MFC r199822:
Drop USB mass storage devices support from ata(4). It is out of the build as
long as I remember, and completely superseded by better maintained umass(4).
It's main idea was to optionally avoid CAM dependency for such devices, but
with move ATA to CAM, it is not actual any more.

No objections:  hselasky@, thompsa@, arch@

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

14 years agoMFC r199747, r199799, r199821:
mav [Wed, 2 Dec 2009 10:32:34 +0000 (10:32 +0000)]
MFC r199747, r199799, r199821:
- Extend XPT-SIM transfer settings control API. Now it allows to report to
SATA SIM number of tags supported by each device, implement ATA mode and
SATA revision negotiation for both SATA and PATA SIMs.
- Make ahci(4) and siis(4) to use submitted maximum tag number, when
scheduling requests. It allows to support NCQ on devices with lower tags
count then controller supports.
- Make PMP driver to report attached devices connection speeds.
- Implement ATA mode negotiation between user settings, device and
controller capabilities.
- Improve ATA mode/SATA revision control.

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

14 years agoMFC r199279, r199280, r199281:
mav [Wed, 2 Dec 2009 10:10:37 +0000 (10:10 +0000)]
MFC r199279, r199280, r199281:
- Fix several device freeze counting bugs.
- Remove code that years ago was closing race between request submission
to SIM and device/SIM freeze. That race become impossible after moving from
spl to mutex locking, while this workaround causes some unexpected effects.

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

14 years agoMFC revs 199781,199782,199784,199785,199786:
wollman [Wed, 2 Dec 2009 02:47:29 +0000 (02:47 +0000)]
MFC revs 199781,199782,199784,199785,199786:

  Eliminate dead stores.

  In __mbsconv(), if prec was zero, nconv could have been used
  uninitialized.  Initialize it to a safe value so that there's no
  chance of returning an error if stack garbage happens to be equal to
  (size_t)-1 or (size_t)-2.

  In svc_raw_reply(), don't leave stat uninitialized if the MSG_ACCEPTED
  && SUCCESS case succeeds.  The stack garbage might be zero.

  In clnt_raw_create(), avoid minor race condition initializing the
  file-scope variable clntraw_private.

Found by: Clang static analyzer

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

14 years agoMFC 198339:
fabient [Tue, 1 Dec 2009 23:23:52 +0000 (23:23 +0000)]
MFC 198339:
Fix the NO_PROXY handling.

PR: 139751

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

14 years agoMFC 199763:
fabient [Tue, 1 Dec 2009 23:06:17 +0000 (23:06 +0000)]
MFC 199763:
 - fix a LOR between process lock and pmc thread mutex
 - fix a system deadlock on process exit when the sample buffer
 is full (pmclog_loop blocked in fo_write) and pmcstat exit.

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

14 years agoMFC 198343:
fabient [Tue, 1 Dec 2009 22:59:37 +0000 (22:59 +0000)]
MFC 198343:
Handle the case where there is only one PMC in the system.

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

14 years agoMFC 199579:
jhb [Tue, 1 Dec 2009 22:38:17 +0000 (22:38 +0000)]
MFC 199579:
Always use 64-bit LBAs for disk addresses in zfsboot and gptzfsboot to
fully support booting from large volumes.

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

14 years agoMFC r199626:
netchild [Tue, 1 Dec 2009 12:35:51 +0000 (12:35 +0000)]
MFC r199626:
  Fix minor resource leak in a function.

  Reviewed by:        luigi

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

14 years agoMFC r199016: acpi: remove 'magic' ivar
avg [Tue, 1 Dec 2009 06:11:42 +0000 (06:11 +0000)]
MFC r199016: acpi: remove 'magic' ivar

Note that the ivar itself is kept in the stable branches, only its use is
dropped.

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

14 years agoMFC r199979: Fix local root vulnerability.
cperciva [Tue, 1 Dec 2009 02:59:22 +0000 (02:59 +0000)]
MFC r199979: Fix local root vulnerability.

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

14 years agoMFC: r199739, r199825
brueffer [Mon, 30 Nov 2009 07:54:22 +0000 (07:54 +0000)]
MFC: r199739, r199825

- LSI MegaRAID 9260 works, sort the hardware list while here.
- Add IBM ServeRAID-MR10i to the hardware list.

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

14 years agoMFC: r199748
brueffer [Mon, 30 Nov 2009 07:51:37 +0000 (07:51 +0000)]
MFC: r199748

Grammar and mdoc improvements.

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

14 years agoMFC r199413:
yongari [Sun, 29 Nov 2009 20:19:24 +0000 (20:19 +0000)]
MFC r199413:
  It seems generation of link state change of e1000phy(4) is not
  reliable on some Marvell PHYs. If msk(4) know it still does not
  have established link check whether msk(4) missed the link state
  change by looking into polled link state.

  Reported by: Mel Flynn < mel.flynn+fbsd.current <> mailing.thruhere dot net >,
Gleb Kurtsou <gleb.kurtsou <> gmail dot com >
  Tested by: Gleb Kurtsou <gleb.kurtsou <> gmail dot com >

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

14 years agoMFC r199013:
yongari [Sun, 29 Nov 2009 20:11:38 +0000 (20:11 +0000)]
MFC r199013:
  88E8057(Ultra 2) is now supported.

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

14 years agoMFC r198475:
yongari [Sun, 29 Nov 2009 20:06:57 +0000 (20:06 +0000)]
MFC r198475:
  - Add support for Marvell Yukon 88E8042 device.

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

14 years agoMFC r199012:
yongari [Sun, 29 Nov 2009 19:58:35 +0000 (19:58 +0000)]
MFC r199012:
  Add preliminary Yukon Ultra 2 support(88E8057). The controller
  looks very similar to Yukon EC Ultra.

  Tested by: kalin m ( kalin <> el dot net )

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

14 years agoMFC 198996-198997.
yongari [Sun, 29 Nov 2009 19:54:32 +0000 (19:54 +0000)]
MFC 198996-198997.
r198996:
  Remove unnecessary header file.

r198997:
  It's normal to see Rx FIFO overruns under high network load and
  showing the message creates other side-effects. Remove the Rx
  FIFO overrun message in interrupt handler. msk(4) should recover
  from the FIFO overruns without any user intervention. Users can
  still check the Rx FIFO overrun counter from MAC MIB statistics
  maintained in driver(dev.msk.0.stats.rx.overflows).

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

14 years agoMFC 198814.
yongari [Sun, 29 Nov 2009 19:49:21 +0000 (19:49 +0000)]
MFC 198814.
  Add a check to know whether driver is still running after
  reacquiring driver lock in Rx handler. re(4) drops a driver lock
  before passing received frame to upper stack and reacquire the
  lock. During the time window ioctl calls could be executed and if
  the ioctl was interface down request, driver will stop the
  controller and free allocated mbufs. After that when driver comes
  back to Rx handler again it does not know what was happend so it
  could access free mbufs which in turn cause panic.

  Reported by: Norbert Papke < npapk <> acm dot org >
  Tested by: Norbert Papke < npapk <> acm dot org >

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

14 years agoMFC 198813.
yongari [Sun, 29 Nov 2009 19:46:15 +0000 (19:46 +0000)]
MFC 198813.
  Add BCM5761 PHY id.

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

14 years agoMFC 197627.
yongari [Sun, 29 Nov 2009 19:29:11 +0000 (19:29 +0000)]
MFC 197627.
  Fix multicast handling. All Atheros controllers use big-endian form
  in computing multicast hash.

  PR: kern/139137

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

14 years agoMFC 197600.
yongari [Sun, 29 Nov 2009 19:25:15 +0000 (19:25 +0000)]
MFC 197600.
  For AR8132 fast ethernet controller, do not report 1000baseT
  capability to mii(4). Even though AR8132 uses the same model/
  revision number of F1 gigabit PHY, the PHY has no ability to
  establish 1000baseT link. I have no idea why Atheros use the same
  device/model id for this PHY.
  With this change atphy(4) does not report 1000baseT media
  capability and manual 1000baseT configuration is also disabled
  which is more desirable behavior for 10/100Mbps PHY.

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

14 years agoMFC 197593.
yongari [Sun, 29 Nov 2009 19:22:44 +0000 (19:22 +0000)]
MFC 197593.
  DGE-560SX is now supported.

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

14 years agoMFC 197592.
yongari [Sun, 29 Nov 2009 19:18:22 +0000 (19:18 +0000)]
MFC 197592.
  Add DGE-560SX(Yukon XL) to the supported device list. Many thanks
  to "Eugene Perevyazko <john <> dnepro dot net>" who kindly gave
  remote access to system with DGE-560SX.

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

14 years agoMFC 197591.
yongari [Sun, 29 Nov 2009 19:15:08 +0000 (19:15 +0000)]
MFC 197591.
  Add workaround for Yukon XL which has hardware bug that can't flush
  FIFO.

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

14 years agoMFC 197590.
yongari [Sun, 29 Nov 2009 19:11:03 +0000 (19:11 +0000)]
MFC 197590.
  Add hack to pass controller specific information to phy driver.
  Unlike most other PHYs there is no easy way to know which media
  type the PHY supports on Marvell PHYs. MIIF_HAVEFIBER flags is now
  passed via bus-specific instance variable of a device. While I'm
  here add 88E1112 specific work around to set SIGDET polarity low.
  Many thanks "Eugene Perevyazko <john <> dnepro dot net>" who kindly
  gave remote access to system with DGE-560SX.

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

14 years agoMFC 197589.
yongari [Sun, 29 Nov 2009 19:06:33 +0000 (19:06 +0000)]
MFC 197589.
  Fix MIB statistics clear routine. This should fix alignment errors on sparc64.

  Reported by: Garrett Damore < gdamore <> opensolaris dot org >

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

14 years agoMFC 197588.
yongari [Sun, 29 Nov 2009 19:03:20 +0000 (19:03 +0000)]
MFC 197588.
  Some fiber PHY(88E1112) does not seem to set resolved speed so
  always assume we've got IFM_1000_SX.

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

14 years agoMFC 197587.
yongari [Sun, 29 Nov 2009 18:59:43 +0000 (18:59 +0000)]
MFC 197587.
  Don't encode model id twice.

  Reported by: Kristof Provost <kristof <> sigsegv dot be>

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

14 years agoMFC r197585.
yongari [Sun, 29 Nov 2009 18:51:58 +0000 (18:51 +0000)]
MFC r197585.
  Remove unnecessary device reinitialization.

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

14 years agoMFC r199828:
kib [Sun, 29 Nov 2009 18:03:49 +0000 (18:03 +0000)]
MFC r199828:
Flag controlling origin expansion in DT_FLAGS is DF_ORIGIN, not DF_1_ORIGIN.

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

14 years agoMFC r199226:
nwhitehorn [Sat, 28 Nov 2009 20:02:45 +0000 (20:02 +0000)]
MFC r199226:

Provide a real fix to the too-many-translations problem when booting
from CD on 64-bit hardware to replace existing band-aids. This occurred
when the preloaded mdroot required too many mappings for the static
buffer.

Since we only use the translations buffer once, allocate a dynamic
buffer on the stack. This early in the boot process, the call chain
is quite short and we can be assured of having sufficient stack space.

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

14 years agoMFC r198212,198378,198427,198428,198723,198724,198725,198731:
nwhitehorn [Sat, 28 Nov 2009 19:37:58 +0000 (19:37 +0000)]
MFC r198212,198378,198427,198428,198723,198724,198725,198731:
SMP support for PowerPC G5 systems.

r198724:
Fix a race in casuword() exposed by csup. casuword() non-atomically
read the current value of its argument before atomically replacing it,
which could occasionally return the wrong value on an SMP system. This
resulted in user mutex operations hanging when using threaded applications.

r198723,198725,198731:
Loop on blocked threads when using ULE scheduler, removing an
XXX MP comment.

r198427:
Add some more paranoia to setting HID registers, and update the AIM
clock routines to work better with SMP.

r198378:
Add SMP support on U3-based G5 systems. While here, correct the
64-bit tlbie function to set the CPU to 64-bit mode correctly.

r198212:
Don't assume that physical addresses are identity mapped. This
allows the second processor on G5 systems to start.

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

14 years agoMFC r198400:
nwhitehorn [Sat, 28 Nov 2009 18:36:58 +0000 (18:36 +0000)]
MFC r198400:

Do not map the trap vectors into the kernel's address space. They are
only used in real mode and keeping them mapped only serves to make NULL
a valid address, which results in silent NULL pointer deferences.

Suggested by:   Patrick Kerharo
Obtained from:  projects/ppc64

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

14 years agoMFC r197961,197962:
nwhitehorn [Sat, 28 Nov 2009 18:34:35 +0000 (18:34 +0000)]
MFC r197961,197962:

Fix two typos that caused DSISR and CR not to be preserved across context
switches.

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

14 years agoMFC r199580:
raj [Fri, 27 Nov 2009 13:38:59 +0000 (13:38 +0000)]
MFC r199580:

tsec: Use IFQ_DRV macros for managing interface packet queue.

This lets tsec(4) work with ALTQ.

Submitted by: Marcin Ligenza

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

14 years agoMFC r199584:
netchild [Fri, 27 Nov 2009 10:55:28 +0000 (10:55 +0000)]
MFC r199584:
  Fix minor memory leak in a function.

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

14 years agoMFC r199582:
netchild [Fri, 27 Nov 2009 10:53:46 +0000 (10:53 +0000)]
MFC r199582:
  Fix minor resource leak in a function which was introduced by changing an
  err() to a return in r106254.

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

14 years agoMFC r199260:
attilio [Fri, 27 Nov 2009 02:47:49 +0000 (02:47 +0000)]
MFC r199260:
Add sysctls in ahd(4) in order to keep track of different classes of
errors. So far 3 different classes are present (correctable,
uncorrectable and fatal) but more can be added easilly.

Sponsored by: Sandvine Incorporated

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

14 years agoMFC r199227:
attilio [Fri, 27 Nov 2009 02:45:50 +0000 (02:45 +0000)]
MFC r199227:
Add the possibility for vfs.root.mountfrom tunable to accept a list of
items rather than a single one.
While there fix also a nit in a comment.

Sponsored by: Sandvine Incorporated

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

14 years ago8.0-RELEASE is done, shift stable/8 to -STABLE designation.
kensmith [Fri, 27 Nov 2009 00:21:17 +0000 (00:21 +0000)]
8.0-RELEASE is done, shift stable/8 to -STABLE designation.

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

14 years agoMFC r199534:
raj [Thu, 26 Nov 2009 22:35:26 +0000 (22:35 +0000)]
MFC r199534:

Provide an effective (relocated) address when building modules metadata.

This lets modules loaded dynamically in loader(8) work for U-Boot-based
platforms.

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