]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMFH: r281855-r282312
gjb [Fri, 1 May 2015 18:07:18 +0000 (18:07 +0000)]
MFH: r281855-r282312

Sponsored by: The FreeBSD Foundation

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)

9 years agoRemove the nvlist_.*[fv] functions.
oshogbo [Wed, 29 Apr 2015 22:57:04 +0000 (22:57 +0000)]
Remove the nvlist_.*[fv] functions.

Those functions are problematic, because there is no way to report
memory allocation problems without complicating the API, so we can
either abort or potentially return invalid results. None of which is
acceptable.

In most cases the caller knows the size of the name, so he can allocate
buffer on the stack and use snprintf(3) to prepare the name.

After some discussion the conclusion is to removed those functions,
which also simplifies the API.

Discussed with: pjd, rstone
Approved by: pjd (mentor)

9 years agoBump __FreeBSD_version for smb(4) changes in r281985
grembo [Wed, 29 Apr 2015 22:50:41 +0000 (22:50 +0000)]
Bump __FreeBSD_version for smb(4) changes in r281985

Differential Revision: https://reviews.freebsd.org/D2398
Reviewed by: bapt, flo
Approved by: bapt, flo

9 years agoObsolute /usr/bin/gperf for non-gcc enabled targets.
sbruno [Wed, 29 Apr 2015 22:46:30 +0000 (22:46 +0000)]
Obsolute /usr/bin/gperf for non-gcc enabled targets.

Leave it as valid for mips/sparc64 gcc enabled targets.

Reviewed by: imp@

9 years agoRemove the use of nvlist_.*[fv] functions from tests.
oshogbo [Wed, 29 Apr 2015 22:46:18 +0000 (22:46 +0000)]
Remove the use of nvlist_.*[fv] functions from tests.

Approved by: pjd (mentor)

9 years agoRemove the use of nvlist_.*[vf] functions from casper and replace
oshogbo [Wed, 29 Apr 2015 22:33:53 +0000 (22:33 +0000)]
Remove the use of nvlist_.*[vf] functions from casper and replace
them with snprintf(3). Assert the results of snprintf(3).

Approved by: pjd (mentor)

9 years agoRemove the use of nvlist_.*[vf] functions from libcapsicum and replace
oshogbo [Wed, 29 Apr 2015 22:19:40 +0000 (22:19 +0000)]
Remove the use of nvlist_.*[vf] functions from libcapsicum and replace
them with snprintf(3). Assert the results of snprintf(3).

Approved by: pjd (mentor)

9 years agoRemove recursion from descriptor-related functions.
oshogbo [Wed, 29 Apr 2015 22:15:02 +0000 (22:15 +0000)]
Remove recursion from descriptor-related functions.

Approved by: pjd (mentor)

9 years agoNvlist functionality is not used within interrupt context, so we should
oshogbo [Wed, 29 Apr 2015 22:00:26 +0000 (22:00 +0000)]
Nvlist functionality is not used within interrupt context, so we should
use M_WAITOK to allocate memory.

Approved by: pjd (mentor)

9 years agoAlways use the nv_malloc macro instead of malloc(3).
oshogbo [Wed, 29 Apr 2015 21:54:34 +0000 (21:54 +0000)]
Always use the nv_malloc macro instead of malloc(3).

Approved by: pjd (mentor)

9 years agoStyle fixes.
oshogbo [Wed, 29 Apr 2015 21:50:04 +0000 (21:50 +0000)]
Style fixes.

Approved by: pjd (mentor)

9 years agovt: fix vt_fb_bitblt_bitmap mask corruption
emaste [Wed, 29 Apr 2015 20:30:11 +0000 (20:30 +0000)]
vt: fix vt_fb_bitblt_bitmap mask corruption

Previously the mask wrapped when one or more of the mask bytes extended
past the right edge of the window. Simplify the logic and use the same
byte offset and bit in both the pattern and mask.

PR: 199648
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2360

9 years agoRevert r281889:
pfg [Wed, 29 Apr 2015 20:08:03 +0000 (20:08 +0000)]
Revert r281889:

