]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoUse a static buffer in wpi_cmd - rather than alloc/free'ing the
adrian [Sun, 15 Mar 2015 20:50:23 +0000 (20:50 +0000)]
Use a static buffer in wpi_cmd - rather than alloc/free'ing the
beacon buffer frequently.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse WPI_RSSI_OFFSET instead of stat->noise (always 0 for me)
adrian [Sun, 15 Mar 2015 20:48:32 +0000 (20:48 +0000)]
Use WPI_RSSI_OFFSET instead of stat->noise (always 0 for me)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix debug category in wpi_read_eeprom_band()
adrian [Sun, 15 Mar 2015 20:48:00 +0000 (20:48 +0000)]
Fix debug category in wpi_read_eeprom_band()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove IBSS assocation processing to wpi_newassoc().
adrian [Sun, 15 Mar 2015 20:46:24 +0000 (20:46 +0000)]
Move IBSS assocation processing to wpi_newassoc().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agowpi_tx_done() shouldn't wait for wpi_start().
adrian [Sun, 15 Mar 2015 20:45:43 +0000 (20:45 +0000)]
wpi_tx_done() shouldn't wait for wpi_start().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd node table lock - addresses LOR in wpi_node_free().
adrian [Sun, 15 Mar 2015 20:44:52 +0000 (20:44 +0000)]
Add node table lock - addresses LOR in wpi_node_free().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoOptimise sc->rev processing.
adrian [Sun, 15 Mar 2015 20:43:58 +0000 (20:43 +0000)]
Optimise sc->rev processing.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse ring->queued for WPI_CMD_TX_DATA only.
adrian [Sun, 15 Mar 2015 20:43:22 +0000 (20:43 +0000)]
Use ring->queued for WPI_CMD_TX_DATA only.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove some code under WPI_LOCK().
adrian [Sun, 15 Mar 2015 20:42:41 +0000 (20:42 +0000)]
Move some code under WPI_LOCK().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove unnecessary locking.
adrian [Sun, 15 Mar 2015 20:41:57 +0000 (20:41 +0000)]
Remove unnecessary locking.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoEliminate the WPI_FLAG_BUSY flag.
adrian [Sun, 15 Mar 2015 20:40:59 +0000 (20:40 +0000)]
Eliminate the WPI_FLAG_BUSY flag.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd separate lock for TX queues.
adrian [Sun, 15 Mar 2015 20:40:11 +0000 (20:40 +0000)]
Add separate lock for TX queues.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoWrap node addition in STA mode into wpi_add_sta_node().
adrian [Sun, 15 Mar 2015 20:35:25 +0000 (20:35 +0000)]
Wrap node addition in STA mode into wpi_add_sta_node().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoReplace kernel unit allocator with local set of functions.
adrian [Sun, 15 Mar 2015 20:34:26 +0000 (20:34 +0000)]
Replace kernel unit allocator with local set of functions.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove key processing in wpi_tx_data.
adrian [Sun, 15 Mar 2015 20:33:13 +0000 (20:33 +0000)]
Move key processing in wpi_tx_data.

