]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
11 years agoChange default behaviour of ld(1) to not recursively copy DT_NEEDED
Baptiste Daroussin [Wed, 31 Jul 2013 12:35:06 +0000 (12:35 +0000)]
Change default behaviour of ld(1) to not recursively copy DT_NEEDED

This is the default behaviour of the newer binutils as well as most alternative linkers.
All the ports tree has been fixed to be able to link properly with this new behaviour.

11 years agoMake two buffer variables static for now. It is not safe to
Xin LI [Wed, 31 Jul 2013 07:09:35 +0000 (07:09 +0000)]
Make two buffer variables static for now.  It is not safe to
reference stack memory after return.

MFC after: 2 weeks

11 years agoResolve fflag with realpath().
Xin LI [Wed, 31 Jul 2013 07:06:58 +0000 (07:06 +0000)]
Resolve fflag with realpath().

MFC after: 2 weeks

11 years agoAdd definitions for the Mailbox, Spinlock and PRU-ICSS devices.
Rui Paulo [Wed, 31 Jul 2013 06:23:10 +0000 (06:23 +0000)]
Add definitions for the Mailbox, Spinlock and PRU-ICSS devices.

11 years agoCleanup the allocations when the attachment fails.
Rui Paulo [Wed, 31 Jul 2013 06:05:34 +0000 (06:05 +0000)]
Cleanup the allocations when the attachment fails.

11 years agoInitialisation routines for the mailbox, spinlock and PRU-ICSS clocks.
Rui Paulo [Wed, 31 Jul 2013 05:52:03 +0000 (05:52 +0000)]
Initialisation routines for the mailbox, spinlock and PRU-ICSS clocks.

11 years agoDisplay SGE tunables in the sysctl tree.
Navdeep Parhar [Wed, 31 Jul 2013 05:12:51 +0000 (05:12 +0000)]
Display SGE tunables in the sysctl tree.

dev.t5nex.0.fl_pktshift: payload DMA offset in rx buffer (bytes)
dev.t5nex.0.fl_pad: payload pad boundary (bytes)
dev.t5nex.0.spg_len: status page size (bytes)
dev.t5nex.0.cong_drop: congestion drop setting

Discussed with: scottl

11 years agoDocument the -S flag to fsck_ffs
Scott Long [Wed, 31 Jul 2013 04:51:12 +0000 (04:51 +0000)]
Document the -S flag to fsck_ffs

Obtained from: Netflix

11 years agoWhen using tcpdump -I -i wlanN and wlanN is not a monitor mode VAP,
Rui Paulo [Wed, 31 Jul 2013 02:13:18 +0000 (02:13 +0000)]
When using tcpdump -I -i wlanN and wlanN is not a monitor mode VAP,
tcpdump will print an error message saying rfmon is not supported.
Give a concise explanation as to how one might solve this problem by
creating a monitor mode VAP.

11 years agoRemove duplicate SRCS include block. Spotted by jmallett.
Justin Hibbits [Wed, 31 Jul 2013 01:42:59 +0000 (01:42 +0000)]
Remove duplicate SRCS include block.  Spotted by jmallett.

11 years agoAdd the macio attachment for wi(4). Partially obtained from NetBSD.
Justin Hibbits [Wed, 31 Jul 2013 01:13:29 +0000 (01:13 +0000)]
Add the macio attachment for wi(4).  Partially obtained from NetBSD.

Reviewed by: adrian
Obtained from: NetBSD (partially)

11 years agoFix r253823. Some WIP patches snuck in.
Scott Long [Tue, 30 Jul 2013 23:50:09 +0000 (23:50 +0000)]
Fix r253823.  Some WIP patches snuck in.

Submitted by: zont

11 years agoCreate a knob, kern.ipc.sfreadahead, that allows one to tune the amount of
Scott Long [Tue, 30 Jul 2013 23:26:05 +0000 (23:26 +0000)]
Create a knob, kern.ipc.sfreadahead, that allows one to tune the amount of
readahead that sendfile() will do.  Default remains the same.

Obtained from: Netflix
MFC after: 3 days

11 years agoAdd a 'surrender' mode to fsck_ffs. With the -S flag, once hard read errors
Scott Long [Tue, 30 Jul 2013 22:57:12 +0000 (22:57 +0000)]
Add a 'surrender' mode to fsck_ffs.  With the -S flag, once hard read errors
are encountered, the fsck will stop instead of wasting time chewing through
possibly other errors.

Obtained from: Netflix
MFC after: 3 days

11 years agoMFV r253783:
Xin LI [Tue, 30 Jul 2013 21:35:02 +0000 (21:35 +0000)]
MFV r253783:

Skip eviction step of processing free records when doing ZFS
receive to avoid the expensive search operation of non-existent
dbufs in dn_dbufs.

Illumos ZFS issues:
  3834 incremental replication of 'holey' file systems is slow

MFC after:      2 weeks

11 years agoMFV r253782:
Xin LI [Tue, 30 Jul 2013 21:20:12 +0000 (21:20 +0000)]
MFV r253782:

To quote Illumos issue #3888:

When 'zfs recv -F' is used with an incremental recv it rolls
back any changes made since the last snapshot in case new
changes were made to the file system while the recv is in
progress (without -F the recv would fail when it does it's
final check to commit the recv-ed data as the recv-ed data
conflicts with the newly written data).

However, if there is a snapshot taken after the recv began
rolling back to the 'latest' snapshot will not help and the
recv will still fail. 'zfs recv -F' should be extended to
destroy any snapshots created since the source snapshot when
finishing the recv (effectively rolling back through all
snapshots, instead of just to the latest snapshot).

Illumos ZFS issues:
  3888 zfs recv -F should destroy any snapshots created since the
       incremental source

MFC after: 2 weeks

11 years agoMFV r253781 + r253871:
Xin LI [Tue, 30 Jul 2013 21:02:09 +0000 (21:02 +0000)]
MFV r253781 + r253871:

Illumos ZFS issues:
  3894 zfs should not allow snapshot of inconsistent dataset

MFC after: 2 weeks

11 years agoMFV r253784:
Steven Hartland [Tue, 30 Jul 2013 20:45:27 +0000 (20:45 +0000)]
MFV r253784:

Fix zfs send -D hang after processing requiring a CTRL+C to interrupt due to
pthread_join prior to fd close.

This was introduced by r251646 (MFV r251644)

Illumos ZFS issue:
  3909 "zfs send -D" does not work

MFC after: 1 day

11 years agoCommit a missed file in r253781:
Xin LI [Tue, 30 Jul 2013 20:45:27 +0000 (20:45 +0000)]
Commit a missed file in r253781:

Update vendor/illumos/dist and vendor-sys/illumos/dist
to illumos-gate 14089:520f3adc5d46:

Illumos ZFS issues:
  3894 zfs should not allow snapshot of inconsistent dataset

11 years agoMFV r253780:
Xin LI [Tue, 30 Jul 2013 20:37:32 +0000 (20:37 +0000)]
MFV r253780:

To quote Illumos #3875:

The problem here is that if we ever end up in the error
path, we drop the locks protecting access to the zfsvfs_t
prior to forcibly unmounting the filesystem. Because z_os
is NULL, any thread that had already picked up the zfsvfs_t
and was sitting in ZFS_ENTER() when we dropped our locks
in zfs_resume_fs() will now acquire the lock, attempt to
use z_os, and panic.

Illumos ZFS issues:
  3875 panic in zfs_root() after failed rollback

MFC after: 2 weeks

11 years agoMFC'ing to 9.2.
David E. O'Brien [Tue, 30 Jul 2013 19:21:36 +0000 (19:21 +0000)]
MFC'ing to 9.2.

11 years agoCheck for ipmi_attached in ipmi_isa_probe as a suggested alternative to
Sean Bruno [Tue, 30 Jul 2013 18:54:24 +0000 (18:54 +0000)]
Check for ipmi_attached in ipmi_isa_probe as a suggested alternative to
ipmi_isa_attach.  This keeps unintended but harmless noise about "ipmi1"
from appearing in the boot up sequence.

Submitted by: jbh@ (suggested by)
Sponsored by: Yahoo! Inc.

11 years agoempirical testing showed that 3 seconds is just too slow for GET_DEVICE_ID
Sean Bruno [Tue, 30 Jul 2013 18:44:29 +0000 (18:44 +0000)]
empirical testing showed that 3 seconds is just too slow for GET_DEVICE_ID
to return on newer Dell hardware.  Bump to 6 second timeouts until someone
has a better idea on how to handle this

Reviewed by: jhb@
MFC after: 2 weeks
Sponsored by: Yahoo! Inc.

11 years agoAfter discussions, revert svn r253708.
Sean Bruno [Tue, 30 Jul 2013 18:41:36 +0000 (18:41 +0000)]
After discussions, revert svn r253708.

Changelog for 253708 was completely wrong and the code implemented something
non-standard for the wrong reasons.

Sponsored by: Yahoo! Inc.

11 years agogrep -i does not work for simple patterns and single byte locales, like
Andrey A. Chernov [Tue, 30 Jul 2013 18:16:43 +0000 (18:16 +0000)]
grep -i does not work for simple patterns and single byte locales, like
LANG=ru_RU.KOI8-R grep -i <some single KOI8-R letter>
Fix it.

MFC after:      3 days

11 years agoFix a printf typo.
Scott Long [Tue, 30 Jul 2013 17:35:06 +0000 (17:35 +0000)]
Fix a printf typo.

Obtained from: LSI

11 years agoApply a casting sledgehammer.
John Baldwin [Tue, 30 Jul 2013 16:20:54 +0000 (16:20 +0000)]
Apply a casting sledgehammer.

Submitted by: dhw

11 years agoUnbreak sparc64 LINT. Need to fix this correctly at some point in the future.
Rui Paulo [Tue, 30 Jul 2013 16:17:30 +0000 (16:17 +0000)]
Unbreak sparc64 LINT. Need to fix this correctly at some point in the future.

11 years agoAllow three IOCTLs to be used on suspended pool, restoring state that
Alexander Motin [Tue, 30 Jul 2013 14:50:44 +0000 (14:50 +0000)]
Allow three IOCTLs to be used on suspended pool, restoring state that
existed before IOCTL code refactoring merged change 4445fffb from illumos
at r248571.

This change allows `zpool clear` to be used again to recover suspended pool.
It seems the only was supposed by the code to restore pool operation after
reconnecting lost disks that were required for data completeness.  There
are still cases where `zpool clear` command can just safely stuck due to
deadlocks inside ZFS kernel part, but probably that is better then having
no chances to recover at all.

11 years agoInclude an Accept header in requests.
Dag-Erling Smørgrav [Tue, 30 Jul 2013 13:07:55 +0000 (13:07 +0000)]
Include an Accept header in requests.

PR: kern/180917
MFC after: 1 week

11 years agoAdd Michael Gmelin's name to the copyright statement.
Dag-Erling Smørgrav [Tue, 30 Jul 2013 13:05:51 +0000 (13:05 +0000)]
Add Michael Gmelin's name to the copyright statement.

11 years agoAdd NO_RC16 quirk to make da driver avoid using READ CAPACITY(16) command
Alexander Motin [Tue, 30 Jul 2013 13:00:09 +0000 (13:00 +0000)]
Add NO_RC16 quirk to make da driver avoid using READ CAPACITY(16) command
if possible.  Use it for Kingston JetFlash USB sticks, that are known to
return garbage in response to that command.