The change would appease the static analyzers but it is pretty much a
no-op. I need to trust static analyzers much less, especially for the
kernel.

Requested by: jkim

9 years agoRemove the #ifdef DEBUG code, which is not compilable on 64bit
kib [Wed, 29 Apr 2015 19:47:18 +0000 (19:47 +0000)]
Remove the #ifdef DEBUG code, which is not compilable on 64bit
architectures.  It seems to be an overlooked chunk in the r15645.

PR: 199767
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

9 years agoFix typo. It should have been atf_tc_skip, not atf_skip
ngie [Wed, 29 Apr 2015 19:08:11 +0000 (19:08 +0000)]
Fix typo. It should have been atf_tc_skip, not atf_skip

Reported by: many, Jenkins
Pointyhat to: ngie
MFC after: 4 days

9 years agoBrief demo script showing the various values that can be read via the new SIFTR stati...
gnn [Wed, 29 Apr 2015 18:07:58 +0000 (18:07 +0000)]
Brief demo script showing the various values that can be read via the new SIFTR statically defined tracepoint (SDT).

Reviewed by: bz, markj

9 years agoDon't free mbufs when stopping an interface in netmap mode.
jhb [Wed, 29 Apr 2015 17:48:25 +0000 (17:48 +0000)]
Don't free mbufs when stopping an interface in netmap mode.

Currently if you ifconfig down a vtnet interface while it is being used
via netmap, the kernel panics due to trying to treat the cookie values
in the virtio rings as mbufs to be freed. When netmap is enabled, these
cookie values are pointers to something else.

Note that other netmap-aware drivers don't seem to need this as they
store the mbuf pointers in the software rings that mirror the hardware
descriptor rings, and since netmap doesn't touch those, the software
state always has NULL mbuf pointers causing the loops to free mbufs to
not do anything. However, vtnet reuses the same state area for both
netmap and non-netmap mode, so it needs to explicitly avoid looking at
the rings and treating the cookie values as mbufs if netmap is
enabled.

Differential Revision: https://reviews.freebsd.org/D2348
Reviewed by: adrian, bryanv, luigi
MFC after: 1 week
Sponsored by: Norse Corp, Inc.

9 years agoBrief demo script showing the various values that can be read via
gnn [Wed, 29 Apr 2015 17:19:55 +0000 (17:19 +0000)]
Brief demo script showing the various values that can be read via
the new SIFTR statically defined tracepoint (SDT).

Differential Revision: https://reviews.freebsd.org/D2387
Reviewed by: bz, markj

9 years agoRevert r282227. It is clearly incorrect as it frees an object that is still
scottl [Wed, 29 Apr 2015 17:18:41 +0000 (17:18 +0000)]
Revert r282227.  It is clearly incorrect as it frees an object that is still
referenced.  I think that there does exist an unlikely edge case for a
memory leak, but only if a driver is incorrectly written and specifies no
valid range of targets to scan.  That can be fixed in a follow-up commit.

Obtained from: Netflix, Inc.

9 years agoRemove spurious period.
trasz [Wed, 29 Apr 2015 17:01:28 +0000 (17:01 +0000)]
Remove spurious period.

MFC after: 1 month
Sponsored by: International OCD Foun^W^W^WThe FreeBSD Foundation

9 years agoFix typo
brd [Wed, 29 Apr 2015 16:52:43 +0000 (16:52 +0000)]
Fix typo

9 years agoMake rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.
trasz [Wed, 29 Apr 2015 16:41:49 +0000 (16:41 +0000)]
Make rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoFix mis usage of ms(7) macros
bapt [Wed, 29 Apr 2015 16:41:48 +0000 (16:41 +0000)]
Fix mis usage of ms(7) macros

Submitted by: heirloom doctools upstream

9 years agoDocument r280297, OpenSSL updated to version 1.0.1m.
gjb [Wed, 29 Apr 2015 16:15:26 +0000 (16:15 +0000)]
Document r280297, OpenSSL updated to version 1.0.1m.