(This is in preparation for further work to support hardware encryption.)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove some un-needed variables.
adrian [Sun, 15 Mar 2015 20:32:12 +0000 (20:32 +0000)]
Remove some un-needed variables.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoReformatting - break lines ~ 80 characters.
adrian [Sun, 15 Mar 2015 20:31:21 +0000 (20:31 +0000)]
Reformatting - break lines ~ 80 characters.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agowpi_intr(): remove duplicate code
adrian [Sun, 15 Mar 2015 20:30:03 +0000 (20:30 +0000)]
wpi_intr(): remove duplicate code

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoReplace few numbers with named constants.
adrian [Sun, 15 Mar 2015 20:29:22 +0000 (20:29 +0000)]
Replace few numbers with named constants.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoWrap cast to (struct wpi_node *) into WPI_NODE macros
adrian [Sun, 15 Mar 2015 20:23:58 +0000 (20:23 +0000)]
Wrap cast to (struct wpi_node *) into WPI_NODE macros

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agomsleep() -> mtx_sleep()
adrian [Sun, 15 Mar 2015 20:22:16 +0000 (20:22 +0000)]
msleep() -> mtx_sleep()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix warning: Value stored to 'supportsa' is never read.
adrian [Sun, 15 Mar 2015 20:21:30 +0000 (20:21 +0000)]
Fix warning: Value stored to 'supportsa' is never read.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix error handling in wpi_scan().
adrian [Sun, 15 Mar 2015 20:20:43 +0000 (20:20 +0000)]
Fix error handling in wpi_scan().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix indentation - non-functional change.
adrian [Sun, 15 Mar 2015 20:19:54 +0000 (20:19 +0000)]
Fix indentation - non-functional change.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoCheck some variables only on active TX rings
adrian [Sun, 15 Mar 2015 20:19:01 +0000 (20:19 +0000)]
Check some variables only on active TX rings

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse correct pointer for wpi_softc
adrian [Sun, 15 Mar 2015 20:18:09 +0000 (20:18 +0000)]
Use correct pointer for wpi_softc

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix panics in wpi_tx_done() when powersave is enabled
adrian [Sun, 15 Mar 2015 20:17:25 +0000 (20:17 +0000)]
Fix panics in wpi_tx_done() when powersave is enabled

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix races between wpi_rx_done() and wpi_stop()
adrian [Sun, 15 Mar 2015 20:15:10 +0000 (20:15 +0000)]
Fix races between wpi_rx_done() and wpi_stop()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoDivide ackfailcnt by 2 (firmware decreases rate after two unsuccessful retries)
adrian [Sun, 15 Mar 2015 20:13:58 +0000 (20:13 +0000)]
Divide ackfailcnt by 2 (firmware decreases rate after two unsuccessful retries)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRun callout_reset() with mutex held.
adrian [Sun, 15 Mar 2015 20:13:07 +0000 (20:13 +0000)]
Run callout_reset() with mutex held.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd missed ieee80211_draintask()
adrian [Sun, 15 Mar 2015 20:12:16 +0000 (20:12 +0000)]
Add missed ieee80211_draintask()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix a typo (IEEE80211_S_SCAN -> IEEE80211_F_SCAN)
adrian [Sun, 15 Mar 2015 20:10:55 +0000 (20:10 +0000)]
Fix a typo (IEEE80211_S_SCAN -> IEEE80211_F_SCAN)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix mbuf mapping errors in wpi_cmd2() + add check for nsegs
adrian [Sun, 15 Mar 2015 20:09:47 +0000 (20:09 +0000)]
Fix mbuf mapping errors in wpi_cmd2() + add check for nsegs

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove the x86 specific files to be built in the amd64 loader.efi. This will
andrew [Sun, 15 Mar 2015 19:00:35 +0000 (19:00 +0000)]
Move the x86 specific files to be built in the amd64 loader.efi. This will
help with importing the arm and arm64 versions of loader.efi.

9 years agoAccording to Linux and QEMU, s/n equal to buffer is not zero-terminated.
mav [Sun, 15 Mar 2015 17:45:16 +0000 (17:45 +0000)]
According to Linux and QEMU, s/n equal to buffer is not zero-terminated.

This makes same s/n reported for both virtio and AHCI drivers.

MFC after: 2 weeks

9 years agoRemove redundant sysctl_handle_string() calls, the sbuf auto-drain takes
ian [Sun, 15 Mar 2015 17:39:38 +0000 (17:39 +0000)]
Remove redundant sysctl_handle_string() calls, the sbuf auto-drain takes
care of that.

Reviewed by: erj@

9 years agoClose potential race on blockif_close().
mav [Sun, 15 Mar 2015 16:18:03 +0000 (16:18 +0000)]
Close potential race on blockif_close().

Reported by: vangyzen
MFC after: 2 weeks

