]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
11 years agoMerge r226396, r240605
melifaro [Fri, 30 Nov 2012 00:13:31 +0000 (00:13 +0000)]
Merge r226396, r240605

Make systat(1) accept fractional number of seconds.
Make old alarm(3)-based code use select(2).

Ability to specify small intervals can be very handy while
debugging traffic microbursts.

Note that locale-aware strtod(3) is used to parse delay which
is slightly different from ping.

Fix whitespace inconsistencies in systat(1).

Approved by: ed (r226396)

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

11 years agoMFC r242323, r242328:
mav [Thu, 29 Nov 2012 18:23:21 +0000 (18:23 +0000)]
MFC r242323, r242328:
Add basic BIO_DELETE support to GEOM RAID class for all RAID levels.

If at least one subdisk in the volume supports it, BIO_DELETE requests
will be propagated down.  Unfortunatelly, for RAID levels with redundancy
unmapped blocks will be mapped back during first rebuild/resync process.

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

11 years agoMFC r243336:
ae [Thu, 29 Nov 2012 17:41:19 +0000 (17:41 +0000)]
MFC r243336:
  Remove opt_inet.h, it isn't required here.

MFC r243337:
  Connect ip6_mroute kernel module to the build.

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

11 years agoMFC r243380:
hselasky [Wed, 28 Nov 2012 18:15:38 +0000 (18:15 +0000)]
MFC r243380:
Fix uplcom clear stall logic for PL2303HX.

Submitted by: Mark Johnston

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

11 years agoMFC r238079, r238493, r238717 and r242906:
hselasky [Wed, 28 Nov 2012 17:55:18 +0000 (17:55 +0000)]
MFC r238079, r238493, r238717 and r242906:
Add new USB ID's.

PR: usb/169789, usb/173503

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

11 years agoMFC r241406, r241502, r241884.
melifaro [Tue, 27 Nov 2012 20:16:37 +0000 (20:16 +0000)]
MFC r241406, r241502, r241884.

Do not check if found IPv4 rte is dynamic if net.inet.icmp.drop_redirect is
enabled. This eliminates one mtx_lock() per each routing lookup thus improving
performance in several cases (routing to directly connected interface or routing
to default gateway).

Icmp redirects should not be used to provide routing direction nowadays, even
for end hosts. Routers should not use them too (and this is explicitly restricted
in IPv6, see RFC 4861, clause 8.2).

Current commit changes rnh_machaddr function to 'stock' rn_match (and back) for every
AF_INET routing table in given VNET instance on drop_redirect sysctl change.

Eliminate code checking if found IPv6 rte is dynamic. IPv6 redirects
are using (different) ND-based approach described in RFC 4861. This change
is similar to r241406 which conditionally skips the same check in IPv4.

Cleanup documentation: cloning route support has been removed in r186119.

This change is part of bigger patch eliminating rte locking.

Sponsored by: Yandex LLC

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

11 years agoMFC r241708: Explicitly specify 'np' so that getty(8) does not
peterj [Tue, 27 Nov 2012 19:33:25 +0000 (19:33 +0000)]
MFC r241708:  Explicitly specify 'np' so that getty(8) does not
simulate even parity on local.9600.

PR: 76226
Approved by: jhb (mentor)

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

11 years agoMFC r238991:
jh [Tue, 27 Nov 2012 16:37:36 +0000 (16:37 +0000)]
MFC r238991:

Disallow sectorsize larger than MAXPHYS and mediasize smaller than
sectorsize.

PR: 169947

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

11 years agoMFC r243234:
mjg [Tue, 27 Nov 2012 01:35:29 +0000 (01:35 +0000)]
MFC r243234:

Fix possible fp reference leak in posix_openpt

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

11 years agoMFC r243007:
mjg [Tue, 27 Nov 2012 01:30:12 +0000 (01:30 +0000)]
MFC r243007:
enterpgrp: get rid of pgrp2 variable and use KASSERT directly on pgfind result.

pgrp2 was used only for debugging, but pgrp2 = pgfind(..) was present in compiled code

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

11 years agoMFC r242546:
wblock [Mon, 26 Nov 2012 18:11:41 +0000 (18:11 +0000)]
MFC r242546:

