]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r243032:
demon [Tue, 20 Nov 2012 11:47:22 +0000 (11:47 +0000)]
MFC r243032:

Use defined() to test macro definitions.

Approved by: theraven

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

11 years agoMFC r240997:
trociny [Mon, 19 Nov 2012 21:10:52 +0000 (21:10 +0000)]
MFC r240997:

Kernel and modules have "set_vnet" linker set, where virtualized
global variables are placed. When a module is loaded by link_elf
linker its variables from "set_vnet" linker set are copied to the
kernel "set_vnet" ("modspace") and all references to these variables
inside the module are relocated accordingly.

The issue is when a module is loaded that has references to global
variables from another, previously loaded module: these references are
not relocated so an invalid address is used when the module tries to
access the variable. The example is V_layer3_chain, defined in ipfw
module and accessed from ipfw_nat.

The same issue is with DPCPU variables, which use "set_pcpu" linker
set.

Fix this making the link_elf linker on a module load recognize
"external" DPCPU/VNET variables defined in the previously loaded
modules and relocate them accordingly. For this set_pcpu_list and
set_vnet_list are used, where the addresses of modules' "set_pcpu" and
"set_vnet" linker sets are stored.

Note, archs that use link_elf_obj (amd64) were not affected by this
issue.

Reviewed by: jhb, julian, zec (initial version)

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

11 years agoMFC r239242: Reword comment to try to improve clarity, and fix a typo.
emaste [Mon, 19 Nov 2012 19:31:55 +0000 (19:31 +0000)]
MFC r239242: Reword comment to try to improve clarity, and fix a typo.

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

11 years agoMFC r241643: Avoid panic when a netmap instance cannot obtain memory.
emaste [Mon, 19 Nov 2012 19:30:30 +0000 (19:30 +0000)]
MFC r241643: Avoid panic when a netmap instance cannot obtain memory.

  A uint32_t is always >= 0.

Sponsored by: ADARA Networks

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

11 years agoMFC r239234: Use array notation for consistency.
emaste [Mon, 19 Nov 2012 19:26:59 +0000 (19:26 +0000)]
MFC r239234: Use array notation for consistency.

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

11 years agoMFC r239140: Clarify comments about number of tx / rx rings
emaste [Mon, 19 Nov 2012 19:24:48 +0000 (19:24 +0000)]
MFC r239140: Clarify comments about number of tx / rx rings

MFC r239141: Fix whitespace (missing newline)

Sponsored by: ADARA Networks

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

11 years agoSync netmap pkt-gen with HEAD.
emaste [Mon, 19 Nov 2012 19:14:25 +0000 (19:14 +0000)]
Sync netmap pkt-gen with HEAD.

MFC r238081, r238165, r238170, r238175, r239139, r239145, r240103,
    r238081:

r238165: Allow threads to finish up when terminated by user

  Set a flag and allow worker threads to finish upon ^C, instead of
  immediately cancelling them, so that final packet count and rate
  stats can be displayed.

r238170: Also report tx bandwidth with Ethernet overhead

r238175: Allow continuous packet transmission (via -t 0)

  Also add a missing check for the cancel flag while waiting for the first
  packet in receive mode.

r239139: Round displayed pps (instead of truncating)

r239145: Be more descriptive about poll error / timeout when transmitting.

r240103: Failure to open netmap device is unrecoverable.

  There's no reason to "fail later" since there's nothing this tool can do
  in netmap mode without /dev/netmap open.

Sponsored by: ADARA Networks

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

11 years agoMFC r232678: Inbound TCP-MD5 digest validation is now supported
emaste [Mon, 19 Nov 2012 18:54:37 +0000 (18:54 +0000)]
MFC r232678: Inbound TCP-MD5 digest validation is now supported

MFC r232695: Correct markup, use proper reference for sysctl(3)

  Submitted by:        brueffer@

MFC r232725: Remove undesired sysctl(3) xref

  Submitted by:        bde

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

11 years agoMFC r232297: Grammar: tzsetup now has more than one option.
emaste [Mon, 19 Nov 2012 18:43:13 +0000 (18:43 +0000)]
MFC r232297: Grammar: tzsetup now has more than one option.

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

11 years agoMFC (part of) r229778 (uqs):
emaste [Mon, 19 Nov 2012 18:26:08 +0000 (18:26 +0000)]
MFC (part of) r229778 (uqs):

  Spelling fixes for sbin

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

11 years agoMFC (part of) r227081 (ed):
emaste [Mon, 19 Nov 2012 18:25:03 +0000 (18:25 +0000)]
MFC (part of) r227081 (ed):

  Add missing static keywords for global variables to tools in sbin/.

  These tools declare global variables without using the static keyword,
  even though their use is limited to a single C-file, or without placing
  an extern declaration of them in the proper header file.

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