11 years agoPull in r186696 from upstream clang trunk:
Dimitry Andric [Tue, 30 Jul 2013 12:33:21 +0000 (12:33 +0000)]
Pull in r186696 from upstream clang trunk:

  This patch implements __get_cpuid_max() as an inline and __cpuid()
  and __cpuid_count() as macros to be compatible with GCC's cpuid.h.
  It also adds bit_<foo> constants for the various feature bits as
  described in version 039 (May 2011) of Intel's SDM Volume 2 in the
  description of the CPUID instruction.  The list of bit_<foo>
  constants is a bit exhaustive (GCC doesn't do near this many).  More
  bits could be added from a newer version of SDM if desired.

  Patch by John Baldwin!

This should fix several ports which depend on this functionality being
available.

MFC after: 1 week

11 years agoFix up paths after r253790.
Sergey Kandaurov [Tue, 30 Jul 2013 08:09:48 +0000 (08:09 +0000)]
Fix up paths after r253790.
While here, use $? contraction.

Reported by: O. Hartmann

11 years agoMove runfw to modules/usb.
Rui Paulo [Tue, 30 Jul 2013 02:26:06 +0000 (02:26 +0000)]
Move runfw to modules/usb.
While there, respect MK_SOURCELESS_UCODE.

Discussed with: kevlo

11 years agoImport OpenBSD's rsu(4) WLAN driver.
Rui Paulo [Tue, 30 Jul 2013 02:07:57 +0000 (02:07 +0000)]
Import OpenBSD's rsu(4) WLAN driver.
Support chipsets are the Realtek RTL8188SU, RTL8191SU, and RTL8192SU.

Many thanks to Idwer Vollering for porting/writing the man page and for
testing.

Reviewed by: adrian, hselasky
Obtained from: OpenBSD
Tested by: kevlo, Idwer Vollering <vidwer at gmail.com>

11 years agoThe errata 727915 requires a different workaround for r2p0, we have to
Olivier Houchard [Mon, 29 Jul 2013 21:45:39 +0000 (21:45 +0000)]
The errata 727915 requires a different workaround for r2p0, we have to
explicitely clean/invalidate every cache line using way/set operations.

11 years agoRemove useless cache operations.
Olivier Houchard [Mon, 29 Jul 2013 21:32:57 +0000 (21:32 +0000)]
Remove useless cache operations.

11 years agoDecouple yarrow from random(4) device.
David E. O'Brien [Mon, 29 Jul 2013 20:58:09 +0000 (20:58 +0000)]
Decouple yarrow from random(4) device.

* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option.
  The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow.

* random(4) device doesn't really depend on rijndael-*.  Yarrow, however, does.

* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
  random_adaptor is basically an adapter that plugs in to random(4).
  random_adaptor can only be plugged in to random(4) very early in bootup.
  Unplugging random_adaptor from random(4) is not supported, and is probably a
  bad idea anyway, due to potential loss of entropy pools.
  We currently have 3 random_adaptors:
  + yarrow
  + rdrand (ivy.c)
  + nehemeiah

* Remove platform dependent logic from probe.c, and move it into
  corresponding registration routines of each random_adaptor provider.
  probe.c doesn't do anything other than picking a specific random_adaptor
  from a list of registered ones.

* If the kernel doesn't have any random_adaptor adapters present then the
  creation of /dev/random is postponed until next random_adaptor is kldload'ed.

* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
  system wide one.

Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: obrien

11 years agoAdd a missing prototype.
John Baldwin [Mon, 29 Jul 2013 20:48:10 +0000 (20:48 +0000)]
Add a missing prototype.

Pointy hat: me

11 years agoUpdate vendor/illumos/dist to illumos-gate 14096:12d3631da129:
Xin LI [Mon, 29 Jul 2013 20:36:27 +0000 (20:36 +0000)]
Update vendor/illumos/dist to illumos-gate 14096:12d3631da129:

Illumos ZFS issues:
  3909 "zfs send -D" does not work

11 years agoUpdate vendor-sys/illumos/dist to illumos-gate 14095:277fa158020c:
Xin LI [Mon, 29 Jul 2013 20:35:12 +0000 (20:35 +0000)]
Update vendor-sys/illumos/dist to illumos-gate 14095:277fa158020c:

Illumos ZFS issues:
  3834 incremental replication of 'holey' file systems is slow

11 years agoUpdate vendor-sys/illumos/dist to illumos-gate 14094:8a2884391fc2:
Xin LI [Mon, 29 Jul 2013 20:33:49 +0000 (20:33 +0000)]
Update vendor-sys/illumos/dist to illumos-gate 14094:8a2884391fc2:

Illumos ZFS issues:
  3888 zfs recv -F should destroy any snapshots created since the
       incremental source

11 years agoUpdate vendor/illumos/dist and vendor-sys/illumos/dist
Xin LI [Mon, 29 Jul 2013 20:31:44 +0000 (20:31 +0000)]
Update vendor/illumos/dist and vendor-sys/illumos/dist
to illumos-gate 14089:520f3adc5d46:

Illumos ZFS issues:
  3894 zfs should not allow snapshot of inconsistent dataset

11 years agoUpdate vendor-sys/illumos/dist to illumos-gate 14088:3ca4e9e72fe7:
Xin LI [Mon, 29 Jul 2013 20:26:33 +0000 (20:26 +0000)]
Update vendor-sys/illumos/dist to illumos-gate 14088:3ca4e9e72fe7:

Illumos ZFS issues:
  3875 panic in zfs_root() after failed rollback

11 years agoDecouple yarrow from random(4) device.
David E. O'Brien [Mon, 29 Jul 2013 20:26:27 +0000 (20:26 +0000)]
Decouple yarrow from random(4) device.

* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option.
  The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow.

* random(4) device doesn't really depend on rijndael-*.  Yarrow, however, does.

* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
  random_adaptor is basically an adapter that plugs in to random(4).
  random_adaptor can only be plugged in to random(4) very early in bootup.
  Unplugging random_adaptor from random(4) is not supported, and is probably a
  bad idea anyway, due to potential loss of entropy pools.
  We currently have 3 random_adaptors:
  + yarrow
  + rdrand (ivy.c)
  + nehemeiah

* Remove platform dependent logic from probe.c, and move it into
  corresponding registration routines of each random_adaptor provider.
  probe.c doesn't do anything other than picking a specific random_adaptor
  from a list of registered ones.

* If the kernel doesn't have any random_adaptor adapters present then the
  creation of /dev/random is postponed until next random_adaptor is kldload'ed.

* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
  system wide one.

Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: obrien

11 years agoUnbreak sysctl ABI changes introduced in r253662
Andrey Zonov [Mon, 29 Jul 2013 18:48:51 +0000 (18:48 +0000)]
Unbreak sysctl ABI changes introduced in r253662

Requested by: bde

11 years agoVarious fixes to the mlxen(4) driver:
John Baldwin [Mon, 29 Jul 2013 18:44:52 +0000 (18:44 +0000)]
Various fixes to the mlxen(4) driver:
- Remove an incorrect assertion that can trigger when downing an interface.
- Stop the interface during detach to avoid panics when unloading the
  driver.
- A few locking fixes to be more consistent with other FreeBSD drivers:
  - Protect if_drv_flags with the driver lock, not atomic ops
  - Hold the driver lock when adjusting multicast state.
  - Hold the driver lock while adjusting if_capenable.

PR: kern/180791 [1,2]
Submitted by: Shakar Klein @ Mellanox [1,2]
MFC after: 3 days

11 years ago[fixup] add Makefile changes that should have been committed in r253772
Andriy Gapon [Mon, 29 Jul 2013 17:03:42 +0000 (17:03 +0000)]
[fixup] add Makefile changes that should have been committed in r253772

MFC after: 3 weeks
X-MFC with: r253772

11 years agodtrace disassembler: take the latest/last CDDL code from OpenSolaris
Andriy Gapon [Mon, 29 Jul 2013 16:56:38 +0000 (16:56 +0000)]
dtrace disassembler: take the latest/last CDDL code from OpenSolaris

OpenSolaris version is:
13108:33bb8a0301ab
6762020 Disassembly support for Intel Advanced Vector Extensions (AVX)

This corresponds to Illumos-gate (github) version
ab47273fedff893c8ae22ec39ffc666d4fa6fc8b

MFC after: 3 weeks

11 years agoFix a possible NULL-pointer dereference on the pfsync(4) reconfiguration.
Andrey V. Elsukov [Mon, 29 Jul 2013 13:17:18 +0000 (13:17 +0000)]
Fix a possible NULL-pointer dereference on the pfsync(4) reconfiguration.

Reported by: Eugene M. Zheganin

11 years agoExplicitely include <machine/pcb.h>, so that we get the definition of
Olivier Houchard [Mon, 29 Jul 2013 12:55:37 +0000 (12:55 +0000)]
Explicitely include <machine/pcb.h>, so that we get the definition of
struct pcb.

Submitted by: Zbyszek Bodek <zbb@semihalf.com>
Pointy hat to:  cognet

11 years agoInclude stdint.h to fix build.
Andrey V. Elsukov [Mon, 29 Jul 2013 12:49:32 +0000 (12:49 +0000)]
Include stdint.h to fix build.

Pointed by: Olivier Cochard-Labbé

11 years agoRestore the longer form of the _Generic. The short form does not work in C++.
David Chisnall [Mon, 29 Jul 2013 12:33:03 +0000 (12:33 +0000)]
Restore the longer form of the _Generic.  The short form does not work in C++.

11 years agoReenable the isnan(double) / isinf(double) declarations when targeting C89 + SUSv2...
David Chisnall [Mon, 29 Jul 2013 08:32:13 +0000 (08:32 +0000)]
Reenable the isnan(double) / isinf(double) declarations when targeting C89 + SUSv2 mode.

11 years agoDefine KDB_STOPPEDPCB, so that we can access the backtraces of threads running
Olivier Houchard [Mon, 29 Jul 2013 08:07:35 +0000 (08:07 +0000)]
Define KDB_STOPPEDPCB, so that we can access the backtraces of threads running
on other cores.

11 years agoFix a debugging hack that snuck in.
Rui Paulo [Mon, 29 Jul 2013 06:57:45 +0000 (06:57 +0000)]
Fix a debugging hack that snuck in.

11 years agoFirmware module for the upcoming rsu(4) driver.
Rui Paulo [Mon, 29 Jul 2013 06:55:28 +0000 (06:55 +0000)]
Firmware module for the upcoming rsu(4) driver.

11 years agoRealtek's RTL8712 firmware blob needed by the upcoming rsu(4) driver.
Rui Paulo [Mon, 29 Jul 2013 06:53:42 +0000 (06:53 +0000)]
Realtek's RTL8712 firmware blob needed by the upcoming rsu(4) driver.

11 years agoFix alignment of USB WLAN radiotap headers. This makes USB WLAN adapters
Hans Petter Selasky [Mon, 29 Jul 2013 05:54:13 +0000 (05:54 +0000)]
Fix alignment of USB WLAN radiotap headers. This makes USB WLAN adapters
work on ARM, MIPS and similar platforms, where alignment matters.

MFC after: 1 week
Reported by: XiaoQI Ge <ghw@7axu.com>

11 years agoUse the streaming functions for reading/writing the BAP fields on wi(4). This
Justin Hibbits [Mon, 29 Jul 2013 05:39:20 +0000 (05:39 +0000)]
Use the streaming functions for reading/writing the BAP fields on wi(4).  This
fixes wi(4) device access on big endian architectures.

PR: kern/164499
Reviewed by: adrian
Obtained from: NetBSD

11 years agoFix detection of arm ABIs
Baptiste Daroussin [Sun, 28 Jul 2013 20:11:31 +0000 (20:11 +0000)]
Fix detection of arm ABIs

Submitted by: andrew
Obtained from: pkg git

11 years agoPartially close race between calls of orphan() method from GEOM and close()
Alexander Motin [Sun, 28 Jul 2013 20:07:34 +0000 (20:07 +0000)]
Partially close race between calls of orphan() method from GEOM and close()
method from ZFS core, that reliably causes use-after-free panic if SSD vdev
detached during inititial erase.

11 years agosin6 should be assigned before the loop.
Hiroki Sato [Sun, 28 Jul 2013 20:02:41 +0000 (20:02 +0000)]
sin6 should be assigned before the loop.

11 years agoFix returning incorrect bio_resid value with failed BIO_DELETE requests.
Alexander Motin [Sun, 28 Jul 2013 19:56:08 +0000 (19:56 +0000)]
Fix returning incorrect bio_resid value with failed BIO_DELETE requests.
Neither residual length reported for ATA/SCSI command nor one from another
BIO_DELETE request are in any way related to the value to be returned.

11 years ago- Relax the restriction on the member interfaces with LLAs. Two or more
Hiroki Sato [Sun, 28 Jul 2013 19:49:39 +0000 (19:49 +0000)]
- Relax the restriction on the member interfaces with LLAs.  Two or more
  LLAs on the member interfaces are actually harmless when the parent
  interface does not have a LLA.

- Add net.link.bridge.allow_llz_overlap.  This is a knob to allow LLAs on
  a bridge and the member interfaces at the same time.  The default is 0.

Pointed out by: ume
MFC after: 3 days

11 years agoRevert r253748,253749
Andriy Gapon [Sun, 28 Jul 2013 18:44:17 +0000 (18:44 +0000)]
Revert r253748,253749

This WIP should not have been committed yet.

Pointyhat to: avg

11 years agoremove needless inclusion of machine/cpu.h in userland
Andriy Gapon [Sun, 28 Jul 2013 18:35:43 +0000 (18:35 +0000)]
remove needless inclusion of machine/cpu.h in userland

MFC after: 21 days

11 years agoput contents of cpu.h under _KERNEL
Andriy Gapon [Sun, 28 Jul 2013 18:32:27 +0000 (18:32 +0000)]
put contents of cpu.h under _KERNEL

no userland-serviceable parts inside

MFC after: 20 days

11 years agox86: detect mwait capabilities and extensions, when present
Andriy Gapon [Sun, 28 Jul 2013 17:54:42 +0000 (17:54 +0000)]
x86: detect mwait capabilities and extensions, when present

Reviewed by: kib (earlier amd64-only version)
MFC after: 2 weeks

11 years agoRename the existing std.imx and imx.files to std.imx51 and files.imx51, to
Ian Lepore [Sun, 28 Jul 2013 17:37:30 +0000 (17:37 +0000)]
Rename the existing std.imx and imx.files to std.imx51 and files.imx51, to
pave the way for adding imx6 support.

11 years agoFix compilation when debugging is disabled.
Adrian Chadd [Sun, 28 Jul 2013 17:35:19 +0000 (17:35 +0000)]
Fix compilation when debugging is disabled.

11 years agoFix printf of seconds for systems where time_t is 64 bits.
Ian Lepore [Sun, 28 Jul 2013 16:56:31 +0000 (16:56 +0000)]
Fix printf of seconds for systems where time_t is 64 bits.

11 years agoCommit the missing header change.
Adrian Chadd [Sun, 28 Jul 2013 16:50:45 +0000 (16:50 +0000)]
Commit the missing header change.

11 years ago- Add const-qualifiers to the arguments of isonum_*().
Marius Strobl [Sun, 28 Jul 2013 12:29:10 +0000 (12:29 +0000)]
- Add const-qualifiers to the arguments of isonum_*().
- According to ISO 9660 7.1.2, isonum_712() should return a signed value.
- Try to get isonum_*() closer to style(9).

11 years agoWhen creation of the v_pollinfo raced and our instance of vpollinfo
Konstantin Belousov [Sun, 28 Jul 2013 06:59:29 +0000 (06:59 +0000)]
When creation of the v_pollinfo raced and our instance of vpollinfo
must be destroyed, knlist_clear() and seldrain() calls could be
avoided, since vpollinfo was not used.  More, the knlist_clear()
calling protocol requires the knlist locked, which is not true at the
call site.

Split the destruction into the helper destroy_vpollinfo_free(), and
call it when raced, instead of destroy_vpollinfo().

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after:   3 days

11 years agoRemove EOL whitespace.
Joel Dahl [Sun, 28 Jul 2013 06:16:12 +0000 (06:16 +0000)]
Remove EOL whitespace.

11 years agomdoc and language improvements.
Joel Dahl [Sun, 28 Jul 2013 06:15:25 +0000 (06:15 +0000)]
mdoc and language improvements.

11 years agoUpdate subversion-1.8.0 -> 1.8.1. Update supporting
Peter Wemm [Sun, 28 Jul 2013 06:02:40 +0000 (06:02 +0000)]
Update subversion-1.8.0 -> 1.8.1.  Update supporting
components: apr-1.4.6 -> 1.4.8 and apr-util-1.4.1 -> 1.5.2.

This is a post point-zero bug-fix / fix-sharp-edges release, including
some workarounds for UTF-8 for people who haven't yet turned on WITH_ICONV.

11 years agoImport Apache apr-util-1.5.2 into vendor staging area.
Peter Wemm [Sun, 28 Jul 2013 05:14:54 +0000 (05:14 +0000)]
Import Apache apr-util-1.5.2 into vendor staging area.

11 years agoRefactor the VAP transmit path code into a utility function that both
Adrian Chadd [Sun, 28 Jul 2013 04:53:00 +0000 (04:53 +0000)]
Refactor the VAP transmit path code into a utility function that both
the normal and the mesh transmit paths can use.

The API is a bit horrible because it both consumes the mbuf and frees
the node reference regardless of whether it succeeds or not.
It's a hold-over from how the code behaves; it'd be nice to have it
not free the node reference / mbuf if TX fails and let the caller
decide what to do.

11 years agoDTrace: re-apply r249426 now that the underlying issues have been solved.
Pedro F. Giffuni [Sun, 28 Jul 2013 01:02:17 +0000 (01:02 +0000)]
DTrace: re-apply r249426 now that the underlying issues have been solved.

Merge change from illumos:

3519 DTrace fails to resolve const types from fbt
3520 dtrace internal error -- token type 316 is not a valid D
     compilation token
3521 clean up dtrace unit tests

Illumos Revision: e98f46c

Reference:
https://www.illumos.org/issues/3519
https://www.illumos.org/issues/3520
https://www.illumos.org/issues/3521

Tested by: Fabian Keil
Obtained from: Illumos
MFC after: 1 month

11 years agoDTrace: re-merge remainder of r249367 (original from Illumos).
Pedro F. Giffuni [Sun, 28 Jul 2013 00:45:20 +0000 (00:45 +0000)]
DTrace: re-merge remainder of r249367 (original from Illumos).

Bring back some important fixes from Illumos:

3022 DTrace: keys should not affect the sort order when sorting by value
3023 it should be possible to dereference dynamic variables
3024 D integer narrowing needs some work

We particularly avoid the LD_NOLAZYLOAD changes that Illumos made
as those don't apply to FreeBSD and were causing problems in
interactive mode.

Illumos Revision: 13758:23432da34147

Reference:

https://www.illumos.org/issues/3022
https://www.illumos.org/issues/3023
https://www.illumos.org/issues/3024

MFC after: 1 month
Tested by: markj

11 years agoSynchronize device cache on close only if there were some write operations.
Alexander Motin [Sat, 27 Jul 2013 22:44:55 +0000 (22:44 +0000)]
Synchronize device cache on close only if there were some write operations.
While these operations are not really needed otherwise, at least for SCSI
they may cause extra errors if some other initiator holds write exclusive
reservation on the LUN (SYNCHRONIZE CACHE handled as "write" operation).

11 years agoProvide some examples for watchdogd usage.
Alfred Perlstein [Sat, 27 Jul 2013 22:23:32 +0000 (22:23 +0000)]
Provide some examples for watchdogd usage.

11 years agoOops, revert unwanted part of r253721.
Alexander Motin [Sat, 27 Jul 2013 22:21:10 +0000 (22:21 +0000)]
Oops, revert unwanted part of r253721.

11 years agoDetect unsupported PREVENT ALLOW MEDIUM REMOVAL and SYNCHRONIZE CACHE(10)
Alexander Motin [Sat, 27 Jul 2013 22:19:34 +0000 (22:19 +0000)]
Detect unsupported PREVENT ALLOW MEDIUM REMOVAL and SYNCHRONIZE CACHE(10)
to not spam devices with useless commands and logs with errors.

11 years agoUse kern_ioctl() rather than ioctl() for testing the FBT provider, since the
Mark Johnston [Sat, 27 Jul 2013 21:31:48 +0000 (21:31 +0000)]
Use kern_ioctl() rather than ioctl() for testing the FBT provider, since the
latter doesn't exist in FreeBSD. All the tests under fbtprovider pass now.

11 years agoFix watchdog pretimeout.
Alfred Perlstein [Sat, 27 Jul 2013 20:47:01 +0000 (20:47 +0000)]
Fix watchdog pretimeout.

The original API calls for pow2ns, however the new APIs from
Linux call for seconds.

We need to be able to convert to/from 2^Nns to seconds in both
userland and kernel to fix this and properly compare units.

11 years agoPut in commented-out version of beastie menu commands
Tim Kientzle [Sat, 27 Jul 2013 18:19:28 +0000 (18:19 +0000)]
Put in commented-out version of beastie menu commands
so that non-i386 users can easily experiment with this.

11 years agoInstall Forth infrastructure along with ubldr.
Tim Kientzle [Sat, 27 Jul 2013 18:18:46 +0000 (18:18 +0000)]
Install Forth infrastructure along with ubldr.

Note:  loader.rc is installed as loader.rc.sample
so that by default, none of this is actually used.

11 years agoupdate ciss debugger command to iterate over multiple raid controllers up to
Sean Bruno [Sat, 27 Jul 2013 17:20:43 +0000 (17:20 +0000)]
update ciss debugger command to iterate over multiple raid controllers up to
max controllers supported

PR: kern/179932
Reviewed by: Markus Gebert <markus.gebert@hostpoint.ch>
MFC after: 2 weeks
Sponsored by: Yahoo! Inc.

11 years agoMFgem r251960: re-check the mgt device object for the requested page
Konstantin Belousov [Sat, 27 Jul 2013 16:44:37 +0000 (16:44 +0000)]
MFgem r251960: re-check the mgt device object for the requested page
after the object was relocked.

Tested by: dumbbell
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

11 years agoThe pmap_qenter() and pmap_qremove() perform TLB invalidation on its
Konstantin Belousov [Sat, 27 Jul 2013 16:42:29 +0000 (16:42 +0000)]
The pmap_qenter() and pmap_qremove() perform TLB invalidation on its
own, no need to call pmap_invalidate_range() one more time.

Noted by: alc
MFC after: 1 week

11 years agoAt some point after stable/7 the ACPI and ISA interfaces to the IPMI controller
Sean Bruno [Sat, 27 Jul 2013 16:32:34 +0000 (16:32 +0000)]
At some point after stable/7 the ACPI and ISA interfaces to the IPMI controller
no longer have the parent in the device tree.  This causes the identify
function in ipmi_isa.c to attempt to probe and poke at the ISA IPMI interface

Move the check for ipmi_attached out of the ipmi_isa_attach function and into
the ipmi_isa_identify function.  Remove the check of the device tree for
ipmi devices attached.

This probing appears to make Broadcom management firmware on Dell machines
crash and emit NMI EISA warnings at various times requiring power cycles
of the machines to restore.

Bump MAX_TIMEOUT to 6 seconds as a hack for super slow IPMI interfaces that
need longer to respond to our intial probes on startup.

Tested on Dell R410, R510, R815, HP DL160G6

This is MFC candidate for 9.2R

Reviewed by: peter
MFC after: 2 weeks
Sponsored by: Yahoo! Inc.

11 years ago- Set the System Identifier in the Primary Volume Descriptor to FreeBSD
Marius Strobl [Sat, 27 Jul 2013 15:28:31 +0000 (15:28 +0000)]
- Set the System Identifier in the Primary Volume Descriptor to FreeBSD
  rather than NetBSD.
- Correctly set the Expiration Time in the Primary Volume Descriptor;
  according to ISO 9660 8.4.26.1 unspecified date and time are denoted
  by the digit 0 in RBP 1 to 16 but the number 0 in RBP 17. [1]
- Merge iso9660_rrip.c rev. 1.11 from NetBSD: name_len should be read
  as unsigned byte. [2]
  Note: This is according to ISO 9660 9.1.10.
- Rock Ridge TF entries should use a length of 5, because after the 4
  bytes of generic SUSP header there is one byte of flags. See typedef
  of ISO_RRIP_TF in iso9660_rrip.h. [1]

Submitted by: Thomas Schmitt [1]
Obtained from: NetBSD [2]
MFC after: 3 days

11 years agoIntroduce 3 seconds timeout on `graid stop` command (mostly with -f flag).
Alexander Motin [Sat, 27 Jul 2013 15:02:19 +0000 (15:02 +0000)]
Introduce 3 seconds timeout on `graid stop` command (mostly with -f flag).
Since completion waiting goes in g_event thread, it may cause GEOM deadlock
if consumer on top (for example, ZFS) uses g_event thread for closing.

11 years agoImplement some function tracing.
Adrian Chadd [Sat, 27 Jul 2013 14:58:23 +0000 (14:58 +0000)]
Implement some function tracing.

Submitted by: Cedric GROSS <cg@cgross.info>

11 years agoDisplay a string instead of a numeric code in the linkdnrc sysctl.
Navdeep Parhar [Sat, 27 Jul 2013 07:43:43 +0000 (07:43 +0000)]
Display a string instead of a numeric code in the linkdnrc sysctl.

Submitted by: gnn@

11 years agoExpand the list of devices claimed by cxgbe(4).
Navdeep Parhar [Sat, 27 Jul 2013 00:53:07 +0000 (00:53 +0000)]
Expand the list of devices claimed by cxgbe(4).