Add an example showing the use of gnop(8) to skip over header data.

PR: kern/145999
Reviewed by: mjg

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

11 years agoMFC r238943:
mav [Mon, 26 Nov 2012 16:19:27 +0000 (16:19 +0000)]
MFC r238943:
Add several performance optimizations to acpi_cpu_idle().

For C1 and C2 states use cpu_ticks() to measure sleep time instead of much
slower ACPI timer. We can't do it for C3, as TSC may stop there. But it is
less important there as wake up latency is high any way.

For C1 and C2 states do not check/clear bus mastering activity status, as
it is important only for C3. As side effect it can make CPU enter C2 instead
of C3 if last BM activity was two sleeps back (unlike one before), but
that may be even good because of collecting more statistics. Premature BM
wakeup from C3, entered because of overestimation, can easily be worse then
entering C2 from both performance and power consumption points of view.

Together on dual Xeon E5645 system on sequential 512 bytes read test this
change makes cpu_idle_acpi() as fast as simplest cpu_idle_hlt() and only
few percents slower then cpu_idle_mwait(), while deeper states are still
actively used during idle periods.

To help with diagnostics, add C-state type into dev.cpu.X.cx_supported.

PR:             kern/170021

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

11 years agoMFC r243072:
eadler [Mon, 26 Nov 2012 05:13:57 +0000 (05:13 +0000)]
MFC r243072:
Follow the behavior as specified in POSIX:

if (exists AND (NOT f_option) AND
((not_writable AND input_is_terminal) OR i_option))
prompt

in particular, add the test for input_is_terminal

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

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

11 years agoMFC r242426:
yongari [Mon, 26 Nov 2012 04:40:26 +0000 (04:40 +0000)]
MFC r242426:
  TCP/UDP checksum offloading feature for IP fragmented datagram was
  removed in r99417.  bge(4) controllers can do TCP checksum offload
  for IP fragmented datagrams but unlike ti(4), it lacks UDP checksum
  offloading for IP fragmented datagrams. The problem was bge(4)
  blindly requested TCP/UDP checksum for IP fragmented datagrams such
  that it resulted in corrupted UDP datagrams before r99417.
  Remove remaining code for TCP checksum offloading for IP fragmented
  datagrams which should have been removed in r99417.

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

11 years agoMFC r241983-241985:
yongari [Mon, 26 Nov 2012 04:34:53 +0000 (04:34 +0000)]
MFC r241983-241985:
r241983:
  Do not hardcode phy address. Multi-port controllers use different phy
  address.

r241984:
  Ethernet@WireSpeed is defined for 1000baseT adapter to establish a
  link at a lower speed so enabling it for fiber adapters is wrong.
  Fix the issue by setting BGE_PHY_NO_WIRESPEED such that brgphy(4)
  wouldn't enable the feature.
  While I'm here move PHY specific feature/bug configuration to new
  location(just before mii attach) for readability.

r241985:
  For fast ethernet controllers, Ethernet@WireSpeed is not defined so
  explicitly set BGE_PHY_NO_WIRESPEED flag.

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

11 years agoMFC r241438:
yongari [Mon, 26 Nov 2012 04:26:27 +0000 (04:26 +0000)]
MFC r241438:
  Add APE firmware support and improve firmware handshake procedure.
  This change will enable IPMI access on 5717/5718/5719/5720 and 5761
  controllers. Because ASF is not available when APE firmware is
  present, bge_allow_asf tunable is ignored when driver detects APE
  firmware.  Also bge(4) no longer performs two resets(one blind
  reset and the other reset with firmware in mind) in device attach.
  Now bge(4) performs a reset with enough information in bge_reset().
  The APE firmware also needs special handling to make suspend/resume
  work but it was not implemented yet.

  With this change, bge(4) should work on any 5717/5718/5719/5720
  controllers. Special thanks to Mike Hibler at Emulab who setup
  remote debugging on Dell R820. Without his help I couldn't be able
  to address several issues happened on Dell Rx20 systems. And many
  thanks to Broadcom for continuing to support FreeBSD!

  Submitted by: davidch (initial version)
  H/W donated by: Broadcom
  Tested by: many
  Tested on: Del R820/R720/R620/R420/R320 and HP Proliant DL 360 G8

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