11 years agoMFC (part of) r241737 (ed):
emaste [Mon, 19 Nov 2012 18:20:27 +0000 (18:20 +0000)]
MFC (part of) r241737 (ed):

  More -Wmissing-variable-declarations fixes.

  In addition to adding `static' where possible:

  ...
  - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings.
  ...

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

11 years agoMFC r241484: Use CLOCK_UPTIME to get the uptime.
emaste [Mon, 19 Nov 2012 18:18:24 +0000 (18:18 +0000)]
MFC r241484: Use CLOCK_UPTIME to get the uptime.

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

11 years agoMFC r236625 (joel): Minor spelling fixes.
emaste [Mon, 19 Nov 2012 17:33:45 +0000 (17:33 +0000)]
MFC r236625 (joel): Minor spelling fixes.

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

11 years agoMFC r238298: Restore error handling lost in r191603
emaste [Mon, 19 Nov 2012 17:06:21 +0000 (17:06 +0000)]
MFC r238298: Restore error handling lost in r191603

  This was missed in the change from IFQ_ENQUEUE to if_transmit.

MFC r238346: Plug potential mbuf leak when bridging fragments

  If an error occurs when transmitting one mbuf in a chain of fragments,
  free the subsequent fragments instead of leaking them.

MFC r238355: Simplify error case

  Submitted by:        thompsa@

Sponsored by: ADARA Networks

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

11 years agoMFC r232680: Remove unactionable message about label geometry
emaste [Mon, 19 Nov 2012 16:52:58 +0000 (16:52 +0000)]
MFC r232680: Remove unactionable message about label geometry

It's not clear to a user what they should do after seeing the "geometry
does not match label" kernel message, and it does not appear to present
a problem in practice.  Thus, just remove the messages.

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

11 years agoMFC r231589: Add a sysctl to report the firmware build number.
emaste [Mon, 19 Nov 2012 16:16:34 +0000 (16:16 +0000)]
MFC r231589: Add a sysctl to report the firmware build number.

  Some older firmware versions have issues that can be worked around by
  avoiding certain operations.  Add a sysctl dev.aac.#.firmware_build to
  make it easy for scripts or userland tools to detect the firmware
  version.

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

11 years agoMFC r231129: Add BSD copyright notice.
emaste [Mon, 19 Nov 2012 16:02:04 +0000 (16:02 +0000)]
MFC r231129: Add BSD copyright notice.

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

11 years agoMFC r230990: Correct typo in comment (numbver)
emaste [Mon, 19 Nov 2012 15:57:55 +0000 (15:57 +0000)]
MFC r230990: Correct typo in comment (numbver)

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

11 years agoMFC r240945: Correct misspelling in debug output.
emaste [Mon, 19 Nov 2012 15:31:07 +0000 (15:31 +0000)]
MFC r240945: Correct misspelling in debug output.

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

11 years agoMFC r241648: Avoid potential bad pointer dereference.
emaste [Mon, 19 Nov 2012 15:26:03 +0000 (15:26 +0000)]
MFC r241648: Avoid potential bad pointer dereference.

  Previously RuleAdd would leave entry->la unset for the first entry in
  the proxyList.

Sponsored by: ADARA Networks

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

11 years agoMFC r237729: Fix ioctl type for compiling with clang
emaste [Mon, 19 Nov 2012 15:24:19 +0000 (15:24 +0000)]
MFC r237729: Fix ioctl type for compiling with clang

MFC r241169: Clean up compiler warnings.

MFC r241464: Make local function static.

Sponsored by: ADARA Networks

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

11 years agoMFC r230812: Add -e to set arbitrary kernel environment variables.
emaste [Mon, 19 Nov 2012 15:03:19 +0000 (15:03 +0000)]
MFC r230812: Add -e to set arbitrary kernel environment variables.

  Nextboot(8) can now set any combination of kernel name (-k), kernel
  options (-o), and environment strings (-e).  As a result of this change
  -k also becomes optional.

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

11 years agoMerge r227468: Don't fondle this particular CCA register from extension channel.
adrian [Mon, 19 Nov 2012 05:52:23 +0000 (05:52 +0000)]
Merge r227468: Don't fondle this particular CCA register from extension channel.

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

11 years agoMFC r243073:
eadler [Mon, 19 Nov 2012 04:10:23 +0000 (04:10 +0000)]
MFC r243073:
Some software, notably dialog(1), can understand back-tab, which is
typically bound to Shift-Tab. syscons produces ^]]Z for Shift-Tab, like
many VT100-like terminal (emulators). The plain xterm does not produce
this sequence, but ^I for both Tab and Shift-Tab.

PR: conf/162787
PR: bin/151229
Approved by: cperciva (implicit)

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

11 years agoMFC r243081:
eadler [Mon, 19 Nov 2012 04:07:43 +0000 (04:07 +0000)]
MFC r243081:
Avoid possible null deref if ypclnt_new returns null

PR: bin/172979
Approved by: cperciva (implicit)

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

11 years agoMFC r239070:
ae [Sun, 18 Nov 2012 17:27:10 +0000 (17:27 +0000)]
MFC r239070:
  Add simple test program that uses the partition tables handling code.
  It is useful to test and debug how boot loader handles partition tables
  metadata.

MFC r239087:
  Add to the debug output the offset from the parent partitioning scheme.

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

11 years agoMFC 239054,239057,239058,239060,239066,239067,239068,239070,239073,
ae [Sun, 18 Nov 2012 17:09:29 +0000 (17:09 +0000)]
MFC 239054,239057,239058,239060,239066,239067,239068,239070,239073,
    239087,239088,239127,239210,239211,239230,239231,239232,239243,
    239292,239293,239294,239325,240272,240273,240274,240275,240276,
    240277,240335,240481,241023,241047,241053,241065,241068,241069,
    241070,241164,241809,241876

239054:
  Create the interface to work with various partition tables from the
  loader(8). The following partition tables are supported: BSD label, GPT,
  MBR, EBR and VTOC8.
239057:
  Remove unused variables.
239058:
  Introduce new API to work with disks from the loader's drivers.
  It uses new API from the part.c to work with partition tables.
239060:
  When GPT signature is invalid in the primary GPT header, then try to
  read backup GPT header.
239066:
  Add offset field to the i386_devdesc structure to be compatible with
  disk_devdesc structure. Update biosdisk driver to the new disk API.
239067:
  Remove unneeded flag.
239068:
  Teach the ZFS use new partitions API when probing.
  Note: now ZFS does probe only for partitions with type "freebsd-zfs"
  and "freebsd".
239070:
  Add simple test program that uses the partition tables handling code.
  It is useful to test and debug how boot loader handles partition tables
  metadata.
239073:
  Bump USERBOOT_VERSION.
239087:
  Add to the debug output the offset from the parent partitioning scheme.
239088:
  Fix start offset calculation for the EBR partitions.
239127:
  As it turned out, there are some installations, where BSD label
  contains partitions with type zero. And it has worked.
  So, allow detect these partitions.
239210:
  Add more debug messages.
239211:
  Add another debug message.
239230:
  Unbreak booting from the true dedicated disks.
  When we open the disk, check the type of partition table, that has
  been detected. If this is BSD label, then we assume this is DD mode.
239231:
  Remove colons from the debug message, device name returned by the
  disk_fmtdev() already has the colons.
239232:
  Restore the old behaviour. If requested partition is a BSD slice,
  but d_partition isn't explicitly set, then try to open BSD label and its
  first partition.
239243:
  After r239066, reinitialize v86.ctl and v86.addr for int 13 EDD probing
  in sys/boot/i386/libi386/biosdisk.c.  Otherwise, when DISK_DEBUG is
  enabled, the DEBUG() macros will clobber those fields, and cause the
  probing to always fail mysteriously when debugging is enabled.
239292:
  Explicitly terminate the string after strncpy(3).
239293:
  Rework r239232 to unbreak ZFS detection on MBR slices.
239294:
  Some BIOSes return incorrect number of sectors, make checks less
  strictly, to do not lost some partitions.
239325:
  Add comment why the code has been disabled.
240272:
  Make struct uboot_devdesc compatible with struct disk_devdesc.
240273:
  Use disk_fmtdev() and disk_parsedev() functions from the new DISK API.
240274:
  Update uboot's disk driver to use new DISK API.
240275:
  Build disk.c only when DISK_SUPPORT is enabled.
240276:
  Update according to the change of struct uboot_devdesc.
240277:
  Handle LOADER_NO_DISK_SUPPORT knob in the arm and powerpc ubldr.
240335:
  Slightly reduce an overhead for the open() call in the zfsloader.
  libstand(3) tries to detect file system in the predefined order,
  but zfsloader usually is used for the booting from ZFS, and there is
  no need to try detect several file system types for each open() call.
240481:
  The MBR data is not necessarily aligned.  This is a problem on ARM.
241023:
  Make the loader a bit smarter, when it tries to open disk and the slice
  number is not exactly specified. When the disk has MBR, also try to read
  BSD label after ptable_getpart() call. When the disk has GPT, also set
  d_partition to 255.  Mostly, this is how it worked before.
241047:
  Disable splitfs support, since we aren't support floppies for a long
  time. This slightly reduces an overhead, when loader tries to open
  file that doesn't exist.
241053:
  Almost each time when loader opens a file, this leads to calling
  disk_open(). Very often this is called several times for one file.
  This leads to reading partition table metadata for each call. To
  reduce the number of disk I/O we have a simple block cache, but it
  is very dumb and more than half of I/O operations related to reading
  metadata, misses this cache.

  Introduce new cache layer to resolve this problem. It is independent
  and doesn't need initialization like bcache, and will work by default
  for all loaders which use the new DISK API. A successful disk_open()
  call to each new disk or partition produces new entry in the cache.
  Even more, when disk was already open, now opening of any nested
  partitions does not require reading top level partition table.
  So, if without this cache, partition table metadata was read around
  20-50 times during boot, now it reads only once. This affects the booting
  from GPT and MBR from the UFS.
241065:
  Fix disk_cleanup() to work without DISK_DEBUG too.
241068:
  Reduce the number of attempts to detect proper kld format for the amd64
  loader.
241069:
  Remember the file format of the last loaded module and try to use it for
  next files.
241070:
  Fix the style.
241164:
  Replace all references to loader_callbacks_v1 with loader_callbacks.
241809:
  Add the flags parameter to the disk_open() function and DISK_F_NOCACHE
  flag, that disables the caching of partition tables metadata.
  Use this flag for floppies in the libi386/biosdisk driver.
241876:
  When loader tries to open GPT partition, but partition table is not GPT,
  then try automatically detect an appropriate partition type.

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

11 years agoMFC r236023 (by marcel):
ae [Sun, 18 Nov 2012 16:13:36 +0000 (16:13 +0000)]
MFC r236023 (by marcel):
  Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes.
  The gpart alias for these partition types is "freebsd-nandfs".

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

11 years agoMFC r234860 (by kientzle):
ae [Sun, 18 Nov 2012 16:07:53 +0000 (16:07 +0000)]
MFC r234860 (by kientzle):
  Teach ubldr(8) about simple MBR partitioning.

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

11 years agoMFC r241785: boot: use -march=i386 for both i386 and amd64 builds
avg [Sun, 18 Nov 2012 12:28:29 +0000 (12:28 +0000)]
MFC r241785: boot: use -march=i386 for both i386 and amd64 builds

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

11 years agoMFC r243025: boot: use packed attribute for edd_params* structures
avg [Sun, 18 Nov 2012 12:20:11 +0000 (12:20 +0000)]
MFC r243025: boot: use packed attribute for edd_params* structures

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

11 years agoMFC r242566: zfs_freebsd_close: call zfs_close with count=1 instead of count=0
avg [Sun, 18 Nov 2012 12:16:50 +0000 (12:16 +0000)]
MFC r242566: zfs_freebsd_close: call zfs_close with count=1 instead of count=0

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

11 years agoMFC r243075:
eadler [Sun, 18 Nov 2012 06:25:37 +0000 (06:25 +0000)]
MFC r243075:
Make definition match declaration

Approved by: cperciva (implicit)

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

11 years agoMFC r243074:
eadler [Sun, 18 Nov 2012 06:21:45 +0000 (06:21 +0000)]
MFC r243074:
Add a missing check for fread

Approved by: cperciva (implicit)

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

11 years agoMFC r243037:
dim [Sat, 17 Nov 2012 23:34:10 +0000 (23:34 +0000)]
MFC r243037:

Fix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: it
compared an enum scope_type against a yacc-generated define, so the
condition would always be false.

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

11 years agoMFC r243036:
dim [Sat, 17 Nov 2012 23:31:16 +0000 (23:31 +0000)]
MFC r243036:

In games/fortune/fortune/fortune.c, make 'Debug' the correct type (it is
*not* a boolean).

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

11 years agoMFC r243035:
dim [Sat, 17 Nov 2012 23:14:31 +0000 (23:14 +0000)]
MFC r243035:

For mkcsmapper, conditionalize gcc-specific compile flags.

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

11 years agoMFC r243034:
dim [Sat, 17 Nov 2012 23:11:04 +0000 (23:11 +0000)]
MFC r243034:

In crypto/heimdal/lib/sl/slc-lex.l, don't define YY_NO_INPUT, since
%option nounput is already specified.

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

11 years agoMFC r242879:
dim [Sat, 17 Nov 2012 23:05:18 +0000 (23:05 +0000)]
MFC r242879:

  Only define isnan, isnanf, __isnan and __isnanf in libc.so, not in
  libc.a and libc_p.a.  In addition, define isnan in libm.a and libm_p.a,
  but not in libm.so.

  This makes it possible to statically link executables using both isnan
  and isnanf with libc and libm.

  Tested by: kargl

MFC r242894:

  Add an explanatory comment to lib/libc/gen/isnan.c about the fix to make
  static linking with libc and libm work.

  Requested by: jilles

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

11 years agoMFC r242873:
dim [Sat, 17 Nov 2012 22:58:33 +0000 (22:58 +0000)]
MFC r242873:

Fix all the inconsistent nve_os* function declarations and definitions
in nve(4).  The OS_API structure defined in os.h expects NV_API_CALL
attributes, effectively regparm(0), on its function pointers, but all
the functions were declared and defined without this attribute.

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

11 years agoMFC r242835:
dim [Sat, 17 Nov 2012 22:50:50 +0000 (22:50 +0000)]
MFC r242835:

Reduce LLVM's default stack alignment for i386 from 16 to 4 bytes, as
the FreeBSD ABI requires.  This is essentially a revert of upstream llvm
commit r126226, and it will be reverted by upstream too.

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

11 years agoMFC r242706:
dim [Sat, 17 Nov 2012 22:40:18 +0000 (22:40 +0000)]
MFC r242706:

  Put in a band-aid to get the pc98 bootstraps building, now clang is the
  default compiler.  This has two parts:
  - Make sys/boot/pc98/boot2 always build with gcc for now, until we can
    figure out a way to shrink it enough when building with clang.
  - Since sys/boot/p98/cdboot uses .code16 directives, which are not yet
    supported by clang's integrated assembler, use -no-integrated-as,
    similar to sys/boot/i386/cdboot.

  Reviewed by: nyan

MFC r242874:

  Work around pc98 tinderbox failures in sys/boot/pc98, by making sure a
  cross gcc gets built during the cross-tools stage.

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

11 years agoMFC r242432:
kib [Fri, 16 Nov 2012 07:07:00 +0000 (07:07 +0000)]
MFC r242432:
Provide the reading and display of the Standard Extended Features,
introduced with the IvyBridge CPUs.  Provide the definitions for new
bits in CR3 and CR4 registers.

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

11 years agoMFC r242422:
mav [Fri, 16 Nov 2012 03:07:27 +0000 (03:07 +0000)]
MFC r242422:
Only four specific ATA PIO commands transfer several sectors per DRQ block
(interrupt).  All other ATA PIO commands transfer one sector or 512 bytes
at one time.  Hardcode these exceptions in ata(4) with ATA_CAM option.
This fixes timeout of READ LOG EXT command used by `smartctl -x /dev/adaX`.

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

11 years agoMFC r242156:
mav [Fri, 16 Nov 2012 03:04:30 +0000 (03:04 +0000)]
MFC r242156:
Implement CAM_ATAIO_NEEDRESULT (fetching full set of result registers) for
ata(4) driver in ATA_CAM mode.  That slighty improves error reporting and
also should fix `smartctl -l scterc /dev/adaX` operation.

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

11 years agoMFC r241144, r241160:
mav [Fri, 16 Nov 2012 02:26:23 +0000 (02:26 +0000)]
MFC r241144, r241160:
Implement SATA revision (speed) control for legacy SATA controller for
both boot (via loader tunables) and run-time (via `camcontrol negotiate`).
Tested to work at least on NVIDIA MCP55 chipset.

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

11 years agoMFC r242666, r242671.
np [Thu, 15 Nov 2012 19:45:04 +0000 (19:45 +0000)]
MFC r242666, r242671.

r242666:
Remove the tid from the software table (and bump down the in-use
counter) when the syncache doesn't want the driver to reply to an
incoming SYN.  This fixes a harmless bug where tids_in_use would
go out of sync with the hardware counter.

r242671:
Make sure the inp hasn't been dropped before trying to access its socket
and tcpcb.

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

11 years agoMFC r242378:
np [Thu, 15 Nov 2012 19:27:11 +0000 (19:27 +0000)]
MFC r242378:
Catch up with r238925.  ktr_entries may not be a power of 2.

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

11 years agoMFC r243022:
bapt [Thu, 15 Nov 2012 18:05:30 +0000 (18:05 +0000)]
MFC r243022:
small style fix

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

11 years agoMFC r242784:
n_hibma [Thu, 15 Nov 2012 15:48:40 +0000 (15:48 +0000)]
MFC r242784:
  Not only load pccard_ether settings, also load network settings. This
  is only a problem when a /etc/rc.conf.d/network file is being used.

  PR: conf/160373
  Submitted by: n_hibma

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

11 years agoMFC r242889 (by rdivacky):
dim [Thu, 15 Nov 2012 07:48:44 +0000 (07:48 +0000)]
MFC r242889 (by rdivacky):

  Change the XNB_ASSERT from a statement expression to do-while(0) as its
  result is never used.

MFC r242934:

  Redo r242889, now using the method from projects/amd64_xen_pv r240747.

  Reminded by: kib

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

11 years agoMFC r242931:
dim [Thu, 15 Nov 2012 07:36:38 +0000 (07:36 +0000)]
MFC r242931:

Fix a minor warning in sys/i386/xen/clock.c.

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

11 years agoMFC r242417:
mav [Thu, 15 Nov 2012 06:03:14 +0000 (06:03 +0000)]
MFC r242417:
ASUS EeePC 1001px has strange variant of ALC269 CODEC, that mutes speaker
if unused in that configuration mixer at NID 15 is muted.  Probably CODEC
incorrectly reports its internal connections.  Hide that muter from the
driver to avoid muting and make built-in speaker work.

There are several different CODECs sharing this ID and I have not enough
information about them and the bug to implement more universal solution.

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

11 years agoMFC r242357:
mav [Thu, 15 Nov 2012 05:57:20 +0000 (05:57 +0000)]
MFC r242357:
Set all pins initial connection status to unknown (2) and then update it
with the real value in regular way if sensing is supported.  This fixes
minor inconsistency when playback redirection appeared in undefined state
on boot if headphones were not connected.

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

11 years agoMFC r242352:
mav [Thu, 15 Nov 2012 05:54:18 +0000 (05:54 +0000)]
MFC r242352:
Print card and subsystem IDs in verbose logs to help to identify system.
Hide some less iseful messages under debug.

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

11 years agoMFC r240762:
mav [Thu, 15 Nov 2012 05:44:44 +0000 (05:44 +0000)]
MFC r240762:
Restore handling of the third argument (id) of hid_start_parse(), same as
it is done in NetBSD/OpenBSD, and as it was here before r205728.

I personally think this API or its implementation is incorrect, as it is not
correct to filter collections based on report ID, as they are orthogonal
in general case, but I see no harm from supporting this feature.

PR: usb/171810

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

11 years agoMFC r242314:
mav [Thu, 15 Nov 2012 05:33:14 +0000 (05:33 +0000)]
MFC r242314:
Make GEOM RAID more aggressive in marking volumes as clean on shutdown
and move that action from shutdown_pre_sync to shutdown_post_sync stage
to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

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

11 years agoMFC r242715:
dim [Wed, 14 Nov 2012 20:32:43 +0000 (20:32 +0000)]
MFC r242715:

  For kernel builds with PROFLEVEL >= 1, such as LINT, don't attempt to
  use the -falign-functions option if the compiler is clang, as the flag
  is not supported.

MFC r242717:

  For kernel builds with PROFLEVEL >= 2, such as LINT, don't attempt to
  use the -mprofiler-epilogue option if the compiler is clang, as the flag
  is not supported.  While here, fix up the value indentations.

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

11 years agoMFC r240468 (by brooks):
dim [Wed, 14 Nov 2012 20:27:17 +0000 (20:27 +0000)]
MFC r240468 (by brooks):

  Introduce a new make variable COMPILER_TYPE that specifies what
  type of compiler is being used (currently clang or gcc).  COMPILER_TYPE
  is set in the new bsd.compiler.mk file based on the value of the CC
  variable or, should it prove informative, by running ${CC} --version
  and examining the output.

  To avoid negative performance impacts in the default case and correct
  value for COMPILER_TYPE type is determined and passed in the environment
  of submake instances while building world.

  Replace adhoc attempts at determining the compiler type by examining
  CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE.  This eliminates
  bootstrapping complications when first setting WITH_CLANG_IS_CC.

  Sponsored by: DARPA, AFRL
  Reviewed by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
(with some modifications post review)

MFC r242633 (by brooks):

  Allow CC to be gcc46 or similar by matching gcc*.

  Don't test the value of the :M matches, either the string matches or does
  not.

MFC r242658:

  Fix typo in bsd.compiler.mk.

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

11 years agoMerge of current of 243003, tzdata2012j
edwin [Wed, 14 Nov 2012 10:06:50 +0000 (10:06 +0000)]
Merge of current of 243003, tzdata2012j

- Libya went to Standard Time on 10 November 2012

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

11 years agoMFC r242814:
eadler [Wed, 14 Nov 2012 00:34:11 +0000 (00:34 +0000)]
MFC r242814:
Add support for Advantech PCI-1602 RS-485/RS-422 serial card

PR: kern/169726
Approved by: cperciva (implicit)

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

11 years agoMFC r242372:
mjg [Tue, 13 Nov 2012 19:17:21 +0000 (19:17 +0000)]
MFC r242372:
atrun(8): scale default load average limit with the number of CPUs

Previously atrun refused to run jobs if load average was not below fixed limit of 1.5.

PR: 173175
Approved by: trasz (mentor)

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

11 years agoMerge of current of 242925, tzdata2012i
edwin [Mon, 12 Nov 2012 20:50:15 +0000 (20:50 +0000)]
Merge of current of 242925, tzdata2012i

- Cuba is changing back to Standard Time on 4 November 2012.

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

11 years agoMFC r242617:
kib [Mon, 12 Nov 2012 15:17:25 +0000 (15:17 +0000)]
MFC r242617:
A clarification to the behaviour of the active vnode list management
regarding the vnode page cleaning.

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

11 years agoMFC 242479,242480: Force segments to 1 for mapping
mjacob [Mon, 12 Nov 2012 14:34:46 +0000 (14:34 +0000)]
MFC 242479,242480: Force segments to 1 for mapping
control spaces.

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

11 years agoRemove useless atoi(3), previous strspn(3) makes sure that a_name->val is a
bapt [Mon, 12 Nov 2012 14:13:49 +0000 (14:13 +0000)]
Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is a
number.
This also allow pw user show to work as expected.

PR: bin/172112
Submitted by: Ilya A. Arkhipov <rum1cro@yandex.ru>

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

11 years agoadd support for newer Lenovo ThinkPads to acpi_ibm
bapt [Mon, 12 Nov 2012 14:04:57 +0000 (14:04 +0000)]
add support for newer Lenovo ThinkPads to acpi_ibm

PR: kern/164538
Submitted by: Pierre Imai <pierre@imai.at>

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

11 years agoMFC r242625:
dim [Mon, 12 Nov 2012 07:34:05 +0000 (07:34 +0000)]
MFC r242625:

Remove duplicate const specifiers in many drivers (I hope I got all of
them, please let me know if not).  Most of these are of the form:

static const struct bzzt_type {
      [...list of members...]
} const bzzt_devs[] = {
      [...list of initializers...]
};

The second const is unnecessary, as arrays cannot be modified anyway,
and if the elements are const, the whole thing is const automatically
(e.g. it is placed in .rodata).

I have verified this does not change the binary output of a full kernel
build (except for build timestamps embedded in the object files).

Reviewed by: yongari, marius

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

11 years agoMFC r242804:
dim [Mon, 12 Nov 2012 07:30:24 +0000 (07:30 +0000)]
MFC r242804:

Shrink boot2 by 8 bytes, by eliminating some unneeded instructions in
sio.S.  This is not particularly needed for head right now, but it is
intended to merge to stable/9, to fix boot2 build with clang there.

Reviewed by: avg

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

11 years agoFix a regression introduced by SVN r211417 that saw the breakage of a feature
dteske [Sun, 11 Nov 2012 23:29:45 +0000 (23:29 +0000)]
Fix a regression introduced by SVN r211417 that saw the breakage of a feature
documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):

If /usr/sbin/sysinstall is linked to another filename, say
`/usr/local/bin/configPackages', then the basename will be used
as an implicit command name.

