freebsd.git
9 years agoCheck channels which are passed in IBSS mode.
adrian [Sun, 3 May 2015 23:08:25 +0000 (23:08 +0000)]
Check channels which are passed in IBSS mode.

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

9 years agoDo not disable beacon notifications (unbreaks scanning on passive channels).
adrian [Sun, 3 May 2015 23:06:19 +0000 (23:06 +0000)]
Do not disable beacon notifications (unbreaks scanning on passive channels).

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

9 years agoFix pause scan time calculation (the remainder must be less than beacon interval).
adrian [Sun, 3 May 2015 23:03:06 +0000 (23:03 +0000)]
Fix pause scan time calculation (the remainder must be less than beacon interval).

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

9 years agoFix active/passive dwell calculation.
adrian [Sun, 3 May 2015 22:56:36 +0000 (22:56 +0000)]
Fix active/passive dwell calculation.

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

9 years agoTurn off led when leaving RUN state.
adrian [Sun, 3 May 2015 22:55:06 +0000 (22:55 +0000)]
Turn off led when leaving RUN state.

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

9 years agoFor eabi 5 (what FreeBSD uses), be sure to tag all executables and
imp [Sun, 3 May 2015 22:51:42 +0000 (22:51 +0000)]
For eabi 5 (what FreeBSD uses), be sure to tag all executables and
shared libraries as either SOFT or HARD float to comply with the EABI
standard.

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

9 years agoWhen merging the floating point type attribute, and reporting an error
imp [Sun, 3 May 2015 22:51:29 +0000 (22:51 +0000)]
When merging the floating point type attribute, and reporting an error
when things don't match, report which file has them and which one
doesn't correctly.

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

9 years agoAdd TX status codes (obtained from iwlegacy)
adrian [Sun, 3 May 2015 22:49:47 +0000 (22:49 +0000)]
Add TX status codes (obtained from iwlegacy)

PR: kern/197143
Differential Revision: Andriy Voskoboinyk <s3erios@gmail.com>
Obtained from: Linux drivers/net/wireless/iwlegacy

9 years agoMove radiooff_task to the internal taskqueue.
adrian [Sun, 3 May 2015 22:47:06 +0000 (22:47 +0000)]
Move radiooff_task to the internal taskqueue.

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

9 years agoUse another workaround for scanning.
adrian [Sun, 3 May 2015 22:43:45 +0000 (22:43 +0000)]
Use another workaround for scanning.

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

9 years agoAdd wpi_check_bss_filter()
adrian [Sun, 3 May 2015 22:34:32 +0000 (22:34 +0000)]
Add wpi_check_bss_filter()

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

9 years agoFix KASSERT statements in if_wpi_debug.h
adrian [Sun, 3 May 2015 22:32:45 +0000 (22:32 +0000)]
Fix KASSERT statements in if_wpi_debug.h

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

9 years agoRemove workaround for bug 199676.
adrian [Sun, 3 May 2015 22:30:11 +0000 (22:30 +0000)]
Remove workaround for bug 199676.

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

9 years agoRemove old iv_bss entry from the node table
adrian [Sun, 3 May 2015 22:28:42 +0000 (22:28 +0000)]
Remove old iv_bss entry from the node table

This may happen on RUN -> SCAN -> RUN -> SCAN state transition:

1. RUN -> SCAN: in ieee80211_sta_join1(): iv_bss will be moved to obss,
   refcnt will be reduced by 2 (default minimum).

Now, if old iv_bss have some extra references (for example, from
unacknowledged probe responses), it will not be freed and will stay
in the node table.

2. SCAN -> RUN.

3. If old iv_bss will not be deleted by the time when the next RUN -> SCAN
   state transition occurs, then sta_leave() will reduce it's reference
   counter once more. As a result, two last users will free it -> this will
   lead to kernel panic.

In this patch old iv_bss entry is explicitly removed from the node table in
ieee80211_sta_join1() (as a result, it will not be processed by sta_leave()).

PR: kern/199676
Differential Revision: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd a few local variables to improve readability.
adrian [Sun, 3 May 2015 22:13:55 +0000 (22:13 +0000)]
Add a few local variables to improve readability.

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