11 years agoMFC r241437:
yongari [Mon, 26 Nov 2012 04:20:59 +0000 (04:20 +0000)]
MFC r241437:
  For 5717C/5719C/5720C and 57765 PHYs, do not perform any special
  handling(jumbo, wire speed etc) in brgphy_reset().  Touching
  BRGPHY_MII_AUXCTL register seems to confuse APE firmware such that
  it couldn't establish a link.

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

11 years agoMFC r241436:
yongari [Mon, 26 Nov 2012 04:11:12 +0000 (04:11 +0000)]
MFC r241436:
  Rework controller reset procedure. Previously driver saved
  BGE_PCI_PCISTATE register before issuing global reset. After
  issuing reset, it reads BGE_PCI_PCISTATE register again and
  compares the saved register value and current value. It was used to
  know whether the global reset operation was completed or not.
  Unfortunately, this logic caused several issues on recent BCM5717/
  5718/5719 and BCM5720 controllers. It seems APE firmware accesses
  some registers while global reset is in progress such that reading
  BGE_PCI_PCISTATE register after reset does not yield old pre-reset
  state value. This resulted in consuming too much time in global
  reset and sometimes it couldn't successfully complete reset.

  The BGE_MISCCFG_RESET_CORE_CLOCKS of BGE_MISC_CFG register is
  self-clearing bit so driver is able to know the reset completion.
  But the core-lock reset will disable indirect/flat/standard access
  modes such that driver cannot poll BGE_MISCCFG_RESET_CORE_CLOCKS
  bit of BGE_MISC_CFG register. So just wait enough time for
  core-clock reset to complete.
  Data sheet says driver should wait 100us for PCI/PCI-X devices and
  100ms for PCIe devices. I chose 1ms for PCI/PCI-X since this value
  was used for many years in bge(4). For PCIe devices, use 100ms as
  recommended by data sheet.

  bge_chipinit() also cleared BGE_MAC_MODE register which shall clear
  firmware configured mode information. I think this will result in
  losing ASF/IPMI link in device attachment. Let bge_reset() honor
  firmware configured BGE_MAC_MODE register and don't announce driver
  is UP in bge_reset(). Firmware should have control over driver until
  it's fully initialized by driver.

  While I'm here, enable workaround for PCI-X BCM5704 A0 in
  bge_reset(). This will prevent internal arbitration logic from
  switching to the other DMA engine after a retry cycle.

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

11 years agoMFC r241388-241393:
yongari [Mon, 26 Nov 2012 02:42:19 +0000 (02:42 +0000)]
MFC r241388-241393:
r241388:
  If the maximum payload size is 256 bytes or more, set the DMA write
  water mark to 256 bytes.  Otherwise controller will encounter DMA
  write under run errors and would result in RX DMA hang. If the
  maximum payload size is 128 bytes, the water mark is set to 128
  bytes as usual.
  While here, set maximum read request size to 2048 for BCM5719/BCM5720.
  For other PCIe devices, use 4096. And reprogram the maximum read
  request size whenever device reset is performed.

r241389:
 On PHY write error use hex number to show the value.
 Add more comments.

r241390:
  Honor PHY type fiber for BCM5717/BCM5718/BCM5719/BCM5720.

r241391:
  Do not force PCIe 1.0a mode in device reset on BCM5717 and newer
  controllers. BCM5785 does not require PCI 1.0a mode as well during
  reset.

r241392:
  Fix a long standing VCPU reset sequence bug on BCM5906.
  The VCPU(Virtual CPU) of BCM5906 is used to provide a mechanism to
  control the bootcode execution and to pick up configuration data
  stored inside the EEPROM.
  The bootcode of BCM5906 will check the BGE_VCPU_STATUS_DRV_RESET
  bit to decide which booting procedure to choose.
  Data sheet indicates the VCPU of BCM5906 should set
  BGE_VCPU_STATUS_DRV_RESET bit *before* VCPU reset or global reset.