Reviewed by: adrian (co-mentor)
Approved by: adrian (co-mentor)

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

11 years agoMFC r240422, r240426 and r240450:
ed [Sun, 11 Nov 2012 12:21:51 +0000 (12:21 +0000)]
MFC r240422, r240426 and r240450:

  Implement LIST_PREV().

  Regular LISTs have been implemented in such a way that the prev-pointer
  does not point to the previous element, but to the next-pointer stored
  in the previous element. This is done to simplify LIST_REMOVE(). This
  macro can be implemented without knowing the address of the list head.

  Unfortunately this makes it harder to implement LIST_PREV(), which is
  why this macro was never here. Still, it is possible to implement this
  macro. If the prev-pointer points to the list head, we return NULL.
  Otherwise we simply subtract the offset of the prev-pointer within the
  structure.

  It's not as efficient as traversing forward of course, but in practice
  it shouldn't be that bad. In almost all use cases, people will want to
  compare the value returned by LIST_PREV() against NULL, so an optimizing
  compiler will not emit code that does more branching than TAILQs.

  While there, add __containerof(). Compared to __member2struct(), this
  macro has the following advantages:

  - It ensures that the type of the pointer is compatible with the member
    field of the structure (or a void pointer).
  - It works properly in combination with volatile and const, though
    unfortunately it drops these qualifiers from the returned value.

  mdf@ proposed to add the container_of() macro, just like Linux has.
  Eventually I decided against this, as <sys/param.h> is included all over
  the place. It seems container_of() on Linux is specific to the kernel,
  not userspace. I'd rather not pollute userspace with this.

  I also thought about adding __container_of(), but this would have two
  advantages. Xorg seems to already have a __container_of(), which is not
  compatible with this version. Also, the underscore in the middle
  conflicts with our existing macros (__offsetof, __rangeof, etc).

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