Sponsored by: The FreeBSD Foundation

9 years agoImprove support for blacklisting bad memory locations. The user can supply
scottl [Wed, 29 Apr 2015 15:57:14 +0000 (15:57 +0000)]
Improve support for blacklisting bad memory locations.  The user can supply
a text file with a list of physical memory addresses to exclude, and have it
loaded at boot time via the provided example in loader.conf.  The tunable
'vm.blacklist' remains, but using an external file means that there's no
practical limit to the size of the list.  This change also improves the
scanning algorithm for processing the list, scanning the list only once
instead of scanning it for every page in the system.  Both the sysctl and
the file can be unsorted and contain duplicates so long as each entry is
numeric (decimal or hex) and is separated by a space, comma, or newline
character.  The sysctl 'vm.page_blacklist' is now provided to report what
memory locations were successfully excluded.

Reviewed by: imp, emax
Obtained from: Netflix, Inc.
MFC after: 3 days

9 years agoFix memory leak in scsi_scan_bus()
pfg [Wed, 29 Apr 2015 15:46:57 +0000 (15:46 +0000)]
Fix memory leak in scsi_scan_bus()

CID: 1007770
PR: 199671

9 years agoPlug memory leaks in kbdmux(4) (take 2)
pfg [Wed, 29 Apr 2015 15:41:19 +0000 (15:41 +0000)]
Plug memory leaks in kbdmux(4) (take 2)

This is a fix to the previous attempt in r281889, which some (most?)
keyboards.

Discussed with: emaste, jkim

Found by: clang static analyzer
CID: 1007072
CID: 1007073
CID: 1007074

9 years agoAdd pmap_mapbios and pmap_unmapbios. These will be needed to support acpi.
andrew [Wed, 29 Apr 2015 15:00:43 +0000 (15:00 +0000)]
Add pmap_mapbios and pmap_unmapbios. These will be needed to support acpi.

Sponsored by: The FreeBSD Foundation

9 years agoCorrect date typo in UPDATING
smh [Wed, 29 Apr 2015 14:17:40 +0000 (14:17 +0000)]
Correct date typo in UPDATING

MFC after: 1 month
X-MFC-With: r282208
Sponsored by: Multiplay

9 years agoRemove never written documentation
bapt [Wed, 29 Apr 2015 13:30:04 +0000 (13:30 +0000)]
Remove never written documentation

9 years agoExplicitly declare to not print the current date
bapt [Wed, 29 Apr 2015 12:57:55 +0000 (12:57 +0000)]
Explicitly declare to not print the current date

Found with heirloom-doctools which uses the original AT&T macros

9 years agovt_vga: add a timeout while waiting for vertical retrace
royger [Wed, 29 Apr 2015 12:53:41 +0000 (12:53 +0000)]
vt_vga: add a timeout while waiting for vertical retrace

On one of my systems FreeBSD will fail to boot because vt_vga gets stuck
waiting for the vertical retrace if there's no monitor attached. Fix this by
adding a timeout and exiting if the vertical retrace times out.

Sponsored by: Citrix Systems R&D
Reviewed by: emaste, dumbbell
Differential Revision: https://reviews.freebsd.org/D2397

9 years agoMake it possible to statically link SIFTR into the kernel
gnn [Wed, 29 Apr 2015 12:37:45 +0000 (12:37 +0000)]
Make it possible to statically link SIFTR into the kernel
as a new option.

Reviewed by: bz
Discussed with: lstewart
MFC after: 2 weeks

9 years agoRemove oldnfs leftovers from mountd(8).
trasz [Wed, 29 Apr 2015 12:33:00 +0000 (12:33 +0000)]
Remove oldnfs leftovers from mountd(8).

Reviewed by: rmacklem@
Sponsored by: The FreeBSD Foundation

9 years agoAdd kern.racct.enable tunable and RACCT_DISABLED config option.
trasz [Wed, 29 Apr 2015 10:23:02 +0000 (10:23 +0000)]
Add kern.racct.enable tunable and RACCT_DISABLED config option.
The point of this is to be able to add RACCT (with RACCT_DISABLED)
to GENERIC, to avoid having to rebuild the kernel to use rctl(8).