r241393:
  Remove unnecessary delay. I don't see any comments in data sheet
  that requires 10ms delay after device reset.  Because that code was
  there from day 1, I guess it was added to give enough settlement
  time after updating BGE_MAC_MODE register.
  The recommended delay time for BGE_MAC_MODE after updating is 40us
  and it was already done in r241219.

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

11 years agoMFC r241215-241216,241219-241220,241341,241343:
yongari [Mon, 26 Nov 2012 02:32:32 +0000 (02:32 +0000)]
MFC r241215-241216,241219-241220,241341,241343:
r241215:
  Don't touch EMAC Mode and TX/RX MAC Mode register when driver is
  not running.

r241216:
  APE firmware touches EMAC Mode and TX/RX MAC Mode registers to keep
  the MAC connected to the outside world.  So keep the accesses
  atomic.

r241219:
  Add 40 microseconds delay after updating EMAC Mode register as
  recommended by Broadcom data sheet.

r241220:
  Follow Broadcom datasheet:
   Delay 100 microseconds after enabling transmit MAC.
   Delay 10 microseconds after enabling receive MAC.

r241341:
  Limit applying TX data corruption and FIFO workaround to BCM5719
  A0. It's believed BCM5720 does not have the issue.

r241343:
  Rework device detach. While here, move driver lock/callout
  initialization to the beginning of device attach for readability.

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

11 years agoMFC r242574: zfsctl_snapdir_lookup: obtain a snapname in the remount case
avg [Sat, 24 Nov 2012 13:00:57 +0000 (13:00 +0000)]
MFC r242574: zfsctl_snapdir_lookup: obtain a snapname in the remount case

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

11 years agoMFC r242573: zfs: set MNTK_EXTENDED_SHARED flag
avg [Sat, 24 Nov 2012 12:59:02 +0000 (12:59 +0000)]
MFC r242573: zfs: set MNTK_EXTENDED_SHARED flag

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

11 years agoMFC r242572: opensolaris compat: clear VI_MOUNT before returning if
avg [Sat, 24 Nov 2012 12:56:21 +0000 (12:56 +0000)]
MFC r242572: opensolaris compat: clear VI_MOUNT before returning if
mount_snapshot fails

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

11 years agoMFC r242571: zfs_vnode_forget: dispose of larvae vnode using public vfs
avg [Sat, 24 Nov 2012 12:53:38 +0000 (12:53 +0000)]
MFC r242571: zfs_vnode_forget: dispose of larvae vnode using public vfs
api (mostly)

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

11 years agoMFC r225153: We need to unlock and destroy vnode attached to znode which
avg [Sat, 24 Nov 2012 12:51:57 +0000 (12:51 +0000)]
MFC r225153: We need to unlock and destroy vnode attached to znode which
we are freeing.

MFC slacker: pjd

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

11 years agoMFC r242570: zfs_umount: no need to set MNTK_UNMOUNTF here, dounmount
avg [Sat, 24 Nov 2012 12:44:25 +0000 (12:44 +0000)]
MFC r242570: zfs_umount: no need to set MNTK_UNMOUNTF here, dounmount
handles that

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

11 years agoMFC r242569: opensolaris_lookup: use vfs_busy in traverse before calling VFS_ROOT
avg [Sat, 24 Nov 2012 12:42:42 +0000 (12:42 +0000)]
MFC r242569: opensolaris_lookup: use vfs_busy in traverse before calling VFS_ROOT

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

11 years agoMFC r242568: zfs_vnode_lock: no need to double-guess caller's intentions here
avg [Sat, 24 Nov 2012 12:40:43 +0000 (12:40 +0000)]
MFC r242568: zfs_vnode_lock: no need to double-guess caller's intentions here

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

11 years agoMFC r243213: spa_import_rootpool: fall back to use configuration from zpool.cache
avg [Sat, 24 Nov 2012 12:37:48 +0000 (12:37 +0000)]
MFC r243213: spa_import_rootpool: fall back to use configuration from zpool.cache

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

11 years agoMFC r242862: zfs_ioc_destroy_snaps_nvl: remove disk device entries for
avg [Sat, 24 Nov 2012 12:35:04 +0000 (12:35 +0000)]
MFC r242862: zfs_ioc_destroy_snaps_nvl: remove disk device entries for
zvol snapshots

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