11 years agoMFC r241161:
ed [Sun, 11 Nov 2012 12:12:44 +0000 (12:12 +0000)]
MFC r241161:

  Fix faulty error code handling in read(2) on TTYs.

  When performing a non-blocking read(2), on a TTY while no data is
  available, we should return EAGAIN. But if there's a modem disconnect,
  we should return 0. Right now we only return 0 when doing a blocking
  read, which is wrong.

MFC r242078:

  Correct SIGTTIN handling.

  In the old TTY layer, SIGTTIN was correctly handled like this:

        while (data should be read) {
                send SIGTTIN if not foreground process group
                read data
        }

  In the new TTY layer, however, this behaviour was changed, based on a
  false interpretation of the standard:

        send SIGTTIN if not foreground process group
        while (data should be read) {
                read data
        }

  Correct this by pushing tty_wait_background() into the ttydisc_read_*()
  functions.

  Reported by:  koitsu
  PR:           kern/173010

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

11 years agoMFC r233522, r239855, r239910, r239938, r239954 and r239961.
ed [Sun, 11 Nov 2012 12:06:12 +0000 (12:06 +0000)]
MFC r233522, r239855, r239910, r239938, r239954 and r239961.

- Relicense to 2-clause BSD license.
- Use queue(3) -- not some homegrown implementation of linked lists.
- Rename structures to _entry, as they are entries in the linked list --
  not the lists themselves.