Differential Revision: https://reviews.freebsd.org/D2369
Reviewed by: kib@
MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation

9 years agoMicrosoft vmbus, storage and other related driver enhancements for HyperV.
whu [Wed, 29 Apr 2015 10:12:34 +0000 (10:12 +0000)]
Microsoft vmbus, storage and other related driver enhancements for HyperV.
    - Vmbus multi channel support.
    - Vector interrupt support.
    - Signal optimization.
    - Storvsc driver performance improvement.
    - Scatter and gather support for storvsc driver.
    - Minor bug fix for KVP driver.
Thanks royger, jhb and delphij from FreeBSD community for the reviews
and comments. Also thanks Hovy Xu from NetApp for the contributions to
the storvsc driver.

PR:     195238
Submitted by:   whu
Reviewed by:    royger, jhb, delphij
Approved by:    royger
MFC after:      2 weeks
Relnotes:       yes
Sponsored by:   Microsoft OSTC

9 years agoATF_REQUIRE_KERNEL_MODULE: use atf_skip, not ATF_REQUIRE_MSG so the testcase
ngie [Wed, 29 Apr 2015 08:56:56 +0000 (08:56 +0000)]
ATF_REQUIRE_KERNEL_MODULE: use atf_skip, not ATF_REQUIRE_MSG so the testcase
no longer bombs out
PLAIN_REQUIRE_KERNEL_MODULE: use printf + _exit, no err so the testcase no
longer bombs out if it prints to stderr

MFC after: 5 days

9 years agoConstify some const parameters in seq.h.
adrian [Wed, 29 Apr 2015 04:08:17 +0000 (04:08 +0000)]
Constify some const parameters in seq.h.

The NUMA work I'm doing uses const for read-only parameters, which requires
the seq.h API to also use const for read-only parameters.

Reviewed by: mjg

9 years agoEmulate the 'bit test' instruction. Windows 7 uses 'bit test' to check the
neel [Wed, 29 Apr 2015 02:01:46 +0000 (02:01 +0000)]
Emulate the 'bit test' instruction. Windows 7 uses 'bit test' to check the
'Delivery Status' bit in APIC ICR register.

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

9 years agoStandardise chmod, chflags, chown and chgrp recursive symlink processing
smh [Wed, 29 Apr 2015 00:49:00 +0000 (00:49 +0000)]
Standardise chmod, chflags, chown and chgrp recursive symlink processing

chmod, chflags, chgrp, chmod and chown now affect symlinks in -R mode as
defined in symlink(7); previously symlinks were silently ignored.

Differential Revision: https://reviews.freebsd.org/D2316
Reviewed by: jilles
MFC after: 1 month
Relnotes: yes
Sponsored by: Multiplay

9 years agoOnly include CWARNFLAGS once to reduce command line size from ~1400
imp [Tue, 28 Apr 2015 23:54:55 +0000 (23:54 +0000)]
Only include CWARNFLAGS once to reduce command line size from ~1400
characters to "only" ~900 for kernel builds.

9 years agoImplement the century byte in the RTC. Some guests require this field to be
neel [Tue, 28 Apr 2015 23:44:47 +0000 (23:44 +0000)]
Implement the century byte in the RTC. Some guests require this field to be
properly set.

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

9 years agoFix misuse of input argument in traverse_visitbp
smh [Tue, 28 Apr 2015 22:46:58 +0000 (22:46 +0000)]
Fix misuse of input argument in traverse_visitbp

In traverse_visitbp(), the input argument dnp is modified in the middle
to point to a temporary buffer. Originally this doesn't matter, because
no user of TRAVERSE_POST dereferences it. However, in fbeddd6 a piece of
code is added dereferencing dnp after the modification, creating a possible
bug.

We fix this by creating a new local variable cdnp for the DMU_OT_DNODE case,
so we don't modify the input argument. Also we introduce different local
variables in the DMU_OT_OBJSET case to prevent confusion between the input
argument.