9 years agoFix networking problem after r280026.
mav [Sun, 15 Mar 2015 16:09:39 +0000 (16:09 +0000)]
Fix networking problem after r280026.

I've missed that network driver sometimes returns taken request back to
available queue without processing.  Add new helper function for that case.

Reported by: flo
MFC after: 2 weeks

9 years agoGive AHCI disk serial based on backing file path same as for virtio block.
mav [Sun, 15 Mar 2015 15:29:03 +0000 (15:29 +0000)]
Give AHCI disk serial based on backing file path same as for virtio block.

It is still not good that they may intersect on different hosts, but that
is better then intersecting on the same host.

MFC after: 2 weeks

9 years agoNow that DTrace stack traces handle exception frames better, skip fewer
rwatson [Sun, 15 Mar 2015 15:19:02 +0000 (15:19 +0000)]
Now that DTrace stack traces handle exception frames better, skip fewer
stack frames for FBT 'entry' probes on ARM.

MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoOn ARM, unlike some other architectures, saved $pc values from in-kernel
rwatson [Sun, 15 Mar 2015 15:17:34 +0000 (15:17 +0000)]
On ARM, unlike some other architectures, saved $pc values from in-kernel
traps do appear in the regular call stack, rather than only in a special
trap frame, so we don't need to inject the trap-frame $pc into a returned
stack trace in DTrace.

MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoRewrite virtio block device driver to work asynchronously and use the block
mav [Sun, 15 Mar 2015 14:57:11 +0000 (14:57 +0000)]
Rewrite virtio block device driver to work asynchronously and use the block
I/O interface.

Asynchronous operation, based on r280026 change, allows to not block virtual
CPU during I/O processing, that on slow/busy storage can take seconds.
Use of recently improved block I/O interface allows to process multiple
requests same time, that improves random I/O performance on wide storages.

Benchmarks of virtual disk, backed by ZVOL on RAID10 pool of 4 HDDs, show
~3.5 times random read performance improvements, while no degradation on
linear I/O.  Guest CPU usage during test dropped from 100% to almost zero.

MFC after: 2 weeks

9 years agoReplace the completely arbitrary '3' with '9' for the number of frames to
rwatson [Sun, 15 Mar 2015 14:12:40 +0000 (14:12 +0000)]
Replace the completely arbitrary '3' with '9' for the number of frames to
skip using the DTrace 'profile' provider on ARM.  This causes stack traces
to skip various driver-and callout-related things as they do on x86, where
the likewise arbitrary values are '6' (32-bit) and '10' (64-bit) for
similar sorts of reasons.

MFC after: 3 days
Sponsored by: DARPA, AFRL

9 years agoUpgrade our copy of clang, llvm and lldb to 3.6.0 release.
dim [Sun, 15 Mar 2015 13:31:13 +0000 (13:31 +0000)]
Upgrade our copy of clang, llvm and lldb to 3.6.0 release.

Please note that from 3.5.0 onwards, clang/llvm/lldb require C++11
support to build; see UPDATING for more information.

Release notes for llvm and clang can be found here:
<http://llvm.org/releases/3.6.0/docs/ReleaseNotes.html>
<http://llvm.org/releases/3.6.0/tools/clang/docs/ReleaseNotes.html>

Thanks to Ed Maste for the lldb part of this upgrade.

Exp-run: antoine

9 years agoMerge ^/head r279995 through r280029.
dim [Sun, 15 Mar 2015 11:58:52 +0000 (11:58 +0000)]
Merge ^/head r279995 through r280029.

9 years agoBump __FreeBSD_version again, and set real dates in UPDATING and
dim [Sun, 15 Mar 2015 11:56:43 +0000 (11:56 +0000)]
Bump __FreeBSD_version again, and set real dates in UPDATING and
ObsoleteFiles.inc, in preparation for the merge back to head.