- Don't store entire copies of struct utmpx in utmpx_entry, but only the
  members we're interested in. Large fields such as hostnames are not
  needed during the execution of the program.
- Give structure members useful names, instead of `name'.
- While there, use struct timevals instead of time_t's internally. This
  is not strictly useful, but while we're at it...
- Mark stuff static.
- Add missing const keywords.
- Remove unneeded prototypes.
- Remove workaround for sparc64-specific utmp problems. These don't
  apply to utmpx.
- Don't discard entries when timestamps are not monotone. This shouldn't
  ever happen with utmpx, but discarding them is a bit too harsh.
- Remove debug code. We nowadays have `getent utmpx', which can be used
  to analyze logfiles in depth.
- Use proper uppercasing/periods in comments.
- Print output of `ac -p' sorted alphabetically, instead of first
  occurrence.
- Properly check against pts/* instead of tty[PQRSpqrs]* to determine
  whether a TTY is a pseudo-terminal.

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

11 years agoMFC r242583:
eadler [Sun, 11 Nov 2012 04:07:09 +0000 (04:07 +0000)]
MFC r242583:
Add support for a few more devices:

PNP0510 and FUJ02E5 for a  "Wacom Tablet at FuS Lifebook T"
PNP0502 and PNP0511 for some other generic devices.

PR: kern/173357
Approved by: cperciva (implicit)

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

11 years agoMFC r242565: cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call
avg [Sat, 10 Nov 2012 12:08:06 +0000 (12:08 +0000)]
MFC r242565: cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call

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

11 years agoMFC r241773: zfs: wait in arc_lowmem only if curproc == pageproc
avg [Sat, 10 Nov 2012 12:06:24 +0000 (12:06 +0000)]
MFC r241773: zfs: wait in arc_lowmem only if curproc == pageproc

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

11 years agoMFC r241540: pciereg_cfg*: use assembly to access the mem-mapped cfg space
avg [Sat, 10 Nov 2012 12:04:02 +0000 (12:04 +0000)]
MFC r241540: pciereg_cfg*: use assembly to access the mem-mapped cfg space

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

11 years agoMFC r242707:
dim [Sat, 10 Nov 2012 00:36:53 +0000 (00:36 +0000)]
MFC r242707:

Belatedly add links from /usr/bin/clang to /usr/bin/CC, like it has been
done for g++.

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

11 years agoMFC r242623:
dim [Fri, 9 Nov 2012 19:35:46 +0000 (19:35 +0000)]
MFC r242623:

In sys/contrib/ngatm/netnatm/msg/uni_ie.c, fix a few warnings from newer
versions of clang 3.2, about comparing enum uni_cause values against
integer constants which fall outside the enum range.  No functional
change.

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

11 years agoMFC r242622:
dim [Fri, 9 Nov 2012 19:32:37 +0000 (19:32 +0000)]
MFC r242622:

Fix a few warnings from newer clang 3.2 in libpmc, about comparing enum
pmc_event values against integer constants which fall outside the enum
range.

Reviewed by: fabient, sbruno

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

11 years agoMFC r242680:
mjg [Fri, 9 Nov 2012 19:31:31 +0000 (19:31 +0000)]
MFC r242680:

Fix possible spurious sbunlock in sctp_sorecvmsg.

Approved by: trasz (mentor)

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

11 years agoMFC r242127, r240078, r240609, r241988, r242129, r242223, r242438,
hselasky [Fri, 9 Nov 2012 07:29:11 +0000 (07:29 +0000)]
MFC r242127, r240078, r240609, r241988, r242129, r242223, r242438,
r242453, r242455 and r242458:

Add full support for Fast Track Ultra 8R from M-audio.

Implement support for USB Audio v2.0.

Remove some redundant USB audio v1.0 debug data. Use lsusb instead.

Implement support for the so-called USB feedback endpoint for USB
audio devices.

Export all mixer nodes into dev.pcm.X.mixer.Y sysctl nodes.

PR: usb/171254

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

11 years agoMFC r241432, r242628 and r242364:
hselasky [Fri, 9 Nov 2012 07:12:31 +0000 (07:12 +0000)]
MFC r241432, r242628 and r242364:
Remove ancient mass storage gone checks.
Add some more mass storage related quirks.
Improve auto-quirk detection for mass storage devices.

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

11 years agoMFC r240743 and r234418:
hselasky [Fri, 9 Nov 2012 07:05:28 +0000 (07:05 +0000)]
MFC r240743 and r234418:
Fix some typos.

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

11 years agoMFC r238466 and r242777:
hselasky [Fri, 9 Nov 2012 06:58:23 +0000 (06:58 +0000)]
MFC r238466 and r242777:
Implement non-PHY support in the udav driver.

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

11 years agoMFC r242462:
eadler [Fri, 9 Nov 2012 00:35:55 +0000 (00:35 +0000)]
MFC r242462:
10 years too late add support for "2.88MB 3.5in Extra High Density"
floppies.

Its unlikely that anyone actually uses these or cares about these
anymore, since we support other floppy types and this change doesn't
hurt - just add it.

PR: conf/40777
Arrival-Date: Fri Jul 19 08:50:02 PDT 2002
Approved by: cperciva (implicit)

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

11 years agoMFC r242523:
hselasky [Thu, 8 Nov 2012 16:17:52 +0000 (16:17 +0000)]
MFC r242523:
Allow using the embedded EHCI host controller in Freescale SoCs
by adding the missing bits. See ehci_fsl.c for their use.

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

11 years agoMFC r240750, r241987 and r242126:
hselasky [Thu, 8 Nov 2012 16:13:51 +0000 (16:13 +0000)]
MFC r240750, r241987 and r242126:
Add missing CTLFLAG_TUN flag to tunable sysctls in the USB stack.
Adjust timing parameters of FULL/LOW/HIGH speed USB enumeration
and make these timing parameters tunable. This patch will fix
enumeration with some USB devices.
Fix a typo.

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

11 years agoMFC r238551 and r239617:
hselasky [Thu, 8 Nov 2012 16:04:32 +0000 (16:04 +0000)]
MFC r238551 and r239617:
Add support for Intel Panther/Lynx Point XHCI port routing.

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

11 years agoMFC r242460: fopen(3): Mention that the "x" mode option is from C11.
jilles [Thu, 8 Nov 2012 13:47:32 +0000 (13:47 +0000)]
MFC r242460: fopen(3): Mention that the "x" mode option is from C11.

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

11 years agoMFC r242429: fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".
jilles [Thu, 8 Nov 2012 13:40:46 +0000 (13:40 +0000)]
MFC r242429: fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".

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

11 years agoMFC r242559:
kib [Thu, 8 Nov 2012 02:29:16 +0000 (02:29 +0000)]
MFC r242559:
Add decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.

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

11 years agoMFC r242556:
kib [Thu, 8 Nov 2012 02:23:51 +0000 (02:23 +0000)]
MFC r242556:
Order the enumeration of the MNT_ flags to be the same as the order of
their definitions.

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

11 years agoMFC r242425:
yongari [Thu, 8 Nov 2012 02:06:27 +0000 (02:06 +0000)]
MFC r242425:
  Remove TCP/UDP checksum offloading feature for IP fragmented
  datagrams.  Traditionally upper stack fragmented packets without
  computing TCP/UDP checksum and these datagrams were passed to
  driver.  But there are chances that other packets slip into the
  interface queue in SMP world. If this happens firmware running on
  MIPS 4000 processor in the controller would see mixed packets and
  it shall send out corrupted packets.
  While I'm here simplify checksum offloading setup.

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

11 years agoMFC r238991:
jh [Wed, 7 Nov 2012 16:52:01 +0000 (16:52 +0000)]
MFC r238991:

Disallow sectorsize larger than MAXPHYS and mediasize smaller than
sectorsize.

PR: 169947

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

11 years agoMFC r242577:
eadler [Wed, 7 Nov 2012 00:41:07 +0000 (00:41 +0000)]
MFC r242577:
Make OK_TO_WRITE_TO_DISK an envrionment variable instead
of a compile time option.

While here, don't differ based on the existence of LOCK_EX
which doesn't seem to have ever made a difference on FreeBSD.

Approved by: cperciva (implicit)

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

11 years agoMFC r242576:
eadler [Wed, 7 Nov 2012 00:40:01 +0000 (00:40 +0000)]
MFC r242576:
Prefer the use of stdbool to custom defines.

Approved by: cperciva (implicit)

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

11 years agoMFC r241974
sbruno [Wed, 7 Nov 2012 00:30:25 +0000 (00:30 +0000)]
MFC r241974

Cleanup and rename some variables in libpmc and hwpmc.

Testing MFC of merge to root of stable/9 with peter@ lurking.

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

11 years agoMerge r241866 from head:
gavin [Tue, 6 Nov 2012 22:46:11 +0000 (22:46 +0000)]
Merge r241866 from head:

  Add German, French, Portuguese and Spanish names for the Spanish Dvorak
  keymap.

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