Obtained from: zfsonlinux (a585f2f844ed3d4270221fed88f5e494eb55d932)
MFC after: 2 weeks
Sponsored by: Multiplay

9 years agoRefine the entry regarding devfs(5) timestamps, as of
gjb [Tue, 28 Apr 2015 21:57:52 +0000 (21:57 +0000)]
Refine the entry regarding devfs(5) timestamps, as of
r280949, devfs(5) updates default to seconds precision.

Submitted by: jilles
Sponsored by: The FreeBSD Foundation

9 years agolibgomp: bring initial BSD support from upstream.
pfg [Tue, 28 Apr 2015 21:32:27 +0000 (21:32 +0000)]
libgomp: bring initial BSD support from upstream.

Initial support for FreeBSD specific routines related to counting
online processors and dynamic load balancing.

Fix "detection" of the <sys/sysctl> header which upstream seems to have
done wrong.

Obtained from: GCC pre-4.4 branch (rev. 140497; LGPLv2.1+)

9 years agoo Fix bus_space_read_multi functions: correct increment value
br [Tue, 28 Apr 2015 20:33:31 +0000 (20:33 +0000)]
o Fix bus_space_read_multi functions: correct increment value
o Use these functions for streaming

Tested with ATA (PCI bus) / Gem5 simulator

Reviewed by: andrew
Sponsored by: HEIF5

9 years agoFollowup to r282083: add GCC_BOOTSTRAP to the list of broken options on arm64
ngie [Tue, 28 Apr 2015 19:15:28 +0000 (19:15 +0000)]
Followup to r282083: add GCC_BOOTSTRAP to the list of broken options on arm64

Differential Revision: https://reviews.freebsd.org/D2379
Reviewed by: imp

9 years agoDocument r281387, hptnr(4) driver updated to version 1.1.1.
gjb [Tue, 28 Apr 2015 18:11:36 +0000 (18:11 +0000)]
Document r281387, hptnr(4) driver updated to version 1.1.1.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281396, ACPI update to 20150410.
gjb [Tue, 28 Apr 2015 18:11:34 +0000 (18:11 +0000)]
Document r281396, ACPI update to 20150410.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r280870, fix directory inclusion when '--one-file-system'
gjb [Tue, 28 Apr 2015 18:11:32 +0000 (18:11 +0000)]
Document r280870, fix directory inclusion when '--one-file-system'
is specified.

Sponsored by: The FreeBSD Foundation

9 years agoUpdate the svn revision marker.
gjb [Tue, 28 Apr 2015 18:11:30 +0000 (18:11 +0000)]
Update the svn revision marker.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281845, file verification support in MAC.
gjb [Tue, 28 Apr 2015 18:11:27 +0000 (18:11 +0000)]
Document r281845, file verification support in MAC.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281713, hwpmc(4) support for Freescale e500 core.
gjb [Tue, 28 Apr 2015 18:11:25 +0000 (18:11 +0000)]
Document r281713, hwpmc(4) support for Freescale e500 core.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281439, support for the 'virt' QEMU SoC.
gjb [Tue, 28 Apr 2015 18:11:23 +0000 (18:11 +0000)]
Document r281439, support for the 'virt' QEMU SoC.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281311, disallow directory traversal in ar(1).
gjb [Tue, 28 Apr 2015 18:11:21 +0000 (18:11 +0000)]
Document r281311, disallow directory traversal in ar(1).

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281261, DTrace support for the Book-E.
gjb [Tue, 28 Apr 2015 18:11:19 +0000 (18:11 +0000)]
Document r281261, DTrace support for the Book-E.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r281130, gcc attributes added to standard include headers.
gjb [Tue, 28 Apr 2015 18:11:17 +0000 (18:11 +0000)]
Document r281130, gcc attributes added to standard include headers.

Sponsored by: The FreeBSD Foundation

9 years agoFix a whitespace nit.
gjb [Tue, 28 Apr 2015 18:11:14 +0000 (18:11 +0000)]
Fix a whitespace nit.

Sponsored by: The FreeBSD Foundation