]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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)

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