11 years agoMFC r232486
remko [Fri, 23 Nov 2012 21:27:26 +0000 (21:27 +0000)]
MFC r232486

Add an ifconfig carp option that enables users to set
the state of the carp cluster.

This is a direct commit to stable/9 because -HEAD's
code is very different. I discussed this with Gleb
and the reason for this is that since we do not
touch the kernel itself and are not adding very
weird or confusing things, we can commit this to the
stable branch directly.

The options 'master' and 'backup' are now available,
which enables the administrator to force a node into
the backup or master state on the cluster. Ofcourse
preempt has to be disabled otherwise the master node
will become master again.

One can do that with:

sysctl net.inet.carp.preempt=0

After that one can schedule maintenance on the node
normally running as the master and such.

PR:  100956
Discussed with: glebius

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

11 years agoMFC: r225977, r242867, r242868, r242869
nyan [Fri, 23 Nov 2012 15:44:04 +0000 (15:44 +0000)]
MFC: r225977, r242867, r242868, r242869

  MFi386: r225936

    Add some improvements in the idle table callbacks:
    - Replace instances of manual assembly instruction "hlt" call
      with halt() function calling.
    - In cpu_idle_mwait() avoid races in check to sched_runnable() using
      the same pattern used in cpu_idle_hlt() with the 'hlt' instruction.
    - Add comments explaining the logic behind the pattern used in
      cpu_idle_hlt() and other idle callbacks.

  MFi386: r211924

    Register an interrupt vector for DTrace return probes.

  Fix some KASSERTs.
  They are missing changes from r208833, r227394 and r227442.

  Reduce diffs against i386.

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

11 years agoMFC: r239063, r239064, r239069, r240852, r240854
nyan [Fri, 23 Nov 2012 13:36:09 +0000 (13:36 +0000)]
MFC: r239063, r239064, r239069, r240852, r240854

  - boot2: bunch of variables are turned into uint8_t.
  - boot2: Remove unnecessary initializations.
  - loader: replace ugly inb/outb re-implementations with cpufunc.h.
  - Reduce diffs against i386.

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

11 years agoMFC: r242855, r242865
nyan [Fri, 23 Nov 2012 13:18:26 +0000 (13:18 +0000)]
MFC: r242855, r242865

  - use -march=i386 for both i386 and amd64 builds.
  - cosmetic changes to reduce diffs against i386.

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

11 years agoFix multiple Denial of Service vulnerabilities with named(8).
simon [Thu, 22 Nov 2012 22:52:15 +0000 (22:52 +0000)]
Fix multiple Denial of Service vulnerabilities with named(8).

Fix insufficient message length validation for EAP-TLS messages.

Fix Linux compatibility layer input validation error.

Security: FreeBSD-SA-12:06.bind
Security: FreeBSD-SA-12:07.hostapd
Security: FreeBSD-SA-12:08.linux
Security: CVE-2012-4244, CVE-2012-5166, CVE-2012-4445, CVE-2012-4576
Approved by: re
Approved by: security-officer

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

11 years agoMFC r243028:
ae [Thu, 22 Nov 2012 00:25:57 +0000 (00:25 +0000)]
MFC r243028:
  zoneid has unsigned type.

MFC r243029:
  SCOPE6_LOCK protects V_sid_default, no need to acquire it without
  any access to V_sid_default.

MFC r243031:
  if_afdata lock was converted from mutex to rwlock a long ago, so we can
  replace IF_AFDATA_LOCK() macro depending to the access type.

MFC r243148:
  Reduce the overhead of locking, use IF_AFDATA_RLOCK() when we are doing
  simple lookups.

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

11 years agoMFC r243000:
eadler [Wed, 21 Nov 2012 01:01:18 +0000 (01:01 +0000)]
MFC r243000:
Add support for CIR1000 - Cirrus Logic V34 to the uart driver

Approved by: cperciva (implicit)

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

11 years agoMFC r243241:
eadler [Wed, 21 Nov 2012 00:40:26 +0000 (00:40 +0000)]
MFC r243241:
Modernize parts of the ports.7 manual page.