9 years agoModify virtqueue helpers added in r253440 to allow queuing.
mav [Sun, 15 Mar 2015 11:37:07 +0000 (11:37 +0000)]
Modify virtqueue helpers added in r253440 to allow queuing.

Original virtqueue design allows queued and out-of-order processing, but
helpers added in r253440 suppose only direct blocking in-order one.
It could be fine for network, etc., but it is a huge limitation for storage
devices.

9 years agoImport mdocml 1.13.3
bapt [Sun, 15 Mar 2015 11:35:39 +0000 (11:35 +0000)]
Import mdocml 1.13.3

9 years agoBlock delete capability for read-only devices.
mav [Sun, 15 Mar 2015 08:09:56 +0000 (08:09 +0000)]
Block delete capability for read-only devices.

Submitted by: neel
MFC after: 2 weeks

9 years agoAdd a nulterm byte to the returned sysctl string.
ian [Sun, 15 Mar 2015 00:39:18 +0000 (00:39 +0000)]
Add a nulterm byte to the returned sysctl string.

PR: 195668

9 years agoInclude the nulterm byte in the sysctl string.
ian [Sun, 15 Mar 2015 00:36:08 +0000 (00:36 +0000)]
Include the nulterm byte in the sysctl string.

PR: 195668

9 years agoGo back to using sbuf_new() with a preallocated large buffer, to avoid
ian [Sat, 14 Mar 2015 23:57:33 +0000 (23:57 +0000)]
Go back to using sbuf_new() with a preallocated large buffer, to avoid
triggering an sbuf auto-drain copyout while holding a lock.

Pointed out by:    jhb
Pointy hat:     ian

9 years agoUse sbuf_printf() for sysctl strings instead of static buffers and snprintf.
ian [Sat, 14 Mar 2015 23:30:03 +0000 (23:30 +0000)]
Use sbuf_printf() for sysctl strings instead of static buffers and snprintf.

9 years agoUse sbuf_printf() for sysctl strings instead of stack buffers and snprintf().
ian [Sat, 14 Mar 2015 23:16:12 +0000 (23:16 +0000)]
Use sbuf_printf() for sysctl strings instead of stack buffers and snprintf().