9 years agoRemove this; it's currently a no-op.
adrian [Sun, 3 May 2015 22:10:28 +0000 (22:10 +0000)]
Remove this; it's currently a no-op.

History note: it's good to document what the driver expects like this even
if it's currently a no-op.

Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRetry twice at the same rate.
adrian [Sun, 3 May 2015 20:56:33 +0000 (20:56 +0000)]
Retry twice at the same rate.

Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoImplement basic PxTFD.STS.BSY reporting.
mav [Sun, 3 May 2015 07:43:58 +0000 (07:43 +0000)]
Implement basic PxTFD.STS.BSY reporting.

MFC after: 2 weeks

9 years agoFix the vt(4) framebuffer driver on RPi 2.
loos [Sat, 2 May 2015 22:48:56 +0000 (22:48 +0000)]
Fix the vt(4) framebuffer driver on RPi 2.

Use the BCM2835_MBOX_CHAN_PROP mbox channel to setup the framebuffer,
remove DMA code (its now done in bcm2835_mbox.c).

Also adjust the color palette when bcm2708_fb.fbswap is set.  The
firmware used on RPi 2 uses this mode.

Tested on: RPi-B and RPi 2 with 16, 24 and 32bpp
Note: The 32bpp mode on RPi-B has the red and blue swapped, this
is a know problem (not a driver problem).

9 years agoFix the sc(4) framebuffer driver on RPi 2.
loos [Sat, 2 May 2015 22:40:41 +0000 (22:40 +0000)]
Fix the sc(4) framebuffer driver on RPi 2.

Use the BCM2835_MBOX_CHAN_PROP mbox channel to setup the framebuffer,
remove unused code and unnecessary includes.

Adjust the color palette when bcm2708_fb.fbswap is set on /chosen/bootargs
node of DTB.  The firmware used on RPi 2 uses this mode.

Tested on: RPi-B and RPi 2 with 16, 24 and 32bpp

9 years agoAdd the routines to query and setup the framebuffer state using the
loos [Sat, 2 May 2015 22:24:33 +0000 (22:24 +0000)]
Add the routines to query and setup the framebuffer state using the
BCM2835_MBOX_CHAN_PROP channel.  The old channel (BCM2835_MBOX_CHAN_FB)
seems deprecated on recent firmware versions and is causing a freeze on
RPi 2.

The actual changes in the framebuffer drivers will follow in subsequent
commits.

9 years agoFix the kernel ident for RPI2.
loos [Sat, 2 May 2015 20:41:49 +0000 (20:41 +0000)]
Fix the kernel ident for RPI2.

9 years agoAfter r281643 an #ifdef IFT_FOO preprocessor directive returns false,
glebius [Sat, 2 May 2015 20:37:40 +0000 (20:37 +0000)]
After r281643 an #ifdef IFT_FOO preprocessor directive returns false,
since types became a enum C type.  Some software uses such ifdefs to
determine whether an operating systems supports certain interface type.
Of course, such check is bogus. E.g. FreeBSD defines about 250 interface
types, but supports only around 20.
However, we need not upset such software so provide a set of defines. The
current set was taken to suffice the dhcpd.

Reported & tested by: Guy Yur <guyyur gmail.com>

9 years agoRemove #ifdef IFT_FOO.
glebius [Sat, 2 May 2015 20:31:27 +0000 (20:31 +0000)]
Remove #ifdef IFT_FOO.

Submitted by: Guy Yur <guyyur gmail.com>

9 years agoInstead of reading, validating and adjusting value of the vm.swap_async_max
glebius [Sat, 2 May 2015 20:27:37 +0000 (20:27 +0000)]
Instead of reading, validating and adjusting value of the vm.swap_async_max
in the main swapper work cycle, do it in the sysctl handler.  This removes
extra mutex acquisition from the main cycle and makes the sysctl knob return
error on an invalid value, instead of accepting and fixing it.

Reviewed by: kib
Sponsored by: Netflix
Sponsored by: Nginx, Inc.

9 years agoRemove an unused variable.
loos [Sat, 2 May 2015 20:14:43 +0000 (20:14 +0000)]
Remove an unused variable.