Approved by: cperciva (implicit)

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

11 years agoMFC r243240:
eadler [Wed, 21 Nov 2012 00:31:56 +0000 (00:31 +0000)]
MFC r243240:
Use the macro for standard error return values.

.Dd not bumped because there is no important content change.

Obtained from: DragonflyBSD
Approved by: cperciva (implicit)

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

11 years agoMFC r240997:
trociny [Mon, 19 Nov 2012 21:11:58 +0000 (21:11 +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/8@243309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241648: Avoid potential bad pointer dereference.
emaste [Mon, 19 Nov 2012 16:39:09 +0000 (16:39 +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/8@243287 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243081:
eadler [Mon, 19 Nov 2012 04:08:10 +0000 (04:08 +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/8@243257 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:30:04 +0000 (12:30 +0000)]
MFC r241785: boot: use -march=i386 for both i386 and amd64 builds

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@243218 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:17:13 +0000 (12:17 +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/8@243216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r243037:
dim [Sat, 17 Nov 2012 23:39:36 +0000 (23:39 +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/8@243199 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242422:
mav [Fri, 16 Nov 2012 03:08:23 +0000 (03:08 +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/8@243128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242156:
mav [Fri, 16 Nov 2012 03:05:27 +0000 (03:05 +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/8@243126 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241144, r241160:
mav [Fri, 16 Nov 2012 03:02:07 +0000 (03:02 +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/8@243124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r232380:
mav [Fri, 16 Nov 2012 02:55:03 +0000 (02:55 +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/8@243120 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC 242784:
n_hibma [Thu, 15 Nov 2012 15:49:37 +0000 (15:49 +0000)]
MFC 242784:
  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/8@243087 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242417:
mav [Thu, 15 Nov 2012 06:04:39 +0000 (06:04 +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/8@243065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242357:
mav [Thu, 15 Nov 2012 05:58:37 +0000 (05:58 +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/8@243063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

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

11 years agoMFC r240762:
mav [Thu, 15 Nov 2012 05:46:02 +0000 (05:46 +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/8@243059 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242314:
mav [Thu, 15 Nov 2012 05:34:14 +0000 (05:34 +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/8@243057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242814:
eadler [Wed, 14 Nov 2012 00:34:10 +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/8@243009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMerge of current of tzdata2012j
edwin [Tue, 13 Nov 2012 21:20:30 +0000 (21:20 +0000)]
Merge of current of tzdata2012j

- Libya went to Standard Time on 10 November 2012

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

11 years agoMFC r242372:
mjg [Tue, 13 Nov 2012 19:20:57 +0000 (19:20 +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/8@242991 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC 228304:
hselasky [Tue, 13 Nov 2012 17:16:03 +0000 (17:16 +0000)]
MFC 228304:
Correct some bInterval USB template descriptor values.

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

11 years agoMFC r240750, r241987 and r242126:
hselasky [Tue, 13 Nov 2012 17:11:36 +0000 (17:11 +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/8@242986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238551 and r239617:
hselasky [Tue, 13 Nov 2012 17:04:44 +0000 (17: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/8@242985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r238466 and r242777:
hselasky [Tue, 13 Nov 2012 17:01:58 +0000 (17:01 +0000)]
MFC r238466 and r242777:
Implement non-PHY support in the udav driver.

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

11 years agoMFC r242127, r240078, r240609, r241988, r242129, r242223, r242438,
hselasky [Tue, 13 Nov 2012 16:59:42 +0000 (16:59 +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.

Fix a memory leak of mixer data at USB audio device detach.

PR:   usb/171254

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

11 years agoMF9: MFC: r242137: Iterate rather than use recursion.
obrien [Tue, 13 Nov 2012 06:12:26 +0000 (06:12 +0000)]
MF9: MFC: r242137: Iterate rather than use recursion.
     We can blow out the kernel stack if there is a long chain of fork(2)s.

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

11 years agoMerge of current of 242925, tzdata2012i
edwin [Mon, 12 Nov 2012 20:48:52 +0000 (20:48 +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/8@242930 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:14:01 +0000 (14:14 +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/8@242917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoadd support for newer Lenovo ThinkPads to acpi_ibm
bapt [Mon, 12 Nov 2012 14:05:40 +0000 (14:05 +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/8@242915 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r242625:
dim [Mon, 12 Nov 2012 07:47:19 +0000 (07:47 +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/8@242909 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/8@242883 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:18 +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/8@242861 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:36 +0000 (12:06 +0000)]
MFC r241773: zfs: wait in arc_lowmem only if curproc == pageproc

git-svn-id: svn://svn.freebsd.org/base/stable/8@242859 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:22 +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/8@242857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

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

Fix possible spurious sbunlock in sctp_sorecvmsg.

Approved by: trasz (mentor)

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

11 years agoMFC r242462:
eadler [Fri, 9 Nov 2012 00:35:54 +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/8@242809 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:50:33 +0000 (13:50 +0000)]
MFC r242460: fopen(3): Mention that the "x" mode option is from C11.

git-svn-id: svn://svn.freebsd.org/base/stable/8@242773 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:43:20 +0000 (13:43 +0000)]
MFC r242429: fcntl(2): Fix typos in name of constant "F_DUP2FD_CLOEXEC".

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

11 years agoMFC r242425:
yongari [Thu, 8 Nov 2012 02:08:42 +0000 (02:08 +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/8@242740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

11 years agoMFC r241340:
yongari [Tue, 6 Nov 2012 02:20:44 +0000 (02:20 +0000)]
MFC r241340:
  Fix typo. Check against number of allocated MSI-X vectors.
  There is no ale(4) controller that supports MSI-X so this is not
  real issue.

  PR: kern/171825

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

11 years agoMFC r241329:
mav [Tue, 6 Nov 2012 02:08:09 +0000 (02:08 +0000)]
MFC r241329:
Make graid command line a bit more friendly by allowing volume name or
provider name to be specified instead of geom name (first argument in all
subcommands except label).  In most cases there is only one array used
any way, so it is not really useful to make user type ugly geom names like
Intel-f0bdf223 or SiI-732c2b9448cf.  Though they can be used in some cases.

Sponsored by:   iXsystems, Inc.

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

11 years agoMFC r242348:
yongari [Tue, 6 Nov 2012 01:04:46 +0000 (01:04 +0000)]
MFC r242348:
  TSO engine of L1 requires a separate DMA descriptor for TCP
  payload.  This means driver has to split a TX buffer into two
  pieces of TX buffers when the TX buffer contains both
  ethernet/IP/TCP header and partial TCP payload.  The controller
  does not require all header should be in a TX buffer but driver
  forced it to compute IP/TCP header size/offset which is required
  parameter to configure DMA descriptor for TSO.
  While here, slightly reorder DMA descriptor setup to enhance
  readability and remove unnecessary code for TSO(upper stack never
  requests TSO when the frame length is less than or equal to MTU).

  Reported by: Yamagi Burmeister <lists <> yamagi dot org>
  Tested by: Yamagi Burmeister <lists <> yamagi dot org>

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

11 years agoMFC r242514,r242541:
eadler [Tue, 6 Nov 2012 00:55:43 +0000 (00:55 +0000)]
MFC r242514,r242541:

Revert the change that makes less default.

Since I've committed this I've receieved roughly an equal
amount of email thanking me for making this change
and asking me to revert it.

I've resisted making this change because
new users tend to prefer less over more
and these users are the least likely to know
how to change the PAGER on their own.

Requested by: many
Objected to: just as many
Decision made by: core

====
Change default prompt to show ~ again for the home directory

Approved by: cperciva (implicit)

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

11 years agoMFH r225815 (partial): adjust copyright statement
des [Mon, 5 Nov 2012 12:57:07 +0000 (12:57 +0000)]
MFH r225815 (partial): adjust copyright statement

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

11 years agoMFH r240496: use libmd if and only if OpenSSL is not available
des [Mon, 5 Nov 2012 12:42:02 +0000 (12:42 +0000)]
MFH r240496: use libmd if and only if OpenSSL is not available

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

11 years agoMFH r225813, r233648: man page fixes
des [Mon, 5 Nov 2012 10:45:37 +0000 (10:45 +0000)]
MFH r225813, r233648: man page fixes
MFH r234837: avoid busy-loop on slow connections
MFH r234838: don't reuse credentials when redirected to another host
MFH r240496: use libmd if and only if OpenSSL is not available

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

11 years agoMFC r241538: acpi_thermal: when _ACx is tripped, all _ALi i>= x should be on
avg [Sun, 4 Nov 2012 13:42:34 +0000 (13:42 +0000)]
MFC r241538: acpi_thermal: when _ACx is tripped, all _ALi i>= x should be on

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

11 years agoMFC r241299: boot/console: handle consoles that fail to probe
avg [Sun, 4 Nov 2012 13:32:26 +0000 (13:32 +0000)]
MFC r241299: boot/console: handle consoles that fail to probe

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

11 years agoMFC r241286,r242135: zfs_mount: taste geom providers for root pool config
avg [Sun, 4 Nov 2012 13:30:04 +0000 (13:30 +0000)]
MFC r241286,r242135: zfs_mount: taste geom providers for root pool config

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

11 years agoMFC r241844:
eadler [Sun, 4 Nov 2012 01:20:57 +0000 (01:20 +0000)]
MFC r241844:
remove duplicate semicolons where possible.

Approved by: cperciva (implicit)

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

11 years agoMFC r242452:
eadler [Sun, 4 Nov 2012 00:30:42 +0000 (00:30 +0000)]
MFC r242452:
The test fails with "exit 1" if /usr/games/fortune doesn't actually
exist.  Fix that.

PR: conf/71994
Approved by: cperciva (implicit)

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

11 years agoMFC r225191:
jamie [Fri, 2 Nov 2012 01:32:22 +0000 (01:32 +0000)]
MFC r225191:

 Delay the recursive decrement of pr_uref when jails are made invisible
 but not removed; decrement it instead when the child jail actually
 goes away. This avoids letting the counter go below zero in the case
 where dying (pr_uref==0) jails are "resurrected", and an associated
 KASSERT panic.

PR: kern/173120
Submitted by: Steven Hartland

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

11 years agoMFC r242085:
jimharris [Thu, 1 Nov 2012 20:47:18 +0000 (20:47 +0000)]
MFC r242085:

For PCI Express capability, if max link width is greater than zero, print
the current and max link speed.

Sponsored by: Intel

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

11 years agoMFC r238653: Use proper error message when fstat(2) fails on stdout.
jh [Wed, 31 Oct 2012 17:01:56 +0000 (17:01 +0000)]
MFC r238653: Use proper error message when fstat(2) fails on stdout.

PR: bin/159746

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

11 years agoMFC r238652: style(9).
jh [Wed, 31 Oct 2012 17:00:36 +0000 (17:00 +0000)]
MFC r238652: style(9).

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

11 years agoMFC r241735:
zont [Tue, 30 Oct 2012 21:05:06 +0000 (21:05 +0000)]
MFC r241735:
- Update cachelimit after hashsize and bucketlimit were set.

Approved by: kib (mentor)

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

11 years agoMFC r242087:
np [Tue, 30 Oct 2012 19:24:05 +0000 (19:24 +0000)]
MFC r242087:

Initialize the response queue mutex a bit earlier to avoid a panic that
occurs if t3_sge_alloc_qset fails and then t3_free_qset attempts to
destroy an uninitialized mutex.

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

11 years agoMFC r242152:
mdf [Tue, 30 Oct 2012 17:05:28 +0000 (17:05 +0000)]
MFC r242152:

Const-ify the zone name argument to uma_zcreate(9).

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

11 years agoMFC r241917:
eadler [Tue, 30 Oct 2012 15:25:23 +0000 (15:25 +0000)]
MFC r241917:
Now that device disabling is generic, remove extraneous code from the
device drivers that used to provide this feature.

Approved by: cperciva (implicit)

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

11 years agoMFC r241851:
eadler [Tue, 30 Oct 2012 03:30:00 +0000 (03:30 +0000)]
MFC r241851:
Add Danish keyboard model for macbooks to syscons.

(not verified to be accurate)

PR: conf/146793
Approved by: cperciva (implicit)

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