9 years agoUse sysctl_handle_string() and the sbuf printf routines instead of large
ian [Sat, 14 Mar 2015 22:32:15 +0000 (22:32 +0000)]
Use sysctl_handle_string() and the sbuf printf routines instead of large
stack-allocated buffers and snprintf().

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
ian [Sat, 14 Mar 2015 21:41:00 +0000 (21:41 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
ian [Sat, 14 Mar 2015 21:40:51 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
ian [Sat, 14 Mar 2015 21:40:33 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
ian [Sat, 14 Mar 2015 21:40:24 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
ian [Sat, 14 Mar 2015 21:40:01 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoDefine a convenience macro, SYSCTL_OUT_STR() for handling strings the
ian [Sat, 14 Mar 2015 21:38:51 +0000 (21:38 +0000)]
Define a convenience macro, SYSCTL_OUT_STR() for handling strings the
standard way (including the nulterm byte in the data returned to userland).

This augments the existing sysctl_handle_string() in that this can be used
with const strings without ugly inappropriate casting.

9 years agoGive block I/O interface multiple (8) execution threads.
mav [Sat, 14 Mar 2015 21:15:45 +0000 (21:15 +0000)]
Give block I/O interface multiple (8) execution threads.

On parallel random I/O this allows better utilize wide storage pools.
To not confuse prefetcher on linear I/O, consecutive requests are executed
sequentially, following the same logic as was earlier implemented in CTL.

Benchmarks of virtual AHCI disk, backed by ZVOL on RAID10 pool of 4 HDDs,
show ~3.5 times random read performance improvements, while no degradation
on linear I/O.

MFC after: 2 weeks

9 years agoRegenerated llvm/clang manpages.
dim [Sat, 14 Mar 2015 19:22:15 +0000 (19:22 +0000)]
Regenerated llvm/clang manpages.

9 years agoUse sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
ian [Sat, 14 Mar 2015 18:46:33 +0000 (18:46 +0000)]
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
string returned to userland is nulterminated.

PR:           195668

9 years agoUse sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
ian [Sat, 14 Mar 2015 18:42:30 +0000 (18:42 +0000)]
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
string returned to userland is nulterminated.

PR:           195668

9 years agoFor now, disable the __clear_cache implementation for mips in
dim [Sat, 14 Mar 2015 18:38:07 +0000 (18:38 +0000)]
For now, disable the __clear_cache implementation for mips in
compiler-rt, since we do not yet have the required syscall.

9 years agoUse sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
ian [Sat, 14 Mar 2015 18:11:24 +0000 (18:11 +0000)]
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
string returned to userland is nulterminated.

PR: 195668

9 years agoAllow zvol_geom_worker to process BIO_DELETE's
smh [Sat, 14 Mar 2015 17:35:04 +0000 (17:35 +0000)]
Allow zvol_geom_worker to process BIO_DELETE's

If zvol_geom_start is called with a BIO_DELETE from a thread which can
sleep it queues it for later processing by the zvol_geom_worker. The
zvol_geom_worker didn't have a delete case so would simply loose the bio
hence preventing the original caller from every completing. In addition
an other unknown types would suffer the same fate.

Allow zvol_geom_worker to process BIO_DELETE's via zvol_strategy and
return unsupported for all unknown bio types.

MFC after: 2 weeks
Sponsored by: Multiplay

9 years agoMerge ^/head r279985 through r279994.
dim [Sat, 14 Mar 2015 17:25:17 +0000 (17:25 +0000)]
Merge ^/head r279985 through r279994.

9 years agoAmend r277940, by also disabling -Wcast-qual warnings for a few specific
dim [Sat, 14 Mar 2015 17:19:48 +0000 (17:19 +0000)]
Amend r277940, by also disabling -Wcast-qual warnings for a few specific
aesni files on i386.

9 years agoSet the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
ian [Sat, 14 Mar 2015 17:08:28 +0000 (17:08 +0000)]
Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
strings returned to userland include the nulterm byte.

Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases.  (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)

Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.

PR: 195668

9 years agoAdd a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags.
ian [Sat, 14 Mar 2015 16:02:11 +0000 (16:02 +0000)]
Add a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags.

The SBUF_INCLUDENUL flag causes the nulterm byte at the end of the string
to be counted in the length of the data.  If copying the data using the
sbuf_data() and sbuf_len() functions, or if writing it automatically with
a drain function, the net effect is that the nulterm byte is copied along
with the rest of the data.

9 years agoAdd checksums to identify data and NCQ command error log.
mav [Sat, 14 Mar 2015 14:06:37 +0000 (14:06 +0000)]
Add checksums to identify data and NCQ command error log.

MFC after: 2 weeks

9 years agorestore: Preserve timestamps to the nanosecond.
jilles [Sat, 14 Mar 2015 13:45:43 +0000 (13:45 +0000)]
restore: Preserve timestamps to the nanosecond.

The restore utility already knows the full-resolution timestamps, so the
only thing to do is to stop converting the timespecs to timevals and use
futimens() and utimensat().

Differential Revision: https://reviews.freebsd.org/D2020
Reviewed by: jhb

9 years agoMerge ^/head r279893 through r279984.
dim [Sat, 14 Mar 2015 13:08:00 +0000 (13:08 +0000)]
Merge ^/head r279893 through r279984.

9 years agoRevert r279934, r279938; this is going to be fixed in sbuf instead.
ian [Sat, 14 Mar 2015 13:04:39 +0000 (13:04 +0000)]
Revert r279934, r279938; this is going to be fixed in sbuf instead.

PR: 195668

9 years agoRevert r279933; this is going to be fixed in sbuf instead.
ian [Sat, 14 Mar 2015 13:02:08 +0000 (13:02 +0000)]
Revert r279933; this is going to be fixed in sbuf instead.

PR: 195668

9 years agoRevert r279932; this is going to be fixed in the sbuf code instead.
ian [Sat, 14 Mar 2015 13:00:37 +0000 (13:00 +0000)]
Revert r279932; this is going to be fixed in the sbuf code instead.

PR: 195668

9 years agoPull in r231965 from upstream compiler-rt trunk (by Jörg Sonnenberger):
dim [Sat, 14 Mar 2015 12:40:19 +0000 (12:40 +0000)]
Pull in r231965 from upstream compiler-rt trunk (by Jörg Sonnenberger):

  Refactor float to integer conversion to share the same code.
  80bit Intel/PPC long double is excluded due to lacking support
  for the abstraction. Consistently provide saturation logic.
  Extend to long double on 128bit IEEE extended platforms.

  Initial patch with test cases from GuanHong Liu.
  Reviewed by Steve Canon.

  Differential Revision: http://reviews.llvm.org/D2804

Pull in r232107 from upstream compiler-rt trunk (by Ed Maste):

  Use signed int implementation for __fixint

Requested by: emaste

9 years agoAllow relative pathnames in SRCS, so as to enable building software
dim [Sat, 14 Mar 2015 12:29:44 +0000 (12:29 +0000)]
Allow relative pathnames in SRCS, so as to enable building software
which includes more than one file with the same name, in different
directories.

For example, setting:

SRCS+= foo/foo.c bar/foo.c baz/foo.c

will now create separate objdirs 'foo', 'bar' and 'baz' for each of the
sources in the list, and use those objdirs for the corresponding object
files.

Reviewed by: brooks, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D1984

9 years agoSlightly polish virtual AHCI CD reporting.
mav [Sat, 14 Mar 2015 12:18:26 +0000 (12:18 +0000)]
Slightly polish virtual AHCI CD reporting.

MFC after: 2 weeks

9 years agoFix NOP and IDLE commands for virtual AHCI disks.
mav [Sat, 14 Mar 2015 10:38:25 +0000 (10:38 +0000)]
Fix NOP and IDLE commands for virtual AHCI disks.

MFC after: 2 weeks

9 years agoAdd support for NCQ variant of DSM TRIM for virtual AHCI disks.
mav [Sat, 14 Mar 2015 09:46:43 +0000 (09:46 +0000)]
Add support for NCQ variant of DSM TRIM for virtual AHCI disks.

The code is not really tested yet due to lack of initiator support.

Requested by: imp
MFC after: 2 weeks

9 years agoImprove NCQ errors reporting for virtual AHCI disks.
mav [Sat, 14 Mar 2015 08:45:54 +0000 (08:45 +0000)]
Improve NCQ errors reporting for virtual AHCI disks.

While this implementation is still not perfect, previous was just broken.

MFC after: 2 weeks

9 years agoCompile some modules - I'm going to eventually just compile all the
adrian [Sat, 14 Mar 2015 08:29:03 +0000 (08:29 +0000)]
Compile some modules - I'm going to eventually just compile all the
modules, but these are a subset of things that are worth playing with
in deployed APs.

(ipfw in particular is rather nice.)

9 years agoAdd board support for the TP-Link TL-WR1043nd v2.
adrian [Sat, 14 Mar 2015 07:59:54 +0000 (07:59 +0000)]
Add board support for the TP-Link TL-WR1043nd v2.

This is a QCA9558 based design with on-chip 2GHz 3x3 11n wifi,
AR8327N switch, 64MB RAM and 8MB flash.

Of course, it runs FreeBSD.

9 years agoUse lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when
neel [Sat, 14 Mar 2015 02:32:08 +0000 (02:32 +0000)]
Use lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when
vmm.ko is loaded.

Also relocate the 'justreturn' IPI handler to be alongside all other handlers.

Requested by: kib

9 years agoAdd x86 specific APIs 'lapic_ipi_alloc()' and 'lapic_ipi_free()' to allow IPI
neel [Sat, 14 Mar 2015 00:30:41 +0000 (00:30 +0000)]
Add x86 specific APIs 'lapic_ipi_alloc()' and 'lapic_ipi_free()' to allow IPI
vectors to be dynamically allocated. This allows kernel modules like vmm.ko
to allocate unique IPI slots when loaded (as opposed to hard allocating one
or more vectors).

Also, reorganize the fixed IPI vectors to create a contiguous space for
dynamic IPI allocation.

Reviewed by: kib, jhb
Differential Revision: https://reviews.freebsd.org/D2042

9 years agocxgbe(4): fix if_media handling for T520-BT cards. 1Gbps and 100Mbps
np [Sat, 14 Mar 2015 00:02:53 +0000 (00:02 +0000)]
cxgbe(4):  fix if_media handling for T520-BT cards.  1Gbps and 100Mbps
are valid for this card.

MFC after: 1 week

9 years agoRemove incorrect SERR register setting.
mav [Fri, 13 Mar 2015 21:01:25 +0000 (21:01 +0000)]
Remove incorrect SERR register setting.

At this point we have nothing to report through that register.

MFC after: 2 weeks

9 years agoChange prdbc value reporting.
mav [Fri, 13 Mar 2015 20:56:17 +0000 (20:56 +0000)]
Change prdbc value reporting.

MFC after: 2 weeks

9 years agoMark xo_err(3), xo_errx(3), and xo_errc(3) as __dead2.
trasz [Fri, 13 Mar 2015 20:14:55 +0000 (20:14 +0000)]
Mark xo_err(3), xo_errx(3), and xo_errc(3) as __dead2.

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

9 years agoPolish AHCI disk identify data and fix speed negotiation.
mav [Fri, 13 Mar 2015 20:14:35 +0000 (20:14 +0000)]
Polish AHCI disk identify data and fix speed negotiation.

MFC after: 2 weeks

9 years agoFix SATA Gen3 speed constants.
mav [Fri, 13 Mar 2015 20:08:35 +0000 (20:08 +0000)]
Fix SATA Gen3 speed constants.

MFC after: 1 week

9 years agolibc: plug memory leaks in edge cases for the posix1e code.
pfg [Fri, 13 Mar 2015 18:42:43 +0000 (18:42 +0000)]
libc: plug memory leaks in edge cases for the posix1e code.

CID: 1016705
CID: 1016706
CID: 1016707

Differential Revision: https://reviews.freebsd.org/D2023

9 years agoAdd support for PIO variants of READ/WRITE commands for AHCI disks.
mav [Fri, 13 Mar 2015 18:35:38 +0000 (18:35 +0000)]
Add support for PIO variants of READ/WRITE commands for AHCI disks.

AHCI API hides all PIO specifics, so this functionality is almost free.

MFC after: 2 weeks

9 years agoUse ahci_write_fis_d2h() for commands completion.
mav [Fri, 13 Mar 2015 18:04:07 +0000 (18:04 +0000)]
Use ahci_write_fis_d2h() for commands completion.

MFC after: 2 weeks

9 years agoAdd DSM TRIM command support for virtual AHCI disks.
mav [Fri, 13 Mar 2015 16:43:52 +0000 (16:43 +0000)]
Add DSM TRIM command support for virtual AHCI disks.

It works only for virtual disks backed by ZVOLs and raw devices supporting
BIO_DELETE.  Virtual disks backed by files won't report this capability.

MFC after: 2 weeks
Relnotes: yes

9 years agoProperly initialize scope zone id when next hop address stored
ae [Fri, 13 Mar 2015 13:46:50 +0000 (13:46 +0000)]
Properly initialize scope zone id when next hop address stored
directly in the O_FORWARD_IP6 opcode. Use getnameinfo(3) to formatting
the IPv6 addresses of such opcodes.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC

9 years agoAdd -noauto autofs map, for automatic handling of fstab entries
trasz [Fri, 13 Mar 2015 12:44:46 +0000 (12:44 +0000)]
Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation