]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agokevent(2): Note DOOMED vnodes with NOTE_REVOKE
cem [Tue, 15 Sep 2015 20:22:30 +0000 (20:22 +0000)]
kevent(2): Note DOOMED vnodes with NOTE_REVOKE

In poll mode, check for and wake VBAD vnodes.  (Vnodes that are VBAD at
registration will never be woken by the RECLAIM trigger.)

Add post-VOP_RECLAIM hook to trigger notes on vnode reclamation.  (Vnodes that
were fine at registration but are vgoned while being monitored should signal
waiters.)

Reviewed by: kib
Approved by: markj (mentor)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D3675

8 years agoRemove unnecessary tcp state transition call.
hiren [Tue, 15 Sep 2015 20:04:30 +0000 (20:04 +0000)]
Remove unnecessary tcp state transition call.

Differential Revision: D3451
Reviewed by: markj
MFC after: 2 weeks
Sponsored by: Limelight Networks

8 years agoarm64: add xhci driver and umass/ukbd to GENERIC for Cavium ThunderX
emaste [Tue, 15 Sep 2015 19:59:35 +0000 (19:59 +0000)]
arm64: add xhci driver and umass/ukbd to GENERIC for Cavium ThunderX

Sponsored by: The FreeBSD Foundation

8 years agoAdd support for Sierra MC7355 card
garga [Tue, 15 Sep 2015 18:21:56 +0000 (18:21 +0000)]
Add support for Sierra MC7355 card

Submitted by: Jeremy Porter <jporter@netgate.com>
Approved by: loos
Obtained from: pfSense
MFC after: 1 week
Sponsored by: Rubicon Communications (Netgate)

8 years agoAdd a way to specify stripesize and stripeoffset to gnop(8). This makes
trasz [Tue, 15 Sep 2015 18:01:59 +0000 (18:01 +0000)]
Add a way to specify stripesize and stripeoffset to gnop(8). This makes
it possible to "simulate" 4K media, to eg test alignment handling.

Reviewed by: mav@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3664

8 years agoSimplify nd6_cache_lladdr:
melifaro [Tue, 15 Sep 2015 17:16:31 +0000 (17:16 +0000)]
Simplify nd6_cache_lladdr:
* Move isRouter calculation code to separate nd6_is_router() function.
* Make nd6_cache_lladdr() return void: its return value hasn't been used
  since r53541 KAME import in 1999.

Sponsored by: Yandex LLC

8 years agoAdd Cavium ThunderX xHCI controller PCI ID
emaste [Tue, 15 Sep 2015 16:08:25 +0000 (16:08 +0000)]
Add Cavium ThunderX xHCI controller PCI ID

There is an issue with interrupts at the moment, but it works with
polling mode set (hw.usb.xhci.use_polling=1).

Reviewed by: hselasky
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3665

8 years agoFix grammer in an error message
brd [Tue, 15 Sep 2015 14:24:19 +0000 (14:24 +0000)]
Fix grammer in an error message

PR: 202310
Submitted by: Chris Petrik <chris@bsdjunk.com>
Approved by: will

8 years agoAdd ctl-lun config option for consistency in HA setups.
mav [Tue, 15 Sep 2015 13:37:48 +0000 (13:37 +0000)]
Add ctl-lun config option for consistency in HA setups.

8 years agoBump .Dd.
pluknet [Tue, 15 Sep 2015 13:24:52 +0000 (13:24 +0000)]
Bump .Dd.

8 years agoDocument NGM_PPPOE_SETMAXP.
glebius [Tue, 15 Sep 2015 12:19:01 +0000 (12:19 +0000)]
Document NGM_PPPOE_SETMAXP.

Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>

8 years agoPerform I2C transmission in a single burst when mode is "none" or not set
zbb [Tue, 15 Sep 2015 11:21:16 +0000 (11:21 +0000)]
Perform I2C transmission in a single burst when mode is "none" or not set

Some more automated I2C controllers cannot explicitly create
START/STOP/etc. conditions on the bus.
Instead, the correct condition is set automatically according
to the pending transfer status.
This particular behavior can cause trouble if some I2C slave
requires sending address offset within the chip followed by
the actual data or command. In that case we cannot assume that
the driver will not STOP immediately after sending
offset.

To avoid that, do not split offset transfer from data transfer
for default transmission modes and do exactly that if requested
in command line (stop-start and repeated-start modes).
This more generic approach should cover special cases like
the one described.

Reviewed by:   imp
Submitted by:  Marcin Mazurek <mma@semihalf.com>
Obtained from: Semihalf

8 years agoMake CAM log errors that make it wait.
mav [Tue, 15 Sep 2015 10:57:16 +0000 (10:57 +0000)]
Make CAM log errors that make it wait.