9 years agoDon't advertise the Intel SMX capability to the guest.
neel [Sat, 2 May 2015 19:07:49 +0000 (19:07 +0000)]
Don't advertise the Intel SMX capability to the guest.

Reported by: Leon Dang (ldang@nahannisys.com)
MFC after: 1 week

9 years agonv_malloc can fail in userland.
oshogbo [Sat, 2 May 2015 18:12:34 +0000 (18:12 +0000)]
nv_malloc can fail in userland.
Add check to prevent a NULL pointer dereference.

Pointed out by: mjg
Approved by: pjd (mentor)

9 years agoRemove duplicated code using macro template for the nvlist_add_.* functions.
oshogbo [Sat, 2 May 2015 18:10:45 +0000 (18:10 +0000)]
Remove duplicated code using macro template for the nvlist_add_.* functions.

Approved by: pjd (mentor)

9 years agoAdd test case for unpack with diffrent flags.
oshogbo [Sat, 2 May 2015 18:07:47 +0000 (18:07 +0000)]
Add test case for unpack with diffrent flags.

Approved by: pjd (mentor)

9 years agoIntroduce the NV_FLAG_NO_UNIQUE flag. When set, it allows to store
oshogbo [Sat, 2 May 2015 18:03:47 +0000 (18:03 +0000)]
Introduce the NV_FLAG_NO_UNIQUE flag. When set, it allows to store
multiple values using the same key in a nvlist.

Approved by: pjd (mentor)
Obtained from: WHEEL Systems (http://www.wheelsystems.com)

Update man page.

Reviewed by: AllanJude
Approved by: pjd (mentor)

9 years agoApproved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.
oshogbo [Sat, 2 May 2015 17:45:52 +0000 (17:45 +0000)]
Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.

Change the nvlist_recv() function to take additional argument that
specifies flags expected on the received nvlist. Receiving a nvlist with
different set of flags than the ones we expect might lead to undefined
behaviour, which might be potentially dangerous.

Update consumers of this and related functions and update the tests.

Approved by: pjd (mentor)

Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist
and cap_xfer_nvlist.

Reviewed by: AllanJude
Approved by: pjd (mentor)

9 years agoInitialize PxCMD on reset and make its read-only bits such.
mav [Sat, 2 May 2015 16:11:29 +0000 (16:11 +0000)]
Initialize PxCMD on reset and make its read-only bits such.

MFC after: 2 weeks

9 years agoHandle ATA_SEND_FPDMA_QUEUED as NCQ in ahci_port_stop().
mav [Sat, 2 May 2015 14:43:37 +0000 (14:43 +0000)]
Handle ATA_SEND_FPDMA_QUEUED as NCQ in ahci_port_stop().

MFC after: 1 week

9 years agoCapsicumize col(1)
bapt [Sat, 2 May 2015 12:22:24 +0000 (12:22 +0000)]
Capsicumize col(1)

9 years agoActually push the right tests
bapt [Sat, 2 May 2015 12:19:24 +0000 (12:19 +0000)]
Actually push the right tests

9 years agoAdd regression test about reverse line feed to col(1)
bapt [Sat, 2 May 2015 12:08:28 +0000 (12:08 +0000)]
Add regression test about reverse line feed to col(1)

9 years agoAdd regression tests for soelim(1)
bapt [Sat, 2 May 2015 11:09:58 +0000 (11:09 +0000)]
Add regression tests for soelim(1)

9 years agoFix an off-by-one bug in string/array handling which lead to memory overwrite
bz [Sat, 2 May 2015 08:31:16 +0000 (08:31 +0000)]
Fix an off-by-one bug in string/array handling which lead to memory overwrite
and follow-up assertion errors on at least ARM after r282257,
with nvp_magic being 0x6e7600:
Assertion failed: ((nvp)->nvp_magic == 0x6e7670), function nvpair_name, file .../subr_nvpair.c, line 713.

Sponsored by: DARPA/AFRL

9 years agoEmulate machine check related MSRs to allow guest OSes like Windows to boot.
neel [Sat, 2 May 2015 04:19:11 +0000 (04:19 +0000)]
Emulate machine check related MSRs to allow guest OSes like Windows to boot.

Reported by: Leon Dang (ldang@nahannisys.com)
MFC after: 2 weeks

9 years agoAdvertise an additional memory BAR in the "dummy" device emulation.
neel [Sat, 2 May 2015 03:25:24 +0000 (03:25 +0000)]
Advertise an additional memory BAR in the "dummy" device emulation.

This is useful for testing the MOVS emulation when both the source and
destination addresses are in the MMIO space.

MFC after: 1 week

9 years agoRemove support for being compiled under OABI. We don't support that
imp [Sat, 2 May 2015 03:01:03 +0000 (03:01 +0000)]
Remove support for being compiled under OABI. We don't support that
any more, so this is just dead code.

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

9 years agofork(2): Add a note to the effect that kqueue descriptors, unlike other
markj [Sat, 2 May 2015 00:29:27 +0000 (00:29 +0000)]
fork(2): Add a note to the effect that kqueue descriptors, unlike other
descriptor types, are not inherited from the parent process.

Reported by: kmacy
MFC after: 1 week

9 years agoRemove a stale reference to the stop_scheduler_on_panic tunable, which
markj [Sat, 2 May 2015 00:27:58 +0000 (00:27 +0000)]
Remove a stale reference to the stop_scheduler_on_panic tunable, which
itself was removed in r243515.

MFC after: 1 week

9 years agoDon't drop the idr lock before verifying that the newly-inserted element
markj [Sat, 2 May 2015 00:26:38 +0000 (00:26 +0000)]
Don't drop the idr lock before verifying that the newly-inserted element
is present in the tree. Otherwise there exists a window during which the
element could be removed by another thread, triggering an incorrect
assertion failure.

Reviewed by: jeff
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

9 years agoImprove compatibility groff's soelim
bapt [Fri, 1 May 2015 23:54:09 +0000 (23:54 +0000)]
Improve compatibility groff's soelim
While here implement -C from GNU groff

Reported by: delphij

9 years agoCorrect - handling.
delphij [Fri, 1 May 2015 22:43:26 +0000 (22:43 +0000)]
Correct - handling.

Reported by: pkg-fallout
X-MFC-with: r282318

9 years agoImport sqlite3 3.8.9
bapt [Fri, 1 May 2015 21:59:32 +0000 (21:59 +0000)]
Import sqlite3 3.8.9

9 years agoAdd a note about the replacement of GNU groff's soelim(1)
bapt [Fri, 1 May 2015 21:26:40 +0000 (21:26 +0000)]
Add a note about the replacement of GNU groff's soelim(1)

9 years agoNo need for result_use_check attribute in reallocf(3).
pfg [Fri, 1 May 2015 20:40:48 +0000 (20:40 +0000)]
No need for result_use_check attribute in reallocf(3).

9 years agoApply the copyright the the same owners as the original malloc(3) where most of
bapt [Fri, 1 May 2015 20:37:59 +0000 (20:37 +0000)]
Apply the copyright the the same owners as the original malloc(3) where most of
the text here comes from

Reported by: many
Discussed with: miod@OpenBSD.org
Pointyhat to: bapt

9 years agoFix the loader for sparc64.
andreast [Fri, 1 May 2015 20:35:09 +0000 (20:35 +0000)]
Fix the loader for sparc64.
The commit from r279799 missed the adaptation of md_load in
sparc64/loader/main.c. This resulted in Memory Address Align issues at the
early boot stage.

Tested on a netbooted Fire 120.

9 years agoBump _FreeBSD_version after reallocarray import
bapt [Fri, 1 May 2015 20:25:47 +0000 (20:25 +0000)]
Bump _FreeBSD_version after reallocarray import

Requested by: delphij

9 years agoReplace groff's soelim by soeliminate(1) renamed soelim(1)
bapt [Fri, 1 May 2015 20:08:25 +0000 (20:08 +0000)]
Replace groff's soelim by soeliminate(1) renamed soelim(1)

9 years agoMove reallocarray definition to the _BSD_VISIBLE block
bapt [Fri, 1 May 2015 19:14:32 +0000 (19:14 +0000)]
Move reallocarray definition to the _BSD_VISIBLE block
Add the required __alloc_size attributes

Requested by: pfg

9 years agolibc now has reallocarray
bapt [Fri, 1 May 2015 18:34:29 +0000 (18:34 +0000)]
libc now has reallocarray

9 years agoRemove bundled reallocarray(3) since it is now in libc
bapt [Fri, 1 May 2015 18:32:54 +0000 (18:32 +0000)]
Remove bundled reallocarray(3) since it is now in libc

9 years agoImport reallocarray(3) from OpenBSD
bapt [Fri, 1 May 2015 18:32:16 +0000 (18:32 +0000)]
Import reallocarray(3) from OpenBSD

Add a manpage for it, assign the copyright to the OpenBSD project on it since it
is mostly copy/paste from OpenBSD manpage.
style(9) fixes

Differential Revision: https://reviews.freebsd.org/D2420
Reviewed by: kib

9 years agoAdd nvlist_flags() function, which returns nvlist's public flags.
oshogbo [Fri, 1 May 2015 17:50:24 +0000 (17:50 +0000)]
Add nvlist_flags() function, which returns nvlist's public flags.

Approved by: pjd (mentor)

9 years agoUse defines to improve clarity
bapt [Fri, 1 May 2015 17:33:32 +0000 (17:33 +0000)]
Use defines to improve clarity

MFC after: 2 weeks

9 years agocol: fixing 25 year old bug
bapt [Fri, 1 May 2015 17:18:07 +0000 (17:18 +0000)]
col: fixing 25 year old bug

Makes col(1) respect POSIX again for escape sequences as decribed in its manpage
The bug was introduced in CSRG in 1990
This also reverts r280911

Differential Revision: https://reviews.freebsd.org/D2424
Reviewed by: jhb
MFC after: 2 weeks

9 years agoSort MLINKS alphabetically.
oshogbo [Fri, 1 May 2015 16:41:46 +0000 (16:41 +0000)]
Sort MLINKS alphabetically.

Approved by: pjd (mentor)

9 years agoOptionalObsoleteFiles: don't remove c++filt when using ELF Tool Chain
emaste [Fri, 1 May 2015 16:37:40 +0000 (16:37 +0000)]
OptionalObsoleteFiles: don't remove c++filt when using ELF Tool Chain

c++filt is listed here twice, for MK_CXX == no and MK_GCC == no, but
r282285 only caught one of them.

9 years agoRemove symlinks to the nvlist_.*[vf] functions.
oshogbo [Fri, 1 May 2015 16:31:54 +0000 (16:31 +0000)]
Remove symlinks to the nvlist_.*[vf] functions.
This should be done with r282257 commit.

Approved by: pjd (mentor)

9 years agor281630 relaxed the limits on the vectors that can be asserted in the IRRs.
neel [Fri, 1 May 2015 16:00:29 +0000 (16:00 +0000)]
r281630 relaxed the limits on the vectors that can be asserted in the IRRs.

Do the same when transitioning a vector from the IRR to the ISR and also
when extinguishing it from the ISR in response to an EOI.

Reported by: Leon Dang (ldang@nahannisys.com)
MFC after: 2 weeks

9 years agoAdd a state transition call to show that we have entered TIME_WAIT.
gnn [Fri, 1 May 2015 12:49:03 +0000 (12:49 +0000)]
Add a state transition call to show that we have entered TIME_WAIT.
Although this is not important to the rest of the TCP processing
it is a conveneint way to make the DTrace state-transition probe
catch this important state change.

MFC after: 1 week

9 years agoRemove the extra extern which makes gcc complain; I assume it came from
bz [Fri, 1 May 2015 12:10:36 +0000 (12:10 +0000)]
Remove the extra extern which makes gcc complain; I assume it came from
r282289.

We do include ixgbe.h which does include ixgbe_common.h which has the
extern statement for ixgbe_stop_mac_link_on_d3_82599().

9 years agoUnreak DNS usage through libcapsicum, which broke, e.g., ping in r282252
bz [Fri, 1 May 2015 11:56:21 +0000 (11:56 +0000)]
Unreak DNS usage through libcapsicum, which broke, e.g., ping in r282252
with what looks like a copy and paste error.

Sponsored by: DARPA/AFRL

9 years agoFix font issues
bapt [Fri, 1 May 2015 11:46:24 +0000 (11:46 +0000)]
Fix font issues

Submitted by: heirloom doctools upstream

9 years agoEmulate MSR_SYSCFG which is accessed by Linux on AMD cpus when MTRRs are
neel [Fri, 1 May 2015 05:11:14 +0000 (05:11 +0000)]
Emulate MSR_SYSCFG which is accessed by Linux on AMD cpus when MTRRs are
enabled.

MFC after: 2 weeks

9 years agoAdd a -v to tell where each symbol is resolved from.
bdrewery [Fri, 1 May 2015 05:01:56 +0000 (05:01 +0000)]
Add a -v to tell where each symbol is resolved from.

Sponsored by: EMC / Isilon Storage Division

9 years agoFix a comment
bdrewery [Fri, 1 May 2015 04:35:42 +0000 (04:35 +0000)]
Fix a comment

9 years agoFix build by adding ixgbe_x550.c to sys/conf/files for ixgbe.
erj [Fri, 1 May 2015 03:33:31 +0000 (03:33 +0000)]
Fix build by adding ixgbe_x550.c to sys/conf/files for ixgbe.

Submitted by: neel
Approved by: jfv (mentor)

9 years agocrunchide: Restore local EM_AARCH64 constant for bootstrapping
emaste [Thu, 30 Apr 2015 23:48:05 +0000 (23:48 +0000)]
crunchide: Restore local EM_AARCH64 constant for bootstrapping

Most of the EM_* constants are available in all supported host branches,
but EM_AARCH64 was added relatively recently. Add it back to fix
building HEAD on 10.x.

Noticed by: adrian, jmallett

9 years agoInclude makefiles necessary to make ixgbe build with the new code.
erj [Thu, 30 Apr 2015 22:56:43 +0000 (22:56 +0000)]
Include makefiles necessary to make ixgbe build with the new code.

Originally supposed to be included in r282289.

Differential Revision: D2414

9 years agoAdd support for certain Intel X550 devices.
erj [Thu, 30 Apr 2015 22:53:27 +0000 (22:53 +0000)]
Add support for certain Intel X550 devices.

These include standalone X550 adapters, X552 10GbE backplane, and
X552/X557-AT 10GBASE-T; with the latter two being integrated into Xeon D SoCs.

As well, this bumps the ixgbe version number to 2.8.3, and includes updates
to shared code for support for the new devices.

Differential Revision: D2414
Reviewed by: gnn, adrian
Approved by: jfv (mentor), gnn (mentor)

9 years agoActually add c++filt's Makefile
emaste [Thu, 30 Apr 2015 22:51:15 +0000 (22:51 +0000)]
Actually add c++filt's Makefile

Missed in r282285

Pointy hat to: emaste

9 years agoDon't require <sys/cpuset.h> to be always included before <machine/vmm.h>.
neel [Thu, 30 Apr 2015 22:23:22 +0000 (22:23 +0000)]
Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>.

Only a subset of source files that include <machine/vmm.h> need to use the
APIs that require the inclusion of <sys/cpuset.h>.

MFC after: 1 week

9 years agoFix KASSERT introduced in r282155.
melifaro [Thu, 30 Apr 2015 21:51:12 +0000 (21:51 +0000)]
Fix KASSERT introduced in r282155.

Found by: dhw

9 years agoAdd ELF Tool Chain's c++filt to the build
emaste [Thu, 30 Apr 2015 21:30:33 +0000 (21:30 +0000)]
Add ELF Tool Chain's c++filt to the build

Differential Revision: https://reviews.freebsd.org/D2408
Reviewed by: brooks, imp
Sponsored by: The FreeBSD Foundation

9 years agoWhen an instruction cannot be decoded just return to userspace so bhyve(8)
neel [Thu, 30 Apr 2015 21:00:47 +0000 (21:00 +0000)]
When an instruction cannot be decoded just return to userspace so bhyve(8)
can dump the instruction bytes.

Requested by: grehan
MFC after: 1 week

9 years agoMark local function as static as a result of removing recursion.
oshogbo [Thu, 30 Apr 2015 20:50:42 +0000 (20:50 +0000)]
Mark local function as static as a result of removing recursion.

Approved by: pjd (mentor)

9 years agoRename macros to use prefix ERRNO. Add macro ERRNO_SET. Now
oshogbo [Thu, 30 Apr 2015 20:47:33 +0000 (20:47 +0000)]
Rename macros to use prefix ERRNO. Add macro ERRNO_SET. Now
ERRNO_{RESTORE/SAVE} must by used together, additional variable is not
needed. Always use ERRNO_{SAVE/RESTORE/SET} macros.

Approved by: pjd (mentor)

9 years agoAdvertise the MTRR feature via CPUID and emulate the minimal set of MTRR MSRs.
neel [Thu, 30 Apr 2015 19:23:50 +0000 (19:23 +0000)]
Advertise the MTRR feature via CPUID and emulate the minimal set of MTRR MSRs.
This is required for booting Windows guests.

Reported by: Leon Dang (ldang@nahannisys.com)
MFC after: 2 weeks

9 years agoVarious fixes to the stats in igb(4), ixgbe(4), and ixl(4).
jhb [Thu, 30 Apr 2015 18:23:38 +0000 (18:23 +0000)]
Various fixes to the stats in igb(4), ixgbe(4), and ixl(4).
- Use hardware counters for ifnet stats in igb(4) when possible.  This
  ensures these stats include packets that bypass the regular stack via
  netmap.
- Don't derefence values off the end of the igb(4) VF stats structure.
  Instead, add a dedicated if_get_counter method for igb(4) VF interfaces.
- Report missed packets on igb(4) as input queue drops rather than an
  input error.
- Report bug_ring drop counts as output queue drops for igb(4) and ixgbe(4).
- Export the buf_ring drop stats for individual rings via sysctl on
  ixgbe(4).
- Fix a typo that in ixl(4) that caused output queue drops to be reported
  as input queue drops and input queue drops to be unreported.

Differential Revision: https://reviews.freebsd.org/D2402
Reviewed by: jfv, rstone (6)
Sponsored by: Norse Corp, Inc.

9 years agoRemove leftover from r282269.
jkim [Thu, 30 Apr 2015 17:49:35 +0000 (17:49 +0000)]
Remove leftover from r282269.

MFC after: 2 weeks
X-MFC with: r282269

9 years agoMove the SIFTR DTrace probe out of the writing thread context
gnn [Thu, 30 Apr 2015 17:43:40 +0000 (17:43 +0000)]
Move the SIFTR DTrace probe out of the writing thread context
and directly into the place where the data is collected.

9 years agoRemove support for Xen PV domU kernels. Support for HVM domU kernels
jhb [Thu, 30 Apr 2015 15:48:48 +0000 (15:48 +0000)]
Remove support for Xen PV domU kernels.  Support for HVM domU kernels
remains.  Xen is planning to phase out support for PV upstream since it
is harder to maintain and has more overhead.  Modern x86 CPUs include
virtualization extensions that support HVM guests instead of PV guests.
In addition, the PV code was i386 only and not as well maintained recently
as the HVM code.
- Remove the i386-only NATIVE option that was used to disable certain
  components for PV kernels.  These components are now standard as they
  are on amd64.
- Remove !XENHVM bits from PV drivers.
- Remove various shims required for XEN (e.g. PT_UPDATES_FLUSH, LOAD_CR3,
  etc.)
- Remove duplicate copy of <xen/features.h>.
- Remove unused, i386-only xenstored.h.

Differential Revision: https://reviews.freebsd.org/D2362
Reviewed by: royger
Tested by: royger (i386/amd64 HVM domU and amd64 PVH dom0)
Relnotes: yes

9 years agoUpdate this page to note that XENHVM now works on i386. (It shipped
jhb [Thu, 30 Apr 2015 15:25:30 +0000 (15:25 +0000)]
Update this page to note that XENHVM now works on i386.  (It shipped
enabled in GENERIC in 10.0.)

Reviewed by: royger (earlier version)
MFC after: 1 week

9 years agoRemove oldnfs remnants from nfsd(8).
trasz [Thu, 30 Apr 2015 12:55:27 +0000 (12:55 +0000)]
Remove oldnfs remnants from nfsd(8).

Reviewed by: rmacklem@
Sponsored by: The FreeBSD Foundation

9 years agoatkbd: remove usage of x86bios
royger [Thu, 30 Apr 2015 07:00:25 +0000 (07:00 +0000)]
atkbd: remove usage of x86bios

Instead of trying to get the keyboard repeat rate set by the BIOS just set a
default one. This allows removing the usage of x86bios from atkbd.

Sponsored by: Citrix Systems R&D
Reviewed by: jkim, delphij
Differential Revision: https://reviews.freebsd.org/D2399
MFC after: 2 weeks

9 years agoAlso happened to miss this in r282264.
jhibbits [Thu, 30 Apr 2015 04:44:41 +0000 (04:44 +0000)]
Also happened to miss this in r282264.

9 years agoMissed ofw_machdep.c in r282264.
jhibbits [Thu, 30 Apr 2015 03:15:07 +0000 (03:15 +0000)]
Missed ofw_machdep.c in r282264.

9 years ago- Disable usb aggregation mode by default since it boots performance
kevlo [Thu, 30 Apr 2015 02:47:21 +0000 (02:47 +0000)]
- Disable usb aggregation mode by default since it boots performance
- Minor tweak

PR: 199718
Submitted by: Mikhail <mp39590 at gmail dot com>

9 years agoSetting PATH to anything is useless as a bare command. Its only relevant
sbruno [Thu, 30 Apr 2015 02:08:36 +0000 (02:08 +0000)]
Setting PATH to anything is useless as a bare command.  Its only relevant
if its set in the environement of each command seperately.

Move the PATH setting to the NXBMAKE variable so its picked up to find
the one-off gperf build for the native-xtools target.

Pointed Out by: ngie

9 years agoUnify booke and AIM machdep.
jhibbits [Thu, 30 Apr 2015 01:24:25 +0000 (01:24 +0000)]
Unify booke and AIM machdep.

Much of the code was common to begin with.  There is one nit, which is likely
not an issue at all.  With the old code, the AIM machdep would __syncicache()
the entire kernel core at setup.  However, in the unified setup, that seems to
hang on the MPC7455, perhaps because it's running later than before.  Removing
this allows it to boot just fine.  Examining the code, the FreeBSD loader
already does syncicache of the full kernel, and each module loaded, so this
doesn't appear to be an actual problem.

Initial code by Nathan Whitehorn.

9 years agoPhabricator: enable "history.immutable":
eadler [Thu, 30 Apr 2015 00:27:53 +0000 (00:27 +0000)]
Phabricator: enable "history.immutable":
With certain arc workflows leaving history.immutable as false
results in using the upstream template instead of our usual
commit template.  Since the git workflow issues alluded to in my
prior commit message can be worked around, set history.immutable
once again.

9 years agoFix native-xtools breakage when building a gcc enabled target on a clang
sbruno [Thu, 30 Apr 2015 00:17:32 +0000 (00:17 +0000)]
Fix native-xtools breakage when building a gcc enabled target on a clang
enabled host.  Build a one-off gperf and put it in the PATH for the rest
of the target so the ONE call to gperf by the gcc build picks it up and
DTRT.

Reviewed by: imp

9 years agoRe-implement RTC current time calculation to eliminate the possibility of
neel [Wed, 29 Apr 2015 23:44:28 +0000 (23:44 +0000)]
Re-implement RTC current time calculation to eliminate the possibility of
losing time.

The problem with the earlier implementation was that the uptime value
used by 'vrtc_curtime()' could be different than the uptime value when
'vrtc_time_update()' actually updated 'base_uptime'.

Fix this by calculating and updating the (rtctime, uptime) tuple together.

MFC after: 2 weeks

9 years agoSave errno from close override.
oshogbo [Wed, 29 Apr 2015 22:59:44 +0000 (22:59 +0000)]
Save errno from close override.

Approved by: pjd (mentor)