Waiting can take minutes, and it would be good for user to know what is
going on.

MFC after: 2 weeks

8 years agoFix completion/error status reporting.
mav [Tue, 15 Sep 2015 10:42:53 +0000 (10:42 +0000)]
Fix completion/error status reporting.

8 years agoClose potential race between datamove and HA failover.
mav [Tue, 15 Sep 2015 09:36:46 +0000 (09:36 +0000)]
Close potential race between datamove and HA failover.

8 years ago* Improve logging invalid arp messages
melifaro [Tue, 15 Sep 2015 08:50:44 +0000 (08:50 +0000)]
* Improve logging invalid arp messages
* Remove redundant check in ip_arpinput

Suggested by: glebius
MFC after: 2 weeks

8 years ago* Require explicitl lle unlink prior to calling llentry_delete().
melifaro [Tue, 15 Sep 2015 06:48:19 +0000 (06:48 +0000)]
* Require explicitl lle unlink prior to calling llentry_delete().
  This one slightly decreases time of holding afdata wlock.
* While here, make nd6_free() return void. No one has used its return value
  since r186119.

8 years agoRemove an unneeded typedef of ip6_t from the DTrace ip provider library.
markj [Tue, 15 Sep 2015 05:16:26 +0000 (05:16 +0000)]
Remove an unneeded typedef of ip6_t from the DTrace ip provider library.
It causes an error when ipfilter is enabled, since ipl.ko contains an
identical typedef.

PR: 203092
MFC after: 1 week

8 years agoPreserve the device queue status before retrying a sense request in
markj [Tue, 15 Sep 2015 05:09:17 +0000 (05:09 +0000)]
Preserve the device queue status before retrying a sense request in
chdone(). Previously, the retry could clear the CAM_DEV_QFRZN bit in the
CCB status, leaving the queue frozen.

Submitted by: Jeff Miller <Jeff.Miller@isilon.com>
Reviewed by: ken
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoUnconditionally build CTF tools in the bootstrap-tools phase of the build.
markj [Tue, 15 Sep 2015 05:01:44 +0000 (05:01 +0000)]
Unconditionally build CTF tools in the bootstrap-tools phase of the build.

Stale CTF tools are a frequent source of DTrace issues, and they compile
quickly enough that the increase in build time is negligible.

Reviewed by: emaste, imp
Differential Revision: https://reviews.freebsd.org/D3670

8 years agoReplace the scan event input path hack with the new rx-stats based method.
adrian [Tue, 15 Sep 2015 03:01:40 +0000 (03:01 +0000)]
Replace the scan event input path hack with the new rx-stats based method.
This allows for arbitrary channel info to be placed in the input call rather
than the totally gross hack of overriding ic_curchan.

Without this I'm sure ic_curchan setting was racing with the scan code
setting the channel itself..

8 years agoFix code typo (no functional change)
dteske [Mon, 14 Sep 2015 21:26:48 +0000 (21:26 +0000)]
Fix code typo (no functional change)

MFC after: 3 days
X-MFC-to: stable/10

8 years agoRegression: fix usershow -7
bapt [Mon, 14 Sep 2015 19:23:00 +0000 (19:23 +0000)]
Regression: fix usershow -7

Submitted by: Dan McGregor (via IRC)
MFC after: 2 days

8 years agoFix the handling of IPv6 On-Link Redirects.
vangyzen [Mon, 14 Sep 2015 19:17:25 +0000 (19:17 +0000)]
Fix the handling of IPv6 On-Link Redirects.

On receipt of a redirect message, install an interface route for the
redirected destination.  On removal of the corresponding Neighbor Cache
entry, remove the interface route.

This requires changes in rtredirect_fib() to cope with an AF_LINK
address for the gateway and with the absence of RTF_GATEWAY.

This fixes the "Redirected On-Link" test cases in the Tahi IPv6 Ready Logo
Phase 2 test suite.

Unrelated to the above, fix a recursion on the radix node head lock
triggered by the Tahi Redirected to Alternate Router test cases.

When I first wrote this patch in October 2012, all Section 2
(Neighbor Discovery) test cases passed on 10-CURRENT, 9-STABLE,
and 8-STABLE.  cem@ recently rebased the 10.x patch onto head and reported
that it passes Tahi.  (Thanks!)

These other test cases also passed in 2012:

* the RTF_MODIFIED case, with IPv4 and IPv6 (using a
  RTF_HOST|RTF_GATEWAY route for the destination)

* the redirected-to-self case, with IPv4 and IPv6

* a valid IPv4 redirect

All testing in 2012 was done with WITNESS and INVARIANTS.

Tested by:    EMC / Isilon Storage Division via Conrad Meyer (cem) in 2015,
              Mark Kelley <mark_kelley@dell.com> in 2012,
              TC Telkamp <terence_telkamp@dell.com> in 2012
PR:           152791
Reviewed by:  melifaro (current rev), bz (earlier rev)
Approved by:  kib (mentor)
MFC after:    1 month
Relnotes:     yes
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D3602

8 years agoUse unsigned variables in a few places.
rodrigc [Mon, 14 Sep 2015 18:59:01 +0000 (18:59 +0000)]
Use unsigned variables in a few places.

Eliminates gcc 4.9 warnings.

8 years agoUse ANSI C prototypes.
rodrigc [Mon, 14 Sep 2015 18:44:13 +0000 (18:44 +0000)]
Use ANSI C prototypes.

Eliminates gcc 4.9 warnings.

8 years ago* Do more fine-grained locking: call eventhandlers/free_entry
melifaro [Mon, 14 Sep 2015 16:48:19 +0000 (16:48 +0000)]
* Do more fine-grained locking: call eventhandlers/free_entry
  without holding afdata wlock
* convert per-af delete_address callback to global lltable_delete_entry() and
  more low-level "delete this lle" per-af callback
* fix some bugs/inconsistencies in IPv4/IPv6 ifscrub procedures

Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D3573

8 years agoMake it clear that 'swapuse' is swap reservation and not actual swap usage.
trasz [Mon, 14 Sep 2015 15:37:19 +0000 (15:37 +0000)]
Make it clear that 'swapuse' is swap reservation and not actual swap usage.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoImplement data/status aggregation for secondary HA node.
mav [Mon, 14 Sep 2015 15:21:23 +0000 (15:21 +0000)]
Implement data/status aggregation for secondary HA node.

For short read requests this reduces latency by 30%, reporting command
completion after two interlink roundtrips instead of full three.

8 years agoImplement data/status aggregation for camsim backend.
mav [Mon, 14 Sep 2015 15:15:32 +0000 (15:15 +0000)]
Implement data/status aggregation for camsim backend.

This is almost pointless for primary HA node, but useful for secondary,
where between fe_datamove and fe_done calls goes another link roundtrip.

8 years agoAdd missing BINDIR variable.
hselasky [Mon, 14 Sep 2015 12:25:45 +0000 (12:25 +0000)]
Add missing BINDIR variable.

8 years agoImplement callout_drain_async(), inspired by the projects/hps_head
hselasky [Mon, 14 Sep 2015 10:52:26 +0000 (10:52 +0000)]
Implement callout_drain_async(), inspired by the projects/hps_head
branch.

This function is used to drain a callout via a callback instead of
blocking the caller until the drain is complete. Refer to the
callout_drain_async() manual page for a detailed description.

Limitation: If a lock is used with the callout, the callout can only
be drained asynchronously one time unless the callout_init_mtx()
function is called again. This limitation is not present in
projects/hps_head and will require more invasive changes to the
timeout code, which was not in the scope of this patch.

Differential Revision: https://reviews.freebsd.org/D3521
Reviewed by: wblock
MFC after: 1 month

8 years ago* Improve error checking for arp messages.
melifaro [Mon, 14 Sep 2015 10:28:47 +0000 (10:28 +0000)]
* Improve error checking for arp messages.
* Clean stale headers from if_ether.c.

Reported by: rozhuk.im at gmail.com
Reviewed by: ae
MFC after: 2 weeks

8 years agoRemove CTL_PRIV_LBA_LEN from HA messages.
mav [Mon, 14 Sep 2015 09:56:01 +0000 (09:56 +0000)]
Remove CTL_PRIV_LBA_LEN from HA messages.

Previously it was used for statistics, but now just a 16 extra bytes.

8 years agoUpdate TSO limits to include all headers.
hselasky [Mon, 14 Sep 2015 08:36:22 +0000 (08:36 +0000)]
Update TSO limits to include all headers.

To make driver programming easier the TSO limits are changed to
reflect the values used in the BUSDMA tag a network adapter driver is
using. The TCP/IP network stack will subtract space for all linklevel
and protocol level headers and ensure that the full mbuf chain passed
to the network adapter fits within the given limits.

Implementation notes:

If a network adapter driver needs to fixup the first mbuf in order to
support VLAN tag insertion, the size of the VLAN tag should be
subtracted from the TSO limit. Else not.

Network adapters which typically inline the complete header mbuf could
technically transmit one more segment. This patch does not implement a
mechanism to recover the last segment for data transmission. It is
believed when sufficiently large mbuf clusters are used, the segment
limit will not be reached and recovering the last segment will not
have any effect.

The current TSO algorithm tries to send MTU-sized packets, where the
MTU typically is 1500 bytes, which gives 1448 bytes of TCP data
payload per packet for IPv4. That means if the TSO length limitiation
is set to 65536 bytes, there will be a data payload remainder of
(65536 - 1500) mod 1448 bytes which is equal to 324 bytes. Trying to
recover total TSO length due to inlining mbuf header data will not
have any effect, because adding or removing the ETH/IP/TCP headers
to or from 324 bytes will not cause more or less TCP payload to be
TSO'ed.

Existing network adapter limits will be updated separately.

Differential Revision: https://reviews.freebsd.org/D3458
Reviewed by: rmacklem
MFC after: 2 weeks

8 years agoImplement QUERY TASK, QUERY TASK SET and QUERY ASYNC EVENT.
mav [Mon, 14 Sep 2015 08:01:05 +0000 (08:01 +0000)]
Implement QUERY TASK, QUERY TASK SET and QUERY ASYNC EVENT.

Now we support most of SAM-5 task management.

8 years agoAdd missing file to build.
hselasky [Mon, 14 Sep 2015 07:11:53 +0000 (07:11 +0000)]
Add missing file to build.

8 years agoCorrect PCI ID.
hselasky [Mon, 14 Sep 2015 07:08:29 +0000 (07:08 +0000)]
Correct PCI ID.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 month
PR: 202807

8 years agoMFV r286224: 5695 dmu_sync'ed holes do not retain birth time
delphij [Mon, 14 Sep 2015 06:10:49 +0000 (06:10 +0000)]
MFV r286224: 5695 dmu_sync'ed holes do not retain birth time
(userland portion that was not merged in r286677)

Update zdb to also print ltime, type, and level information
for these new style holes. Previously, only the logical birth
time would be printed.

8 years agoMFV r277429:
delphij [Mon, 14 Sep 2015 06:00:50 +0000 (06:00 +0000)]
MFV r277429:

Document -S option when zfs inherit fails on quota and
in manual pages.

Illumos ZFS issues:

    5410 Document -S option to zfs inherit
    https://illumos.org/issues/5410

    5412 Mention -S option when zfs inherit fails on quota
    https://illumos.org/issues/5412

illumos/illumos-gate@5ff8cfa92ec8ea0f8593ad21aa2a04829b0ef5ea

MFC after: 2 weeks

8 years agoAdd preliminary support for RTL8168H, tested by Sreenath Battalahalli.
marius [Sun, 13 Sep 2015 22:22:30 +0000 (22:22 +0000)]
Add preliminary support for RTL8168H, tested by Sreenath Battalahalli.

MFC after: 1 week

8 years ago- Sanity check that the parent ranges given in the "ranges" property
marius [Sun, 13 Sep 2015 21:59:56 +0000 (21:59 +0000)]
- Sanity check that the parent ranges given in the "ranges" property
  of PCI-EBus-bridges actually match the BARs as specified in and
  required by [1, p. 113 f.]. Doing so earlier would have simplified
  diagnosing a bug in QEMU/OpenBIOS getting the mapping of child
  addresses wrong, which still needs to be fixed there.
  In theory, we could try to change the BARs accordingly if we hit
  this problem. However, at least with real machines changing the
  decoding likely won't work, especially if the PCI-EBus-bridge is
  beneath an APB one. So implementing such functionality generally
  is rather pointless.
- Actually change the allocation type of EBus resources if they
  change from SYS_RES_MEMORY to SYS_RES_IOPORT when mapping them
  to PCI ranges in ebus_alloc_resource() and passing them up to
  bus_activate_resource(9). This may happen with the QEMU/OpenBIOS
  PCI-EBus-bridge but not real ones. Still, this is only cleans up
  the code and the result of resource allocation and activation is
  unchanged.
- Change the remainder of printf(9) to device_printf(9) calls and
  canonicalize their wording.

MFC after: 1 week

Peripheral Component Interconnect Input Output Controller,
Part No.: 802-7837-01, Sun Microelectronics, March 1997 [1]

8 years agoAdd negotiation of iSCSIProtocolLevel to 2 (RFC7144).
mav [Sun, 13 Sep 2015 20:58:22 +0000 (20:58 +0000)]
Add negotiation of iSCSIProtocolLevel to 2 (RFC7144).

We may need to pass negotiated value to kernel level, but so far it is
not necessary, since it does not use any new features without request.

8 years agoMap CLEAR TASK SET and I_T NEXUS RESET for iSCSI.
mav [Sun, 13 Sep 2015 20:40:00 +0000 (20:40 +0000)]
Map CLEAR TASK SET and I_T NEXUS RESET for iSCSI.

The last should not be called without iSCSIProtocolLevel negotiation.

8 years agoImplement iSCSI TARGET COLD RESET task management function.
mav [Sun, 13 Sep 2015 20:22:18 +0000 (20:22 +0000)]
Implement iSCSI TARGET COLD RESET task management function.

Implement it as CTL_TASK_TARGET_RESET plus termination of all sessions.

8 years agoDisable mgmt frame sending in if_rsu.
adrian [Sun, 13 Sep 2015 19:17:26 +0000 (19:17 +0000)]
Disable mgmt frame sending in if_rsu.

The firmware in this NIC sends management frames.  So far I'm not sure which
ones it handles and which ones it doesn't handle - but this is what openbsd
does.

The association messages are handled by the firmware; the key negotiation
for 802.1x and WPA are done as raw frames, not management frames.

This successfully allows it to associate to my home networks whereas it didn't
work beforehand.

Tested:

* RTL8712, cut 3, STA mode

TODO:

* The firmware does send a join response with a status code; that should be
  logged in a more obvious way to assist with debugging.  Ie, the firmware
  is the thing that is saying "couldn't join, sorry!", not net80211.

8 years agoUpdate em(4) with D3162 after testing further on hardware that failed
sbruno [Sun, 13 Sep 2015 18:26:05 +0000 (18:26 +0000)]
Update em(4) with D3162 after testing further on hardware that failed
to attach with the last version of this commit. This commit fixes
attach failures on "ICH8" class devices via modifications to
e1000_init_nvm_params_ich8lan()

-   Fix compiler warning in 80003es2lan.c
-   Add return value handler for e1000_*_kmrn_reg_80003es2lan
-   Fix usage of DEBUGOUT
-   Remove unnecessary variable initializations.
-   Removed unused variables (complaints from gcc).
-   Edit defines in 82571.h.
-   Add workaround for igb hw errata.
-   Shared code changes for Skylake/I219 support.
-   Remove unused OBFF and LTR functions.

Tested by some of the folks that reported breakage in previous incarnation.
Thanks to AllanJude, gjb, gnn, tijl for tempting fate with their machines.

Submitted by: erj@freebsd.org
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3162

8 years agodb/recno: Open with close-on-exec like btree and hash do.
jilles [Sun, 13 Sep 2015 17:17:52 +0000 (17:17 +0000)]
db/recno: Open with close-on-exec like btree and hash do.

8 years agoImprove read-only support.
mav [Sun, 13 Sep 2015 16:49:41 +0000 (16:49 +0000)]
Improve read-only support.

8 years agodd DTrace probe points, translators and a corresponding script
gnn [Sun, 13 Sep 2015 15:50:55 +0000 (15:50 +0000)]
dd DTrace probe points, translators and a corresponding script
to provide the TCPDEBUG functionality with pure DTrace.

Reviewed by: rwatson
MFC after: 2 weeks
Sponsored by: Limelight Networks
Differential Revision: D3530

8 years agoReannounce port to HA peer if LUN map changed after online.
mav [Sun, 13 Sep 2015 15:31:55 +0000 (15:31 +0000)]
Reannounce port to HA peer if LUN map changed after online.

8 years agoWhen updating port, apply only change of LUN map, not whole.
mav [Sun, 13 Sep 2015 15:08:06 +0000 (15:08 +0000)]
When updating port, apply only change of LUN map, not whole.

8 years agoReport INQUIRY DATA HAS CHANGED for related LUNs on port on-/offline.
mav [Sun, 13 Sep 2015 14:52:31 +0000 (14:52 +0000)]
Report INQUIRY DATA HAS CHANGED for related LUNs on port on-/offline.

8 years agoReport CTL_UA_LUN_CHANGE on LUN map change.
mav [Sun, 13 Sep 2015 14:04:42 +0000 (14:04 +0000)]
Report CTL_UA_LUN_CHANGE on LUN map change.

8 years agosetuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD).
jilles [Sun, 13 Sep 2015 14:00:49 +0000 (14:00 +0000)]
setuid(2): Suggest O_CLOEXEC instead of fcntl(F_SETFD).

8 years agoMake TARGET RESET respect LUN mapping.
mav [Sun, 13 Sep 2015 13:00:20 +0000 (13:00 +0000)]
Make TARGET RESET respect LUN mapping.

8 years agoAdd ID for Intel Panther Point KT Controller
mav [Sun, 13 Sep 2015 12:08:25 +0000 (12:08 +0000)]
Add ID for Intel Panther Point KT Controller

Found on ASUS P8Q77-M motherboard.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks

8 years agoMFV r287623: 5997 FRU field not set during pool creation and never
delphij [Sun, 13 Sep 2015 07:15:14 +0000 (07:15 +0000)]
MFV r287623: 5997 FRU field not set during pool creation and never
updated

ZFS already supports storing the vdev FRU in a vdev property.  There
is code in libzfs to work with this property, and there is code in
the zfs-retire FMA module that looks for that information.  But there
is no code actually setting or updating the FRU.

To address this, ZFS is changed to send a handful of new events
whenever a vdev is added, attached, cleared, or onlined, as well
as when a pool is created or imported.

Note that syseventd is not currently available on FreeBSD and thus
some work is needed to actually support the new ZFS events (e.g. in
zfsd) to actually use this capability, this changeset is mostly a
diff reduction from upstream.

illumos/illumos-gate@1437283407f89cab03860accf49408f94559bc34

Illumos issues:

    5997 FRU field not set during pool creation and never updated
    https://www.illumos.org/issues/5997

8 years agoNote r286552 as merged and reduce diff against upstream.
delphij [Sun, 13 Sep 2015 06:49:42 +0000 (06:49 +0000)]
Note r286552 as merged and reduce diff against upstream.

8 years agoAdd RSSI logging to the event survey results.
adrian [Sun, 13 Sep 2015 05:22:20 +0000 (05:22 +0000)]
Add RSSI logging to the event survey results.

8 years agoAfter reading the linux driver, document what this bit is doing
adrian [Sun, 13 Sep 2015 04:41:13 +0000 (04:41 +0000)]
After reading the linux driver, document what this bit is doing
(doing a full NIC awake.)

8 years ago* fiddle with some more of the debugging output
adrian [Sun, 13 Sep 2015 04:12:51 +0000 (04:12 +0000)]
* fiddle with some more of the debugging output
* yes, when a "sta disconnect" message comes through we should, like,
  disconnect things.  We're not currently generating beacon miss messages,
  and net80211 isn't disconnecting things via software beacon miss receive.

Tested:

* RTL8712, cut 3, STA mode

8 years agoMerge r286374 from x86:
marius [Sun, 13 Sep 2015 00:08:04 +0000 (00:08 +0000)]
Merge r286374 from x86:

Formally pair store_rel(&smp_started) with load_acq(&smp_started).
Similarly to x86, this change is mostly a NOP due to the kernel
being run in total store order.

MFC after: 1 week

8 years agoif_rsu debug fixes:
adrian [Sat, 12 Sep 2015 23:10:34 +0000 (23:10 +0000)]
if_rsu debug fixes:

* use an ath/iwn style debug bitmap - it's still global rather than per-device,
  but it's better than debug levels
* disable bgscan - it just makes things unstable/unpredictable for now.

Tested:

* if_rsu - RTL8712 cut 3, STA mode

8 years ago- Factor out the common and generic parts of the sparc64 host-PCI-bridge
marius [Sat, 12 Sep 2015 22:49:32 +0000 (22:49 +0000)]
- Factor out the common and generic parts of the sparc64 host-PCI-bridge
  drivers into the revived sys/sparc64/pci/ofw_pci.c, previously already
  serving a similar purpose. This has been done with sun4v in mind, which
  explains a) the otherwise not that obvious scheme employed and b) why
  reusing sys/powerpc/ofw/ofw_pci.c was even lesser an option.
- Add a workaround for QEMU once again not emulating real machines, in
  this case by not providing the OFW_PCI_CS_MEM64 range. [1]

Submitted by: jhb [1]
MFC after: 1 week

8 years agoFix compilation issue introduced in r287717.
tuexen [Sat, 12 Sep 2015 21:23:24 +0000 (21:23 +0000)]
Fix compilation issue introduced in r287717.
Thanks to bz@ for making me aware of it.

MFC after: 1 week

8 years agoCheck for obsolete NUL bin in CSCD descriptor.
mav [Sat, 12 Sep 2015 20:45:09 +0000 (20:45 +0000)]
Check for obsolete NUL bin in CSCD descriptor.

8 years agoAdd HA support for CTL_TASK_I_T_NEXUS_RESET.
mav [Sat, 12 Sep 2015 20:06:22 +0000 (20:06 +0000)]
Add HA support for CTL_TASK_I_T_NEXUS_RESET.

8 years agoFix false CTL_UA_RES_RELEASE on secondary HA node.
mav [Sat, 12 Sep 2015 18:29:05 +0000 (18:29 +0000)]
Fix false CTL_UA_RES_RELEASE on secondary HA node.

8 years agoAddress a compile warning.
tuexen [Sat, 12 Sep 2015 18:00:06 +0000 (18:00 +0000)]
Address a compile warning.

MFC after: 1 week

8 years agoDecode WRITE ATOMIC(16) command.
mav [Sat, 12 Sep 2015 17:53:49 +0000 (17:53 +0000)]
Decode WRITE ATOMIC(16) command.

8 years agoCleanup the handling of error causes for ERROR chunks. This fixes
tuexen [Sat, 12 Sep 2015 17:08:51 +0000 (17:08 +0000)]
Cleanup the handling of error causes for ERROR chunks. This fixes
an inconsistency of the padding handling. The final padding is
now considered to be a chunk padding.

MFC after: 1 week

8 years agoDo not call mii_mediachg() from NIC interrupt handler.
loos [Sat, 12 Sep 2015 16:46:41 +0000 (16:46 +0000)]
Do not call mii_mediachg() from NIC interrupt handler.

This fixes the link instability on banana pi (A20).

Suggested by: yongari

8 years agoImprove XCOPY error reporting.
mav [Sat, 12 Sep 2015 16:30:01 +0000 (16:30 +0000)]
Improve XCOPY error reporting.

8 years agoReport that we have no limit on POPULATE TOKEN segment size.
mav [Sat, 12 Sep 2015 14:20:11 +0000 (14:20 +0000)]
Report that we have no limit on POPULATE TOKEN segment size.

8 years agoCorrect RTPG bitmask.
mav [Sat, 12 Sep 2015 13:53:41 +0000 (13:53 +0000)]
Correct RTPG bitmask.

8 years agoSome HA polishing.
mav [Sat, 12 Sep 2015 12:46:04 +0000 (12:46 +0000)]
Some HA polishing.

8 years agoCTL documentation update, mostly for HA.
mav [Sat, 12 Sep 2015 10:23:23 +0000 (10:23 +0000)]
CTL documentation update, mostly for HA.

8 years agoMFV r287699: 6214 zpools going south
delphij [Sat, 12 Sep 2015 09:56:23 +0000 (09:56 +0000)]
MFV r287699: 6214 zpools going south

In r286570 (MFV of r277426) an unprotected write to b_flags to
set the compression mode was introduced.  This would open a race
window where data is partially decompressed, modified, checksummed
and written to the pool, resulting in pool corruption due to the
partial decompression.

Prevent this by reintroducing b_compress

illumos/illumos-gate@d4cd038c92c36fd0ae35945831a8fc2975b5272c

Illumos issues:

    6214 zpools going south
    https://www.illumos.org/issues/6214

8 years agoFix build (r287703). Lesson learned: no matter how a change looks like an
delphij [Sat, 12 Sep 2015 09:28:02 +0000 (09:28 +0000)]
Fix build (r287703).  Lesson learned: no matter how a change looks like an
innocent one, always do a build test first.

Pointy hat to: delphij

8 years agoPoint potential geom_fox(4) users to gmultipath(8).
trasz [Sat, 12 Sep 2015 08:54:24 +0000 (08:54 +0000)]
Point potential geom_fox(4) users to gmultipath(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoMFV r287684: 6091 avl_add doesn't assert on non-debug builds
delphij [Sat, 12 Sep 2015 08:50:43 +0000 (08:50 +0000)]
MFV r287684: 6091 avl_add doesn't assert on non-debug builds

Use assfail() from libuutil instead of ASSERT() in userland
AVL avl_add.

illumos/illumos-gate@faa2b6be2fc102adf9ed584fc1a667b4ddf50d78

Illumos issues:

    6091 avl_add doesn't assert on non-debug builds
    https://www.illumos.org/issues/6091

8 years agoMFV r287624: 5987 zfs prefetch code needs work
delphij [Sat, 12 Sep 2015 08:35:51 +0000 (08:35 +0000)]
MFV r287624: 5987 zfs prefetch code needs work

Rewrite the ZFS prefetch code to detect only forward, sequential
streams.

The following kstats have been added:

    kstat.zfs.misc.arcstats.sync_wait_for_async

How many sync reads have waited for async read
to complete. (less is better)

    kstat.zfs.misc.arcstats.demand_hit_predictive_prefetch

How many demand read didn't have to wait for I/O
because of predictive prefetch.  (more is better)

zfetch kstats have been similified to hits, misses, and max_streams,
with max_streams representing times when we were not able to create
new stream because we already have the maximum number of sequences
for a file.

The sysctl variable/loader tunable vfs.zfs.zfetch.block_cap have been
replaced by vfs.zfs.zfetch.max_distance, which controls maximum bytes
to prefetch per stream.

illumos/illumos-gate@cf6106c8a0d6598b045811f9650d66e07eb332af

Illumos ZFS issues:

    5987 zfs prefetch code needs work
    https://www.illumos.org/issues/5987

8 years agoRegression: fix pw usermod -d
bapt [Sat, 12 Sep 2015 08:24:25 +0000 (08:24 +0000)]
Regression: fix pw usermod -d

Mark the user has having been edited if -d option is passed to usermod and
so the request change of home directory actually happen

PR: 203052
Reported by: lenzi.sergio@gmail.com
MFC after: 2 days

8 years agoFixing a memory leak on module unloading.
avatar [Fri, 11 Sep 2015 22:43:35 +0000 (22:43 +0000)]
Fixing a memory leak on module unloading.

MFC after: 3 weeks

8 years agoWhitespace alignment
dteske [Fri, 11 Sep 2015 22:42:26 +0000 (22:42 +0000)]
Whitespace alignment

MFC after: 3 weeks
X-MFC-to: stable/10
X-MFC-with: 287696

8 years agoThe <arch>/mkisoimages.sh script in release knows how to add
dteske [Fri, 11 Sep 2015 21:45:41 +0000 (21:45 +0000)]
The <arch>/mkisoimages.sh script in release knows how to add
extra bits from an "xtra-bits-dir". This feature is unusable
from release/Makefile. Add an XTRADIR setting to use it.

Differential Revision: https://reviews.freebsd.org/D3633
Reviewed by: kmacy
MFC after: 3 weeks
X-MFC-to: stable/10
Relnotes: yes

8 years agoReplace `return' outside of function with exit
dteske [Fri, 11 Sep 2015 21:18:21 +0000 (21:18 +0000)]
Replace `return' outside of function with exit

MFC after: 3 days
X-MFC-to: stable/10
Pointy hat to: me

8 years agoUse a variable for readability
dteske [Fri, 11 Sep 2015 21:14:48 +0000 (21:14 +0000)]
Use a variable for readability

MFC after: 3 days
X-MFC-to: stable/10

8 years agoUpdate copyright
dteske [Fri, 11 Sep 2015 21:13:34 +0000 (21:13 +0000)]
Update copyright

MFC after: 3 days
X-MFC-to: stable/10

8 years agoBetter to reset trap and explicitly exit success
dteske [Fri, 11 Sep 2015 21:12:41 +0000 (21:12 +0000)]
Better to reset trap and explicitly exit success

MFC after: 3 days
X-MFC-to: stable/10

8 years agoRemove trailing newline at EOF
dteske [Fri, 11 Sep 2015 21:09:39 +0000 (21:09 +0000)]
Remove trailing newline at EOF

MFC after: 3 days
X-MFC-to: stable/10

8 years agoProduce meaningful exit code
dteske [Fri, 11 Sep 2015 21:08:46 +0000 (21:08 +0000)]
Produce meaningful exit code

MFC after: 3 days
X-MFC-to: stable/10

8 years agoExplicitly exit with success
dteske [Fri, 11 Sep 2015 21:01:26 +0000 (21:01 +0000)]
Explicitly exit with success

MFC after: 3 days
X-MFC-to: stable/10

8 years agoExplicitly exit with success
dteske [Fri, 11 Sep 2015 20:59:13 +0000 (20:59 +0000)]
Explicitly exit with success

MFC after: 3 days
X-MFC-to: stable/10

8 years agoUpdate copyrights
dteske [Fri, 11 Sep 2015 20:58:00 +0000 (20:58 +0000)]
Update copyrights

MFC after: 3 days
X-MFC-to: stable/10

8 years agoProduce meaningful exit code
dteske [Fri, 11 Sep 2015 20:56:36 +0000 (20:56 +0000)]
Produce meaningful exit code

MFC after: 3 days
X-MFC-to: stable/10

8 years agoRemove use of return outside of function
dteske [Fri, 11 Sep 2015 20:45:41 +0000 (20:45 +0000)]
Remove use of return outside of function

MFC after: 3 days
X-MFC-to: stable/10

8 years agoIgnore error results from newaliases(1)
dteske [Fri, 11 Sep 2015 20:39:41 +0000 (20:39 +0000)]
Ignore error results from newaliases(1)

MFC after: 3 days
X-MFC-to: stable/10

8 years agoSince contrib/libc++'s ancestry was never correct, subversion 1.8 and
dim [Fri, 11 Sep 2015 17:14:58 +0000 (17:14 +0000)]
Since contrib/libc++'s ancestry was never correct, subversion 1.8 and
higher cannot merge to it from the vendor area.

Re-bootstrap the ancestry by doing (apologies to your retinas):
* svn rm contrib/libc++
* svn cp ^/vendor/libc++/dist@276792 contrib/libc++
* svn cp ^/head/contrib/libc++/FREEBSD-upgrade@287629 contrib/libc++
* svn cp ^/head/contrib/libc++/include/__bit_reference@287629 contrib/libc++/include
* svn cp ^/head/contrib/libc++/include/__config@287629 contrib/libc++/include
* svn cp ^/head/contrib/libc++/include/__tree@287629 contrib/libc++/include
* svn cp ^/head/contrib/libc++/include/algorithm@287629 contrib/libc++/include
* svn cp ^/head/contrib/libc++/include/stdexcept@287629 contrib/libc++/include
* svn cp ^/head/contrib/libc++/include/type_traits@287629 contrib/libc++/include
* svn pd -R svn:mergeinfo contrib/libc++
* svn ps -F mergeinfo.txt contrib/libc++