]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoFix some integer signs. These unsigned integers should all be signed.
jhibbits [Sat, 7 Dec 2013 19:55:34 +0000 (19:55 +0000)]
Fix some integer signs.  These unsigned integers should all be signed.

Found by: clang (powerpc64)

10 years agoAdd WITH_DVD to RELEASE_RMAKEFLAGS, otherwise it is not actually
gjb [Sat, 7 Dec 2013 19:39:38 +0000 (19:39 +0000)]
Add WITH_DVD to RELEASE_RMAKEFLAGS, otherwise it is not actually
passed to 'make release'.

MFC after: 3 days
X-Before-RC2: yes
Sponsored by: The FreeBSD Foundation

10 years agoCast Elf_Addr to void * to match the free_aligned() argument type.
kib [Sat, 7 Dec 2013 15:49:16 +0000 (15:49 +0000)]
Cast Elf_Addr to void * to match the free_aligned() argument type.

Found by: gcc
Sponsored by: The FreeBSD Foundation
MFC after: 6 days

10 years agoInclude dev/fb/fb_if.m in build always, without it kms modules complain about
ray [Sat, 7 Dec 2013 15:24:43 +0000 (15:24 +0000)]
Include dev/fb/fb_if.m in build always, without it kms modules complain about
lack of fb_getinfo_desc symbol.

Submitted by: dumbbell

Sponsored by: The FreeBSD Foundation

10 years agoRefactor out the scan id and scan vap as part of the scan work.
adrian [Sat, 7 Dec 2013 08:32:15 +0000 (08:32 +0000)]
Refactor out the scan id and scan vap as part of the scan work.

Make the scan state optional - we'll obviously need a vap, but we now
won't require the scan state.  the only thing the scan state is needed
for is to check for the list of SSIDs to scan - which we can now
just plain ignore by passing in NULL as the scan state pointer.

Tested:

* Intel 5100 (STA)

10 years agoAdd a channel parameter to iwn_scan().
adrian [Sat, 7 Dec 2013 08:25:24 +0000 (08:25 +0000)]
Add a channel parameter to iwn_scan().

This is in preparation for being able to use iwn_scan() to do an off
channel scan to reset the RF tuning.

It should be a no-op.

Tested:

* Intel 5100 (STA)

10 years agoRefactor out the scan channel to be assigned early on in iwn_scan()
adrian [Sat, 7 Dec 2013 08:20:24 +0000 (08:20 +0000)]
Refactor out the scan channel to be assigned early on in iwn_scan()
rather than it all being a mess of 'c' and 'ic->ic_curchan'.

Tested:

* Intel 5100 (STA)

10 years agoBegin fleshing out some code to handle tracking PLCP error rates
adrian [Sat, 7 Dec 2013 08:03:10 +0000 (08:03 +0000)]
Begin fleshing out some code to handle tracking PLCP error rates
in preparation for the scan based retune logic.

The linux iwlwifi driver does a rescan (onto a non-active channel)
to force an RF retune when the PLCP error rates exceed a certain threshold.

* Add code to track HT PLCP rate errors;
* Separate out the PLCP error count fetch and update so the delta
  can be used when checking for PLCP error rates;
* Implement the PLCP error logic from iwlwifi;
* For now, just print out whenever the error rate exceeds the
  threshold.

The actual scan based retune will take a bit more effort; the scan
command code right now assumes that a scan state is passed in.
This does need to change to be more flexible (both for this and
in preparation for scanning multiple channels at once.)

Tested:

* 5100 (STA mode)
* 2200 (STA mode)
* 2230 (STA mode)

10 years agoDocument -q and --quiet as discouraged compatibility option.
delphij [Sat, 7 Dec 2013 07:12:37 +0000 (07:12 +0000)]
Document -q and --quiet as discouraged compatibility option.

Suggested by: eadler
MFC after: 2 weeks

10 years agoAdd some PLCP thresholds from Linux iwlwifi driver in preparation for
adrian [Sat, 7 Dec 2013 06:45:09 +0000 (06:45 +0000)]
Add some PLCP thresholds from Linux iwlwifi driver in preparation for
working on some RF tuning issues.

The linux iwlwifi driver has these thresholds which they use to see
if there are PLCP errors over a certain interval.  If they hit this,
they trigger a single-channel (different from active channels!)
scan to retune the RF front-end.

10 years agoRemove mention of the compatibility option 'q', which is
delphij [Sat, 7 Dec 2013 06:27:54 +0000 (06:27 +0000)]
Remove mention of the compatibility option 'q', which is
intentionally undocumented and its only purpose is that
we do not bail out when used as a drop-in replacement of
a different implementation.

PR: docs/184550
MFC after: 2 weeks

10 years agoRemove "Warning: file \"%s\" unreadable". It was introduced with revision
marcel [Sat, 7 Dec 2013 02:20:22 +0000 (02:20 +0000)]
Remove "Warning: file \"%s\" unreadable". It was introduced with revision
44599 and turned less than useful ever since fortunes-o.dat got removed.
Running "fortunes -a" is enough to always see it for fortunes-o.dat.
Since we compile with debugging enabled, the removal is easily compensated
for by running "fortune -D -D".

10 years agoFix r203922 for "fortune -o": we free tpath when was_malloc is true
marcel [Sat, 7 Dec 2013 01:35:18 +0000 (01:35 +0000)]
Fix r203922 for "fortune -o": we free tpath when was_malloc is true
but don't define tpath everytime we set was_malloc to true. We end
up calling free() multiple times for the same pointer, resulting in:
<jemalloc>: jemalloc_arena.c:355: Failed assertion: ...
When we set path to offensive, we need to set tpath as well.

10 years agoPerformance and debugging enhancements:
dteske [Sat, 7 Dec 2013 00:31:01 +0000 (00:31 +0000)]
Performance and debugging enhancements:
+ Remove UNAME_P=$(...) from startup/misc -- already supplied by common.subr
+ Use f_getvar instead of $(eval echo \$$var) -- f_getvar is sub-shell free
+ Add `-e' and `-k var' options to f_eval_catch -- increasing use-cases
+ Use f_eval_catch to display errors on failure -- reducing duplicated code
+ Use f_eval_catch when we need output from a command -- improving debugging
+ Optimize f_isinter of strings.subr for performance -- now sub-shell free
+ Improve error checking on pidfiles -- using f_eval_catch and f_isinteger
+ Use $var_to_set arg of f_ifconfig_{inet,netmask} -- eliminate sub-shells
+ Use f_sprintf instead of $(printf ...) -- consolidate sub-shells
+ Use $var_to_set arg of f_route_get_default -- eliminate sub-shells
+ Add f_count to replace $(set -- ...;echo $#) -- eliminate sub-shells
+ Add f_count_ifs to replace $(IFS=x;set -- ...;echo $#) -- no sub-shells
+ Replace var="$var${var:+ }..." in loops with var="$var ..." with a follow-
  up var="${var# }" to trim leading whitespace -- optimize loops
+ Use $var_to_set arg of f_resolv_conf_nameservers -- eliminate sub-shells
+ Comments for the f_eval_catch function
+ Remove a duplicate `local ... desc ...' in f_device_get_all of device.subr
+ Use $var_to_set arg of f_device_capacity -- eliminate sub-shells
+ Whitespace fixes in f_dialog_init of dialog.subr
+ Optimize f_inet_atoi of media/tcpip.subr for performance -- sub-shell free
+ In several cases, send stderr to /dev/null -- clean up runtime execution
+ Change f_err of common.subr to go to program stderr not terminal stderr,
  allowing redirection of output from functions that use f_err
+ Disable debugging when using f_getvar to get variable argument to
  f_startup_rcconf_map_expand of startup/rcconf.subr
+ Use f_replace_all instead of $(echo ... | tr | sed) -- performance
+ Add a $var_to_set option to f_index_{file,menusel_{command,keyword}} of
  common.subr -- centralize sub-shells

10 years agoPull in r196590 from upstream clang trunk (by rdivacky):
dim [Sat, 7 Dec 2013 00:05:45 +0000 (00:05 +0000)]
Pull in r196590 from upstream clang trunk (by rdivacky):

  Move the body of GCCInstallationDetector ctor into an init() function
  and call it from its only user. The linux toolchain. This saves quite
  a lot of directory searching on other platforms.

See http://docs.freebsd.org/cgi/mid.cgi?51E6FAF5.3080802 for the
original discussion.  With this fix, the search for gcc installations is
completely eliminated on FreeBSD.

Reported by: Kurt Lidl <lidl@pix.net>
MFC after: 3 days

10 years agoExpose spa_asize_inflation.
delphij [Fri, 6 Dec 2013 23:49:16 +0000 (23:49 +0000)]
Expose spa_asize_inflation.

X-MFC-With: r258632

10 years agoFix td_frame flags for i386.
ray [Fri, 6 Dec 2013 23:12:21 +0000 (23:12 +0000)]
Fix td_frame flags for i386.

Submitted by: jilles

Sponsored by: The FreeBSD Foundation

10 years agoTwo new cxgbetool subcommands to set up scheduler classes and to bind
np [Fri, 6 Dec 2013 23:02:57 +0000 (23:02 +0000)]
Two new cxgbetool subcommands to set up scheduler classes and to bind
them to NIC queues.

Obtained from: Chelsio

10 years agosh: Split set -x output into a separate function.
jilles [Fri, 6 Dec 2013 22:24:37 +0000 (22:24 +0000)]
sh: Split set -x output into a separate function.

10 years agoFix compilation when the "USB_DEBUG" option is set.
hselasky [Fri, 6 Dec 2013 22:13:51 +0000 (22:13 +0000)]
Fix compilation when the "USB_DEBUG" option is set.

10 years agoDisallow optimizations which potentially remove boundary checks
kib [Fri, 6 Dec 2013 21:44:13 +0000 (21:44 +0000)]
Disallow optimizations which potentially remove boundary checks
for signed values due to a compiler authors considering integer
overflow as impossible.

The change follows suit of other projects taking the same measure.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoFor variant II static TLS, properly align tls segments. Pre-calculate
kib [Fri, 6 Dec 2013 21:39:45 +0000 (21:39 +0000)]
For variant II static TLS, properly align tls segments.  Pre-calculate
the max required alignment for the static tls segments, and honor it
when carving the pieces for next module, from the static space.  Use
aligned allocator to get properly-aligned dynamic blocks.

Reported by: dt71@gmx.com
Reviewed by: kan
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoBuild an allocator for the aligned memory on top of the rtld-private
kib [Fri, 6 Dec 2013 21:30:31 +0000 (21:30 +0000)]
Build an allocator for the aligned memory on top of the rtld-private
malloc.

Reviewed by: kan
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoDo not force to run atexit handlers, which text comes from a dso
kib [Fri, 6 Dec 2013 21:26:57 +0000 (21:26 +0000)]
Do not force to run atexit handlers, which text comes from a dso
owning the handle passed to __cxa_finalize() but which are registered
by other dso, when the process is inside exit(3).

Running them makes the destruction order wrong, and there is hope that
such destructors would not call dlclose(3), since it is pointless at
this stage of the process existence.

The change effectively disables the r211706 after the exit(3) is
called.

Reported and tested by: Michael Gmelin <freebsd@grem.de>
Analyzed by: dim
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agomdoc: remove EOL whitespace.
joel [Fri, 6 Dec 2013 21:22:33 +0000 (21:22 +0000)]
mdoc: remove EOL whitespace.

10 years agoAlthough not strictly required to boot a 64MB board, bump
imp [Fri, 6 Dec 2013 18:41:16 +0000 (18:41 +0000)]
Although not strictly required to boot a 64MB board, bump
vm_max_virtual_address to be KERNVIRTADDR + 256MB. This allows some
future shock protection since the KVA requirements have gone up since
the unmapped changes have gone in, as well as preventing us from
overlapping with the hardware devices, which we map at 0xd0000000,
which we'd hit with anything more than 85MB...

MFC after: 3 days

10 years agoFix the pin value reading on AM335x. Because of the inverted logic it was
loos [Fri, 6 Dec 2013 18:09:10 +0000 (18:09 +0000)]
Fix the pin value reading on AM335x.  Because of the inverted logic it was
always returning '0' for all the reads, even for the outputs.  It is now
known to work with gpioiic(4) and gpioled(4).

Approved by: adrian (mentor)
Tested on: BBB

10 years agoMove the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4)
loos [Fri, 6 Dec 2013 17:56:20 +0000 (17:56 +0000)]
Move the GPIOBUS_SET_PINFLAGS(..., ..., pin, GPIO_PIN_OUTPUT) to led(4)
control callback function.  This makes gpioled(4) works even if the pin
is accidentally set to an input.

Approved by: adrian (mentor)

10 years agoRemove unnecessary includes and an unused softc variable. While here apply
loos [Fri, 6 Dec 2013 17:49:34 +0000 (17:49 +0000)]
Remove unnecessary includes and an unused softc variable.  While here apply
two minor style(9) fixes.

Approved by: adrian (mentor)

10 years agoMake the sysctl node read-only.
loos [Fri, 6 Dec 2013 17:45:14 +0000 (17:45 +0000)]
Make the sysctl node read-only.

Approved by: adrian (mentor)

10 years agoRegen.
kevlo [Fri, 6 Dec 2013 15:27:42 +0000 (15:27 +0000)]
Regen.

10 years agoAdd support for the MediaTek/Ralink RT5572 chipset.
kevlo [Fri, 6 Dec 2013 15:26:39 +0000 (15:26 +0000)]
Add support for the MediaTek/Ralink RT5572 chipset.
Committed over the TP-LINK TL-WDN3200 (RT5572) on amd64 with WPA.

While here, add my copyright.

10 years agoReplace the magic numbers with something more readable.
kevlo [Fri, 6 Dec 2013 15:17:28 +0000 (15:17 +0000)]
Replace the magic numbers with something more readable.

10 years agoCosmetic changes.
kevlo [Fri, 6 Dec 2013 15:15:58 +0000 (15:15 +0000)]
Cosmetic changes.

10 years agoRemove daft KASSERT.
kevlo [Fri, 6 Dec 2013 15:14:18 +0000 (15:14 +0000)]
Remove daft KASSERT.

10 years agoImprove the XHCI command timeout recovery handling code.
hselasky [Fri, 6 Dec 2013 08:42:41 +0000 (08:42 +0000)]
Improve the XHCI command timeout recovery handling code.

MFC after: 1 week

10 years agogcc: Include types in error message for build_binary_op.
pfg [Fri, 6 Dec 2013 02:19:58 +0000 (02:19 +0000)]
gcc: Include types in error message for build_binary_op.

Mostly cosmetic change, again to reduce differences with Apple's gcc.

Obtained from: gcc 4.3 (rev. 125239; GPLv2)
MFC after: 3 weeks

10 years agoAdd VT(9) font tools.
ray [Thu, 5 Dec 2013 22:58:05 +0000 (22:58 +0000)]
Add VT(9) font tools.
Reviewed by: nwhitehorn
MFC_to_10_after: re approval

Sponsored by: The FreeBSD Foundation

10 years agoInstall teken.h for userland.
ray [Thu, 5 Dec 2013 22:56:37 +0000 (22:56 +0000)]
Install teken.h for userland.
Part of VT(9) project merge.
Reviewed by: nwhitehorn
MFC_to_10_after: re approval

Sponsored by: The FreeBSD Foundation

10 years agotest: Avoid looking up again the type of a known binary operator.
jilles [Thu, 5 Dec 2013 22:53:32 +0000 (22:53 +0000)]
test: Avoid looking up again the type of a known binary operator.

10 years agoMerge VT(9) project (a.k.a. newcons).
ray [Thu, 5 Dec 2013 22:38:53 +0000 (22:38 +0000)]
Merge VT(9) project (a.k.a. newcons).

Reviewed by: nwhitehorn
MFC_to_10_after: re approval

Sponsored by: The FreeBSD Foundation

10 years agoFix a typo.
jhb [Thu, 5 Dec 2013 21:58:02 +0000 (21:58 +0000)]
Fix a typo.

10 years agoThere is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.
jhb [Thu, 5 Dec 2013 21:55:10 +0000 (21:55 +0000)]
There is no sysctl with the MIB { CTL_KERN, KERN_MAXID }.

MFC after: 2 weeks

10 years agoFix the processor table entry structure to use a fixed-width type for
jhb [Thu, 5 Dec 2013 21:51:54 +0000 (21:51 +0000)]
Fix the processor table entry structure to use a fixed-width type for
32-bit fields so it is the correct size on amd64.  Remove a workaround
for the broken structure from bhyve(8).

MFC after: 1 week

10 years agoFix debug printfs in FPU_EMU to compile on powerpc64 and enable it for
jhb [Thu, 5 Dec 2013 21:49:14 +0000 (21:49 +0000)]
Fix debug printfs in FPU_EMU to compile on powerpc64 and enable it for
powerpc64.  This fixes the LINT64 kernel config.

Approved by: nwhitehorn (the idea, not the actual patch)

10 years agoDo some cosmetic fixes.
andreast [Thu, 5 Dec 2013 21:35:52 +0000 (21:35 +0000)]
Do some cosmetic fixes.

10 years agoIncrease PHYS_AVAIL_SZ because on pSeries machines we can have many logical
andreast [Thu, 5 Dec 2013 21:34:33 +0000 (21:34 +0000)]
Increase PHYS_AVAIL_SZ because on pSeries machines we can have many logical
regions which represent the total amount of memory. The size of these regions
is not the physical size of the chip but it is a logical one and it is given
by the OpenFirmware, it is selectable at boot time and varies between 16MB and
256MB in my case. There is an 'automatic' option which would select the size as
64MB in case you have around 16GB of RAM.
To make sure we can allocate RAM with the automatic option bump this value
of PHYS_AVAIL_SZ to 256.

10 years agoIn case we have many continous regions without gaps we have to make soure that
andreast [Thu, 5 Dec 2013 21:25:56 +0000 (21:25 +0000)]
In case we have many continous regions without gaps we have to make soure that
we collapse them into one region. The previous version missed to go back one
step and do it again.

10 years agogcc: Add -flax-vector-conversions
pfg [Thu, 5 Dec 2013 21:22:51 +0000 (21:22 +0000)]
gcc: Add -flax-vector-conversions

Obtained from: gcc 4.3 (rev. 120572, 120688; GPLv2)

10 years agoInitialize modesetting sysctls in radeonkms.
rmh [Thu, 5 Dec 2013 20:23:32 +0000 (20:23 +0000)]
Initialize modesetting sysctls in radeonkms.

This is intended for MFC if re@ permits.

Reviewed by: kib, dumbbell
Tested by: Steven Chamberlain <steven@pyro.eu.org>
MFC after: 3 days

10 years agoFix external compiler warning about write-only assigned variable.
hselasky [Thu, 5 Dec 2013 07:18:06 +0000 (07:18 +0000)]
Fix external compiler warning about write-only assigned variable.

10 years agoMake panic_reboot_wait_time static.
cperciva [Thu, 5 Dec 2013 03:01:41 +0000 (03:01 +0000)]
Make panic_reboot_wait_time static.

Submitted by: jhb

10 years agoAdd -F to flush output after each write. With this, I can
trhodes [Thu, 5 Dec 2013 01:44:24 +0000 (01:44 +0000)]
Add -F to flush output after each write.  With this, I can
set up a pipe and allow a jr user to watch what I'm doing
by running 'script -F pipefile' on it.

While here, spell out the month in the .Dd tag like other
manual pages.

10 years agoMFC @r258947.
ray [Thu, 5 Dec 2013 00:57:53 +0000 (00:57 +0000)]
MFC @r258947.

Sponsored by: The FreeBSD Foundation

10 years agoEnable Hyper-V support in i386 GENERIC.
delphij [Thu, 5 Dec 2013 00:56:50 +0000 (00:56 +0000)]
Enable Hyper-V support in i386 GENERIC.

MFC after: 2 weeks

10 years agoEnsure WITH_DVD is not empty to prevent 'WITH_DVD= ' from evaluating
gjb [Thu, 5 Dec 2013 00:56:03 +0000 (00:56 +0000)]
Ensure WITH_DVD is not empty to prevent 'WITH_DVD= ' from evaluating
to true.

Submitted by: hrs
MFC after: 3 days
X-MFC-to-10: immediate
Sponsored by: The FreeBSD Foundation

10 years agoSupport Hyper-V on i386:
delphij [Thu, 5 Dec 2013 00:54:38 +0000 (00:54 +0000)]
Support Hyper-V on i386:

 - Add 'hyperv' module into build;
 - Allow building Hyper-V support as part of the kernel;
 - Hook Hyper-V build into NOTES.

This is intended for MFC if re@ permits.

MFC after: 3 days

10 years agoo Implement more standard ioctls.
ray [Thu, 5 Dec 2013 00:12:52 +0000 (00:12 +0000)]
o Implement more standard ioctls.
o Translate old ioctls to new ones for compat with FREEBSD6/FREEBSD5/FREEBSD4.
o Fix style(9) on "return"s.
o Remove some extra debug.

Sponsored by: The FreeBSD Foundation

10 years agogcc: On rs6000 update sp_offset depending only on size.
pfg [Wed, 4 Dec 2013 21:17:39 +0000 (21:17 +0000)]
gcc: On rs6000 update sp_offset depending only on size.

This fixes a nasty bug introduced in r258651.

Reported and tested by: Justin Hibbits
Obtained from: gcc pre-4.3 (rev. 125116; GPLv2)
MFC after: 2 weeks

10 years agoClean up paragraph remnants.
pluknet [Wed, 4 Dec 2013 20:46:25 +0000 (20:46 +0000)]
Clean up paragraph remnants.

10 years agoApply vendor improvements to oce(4) driver:
delphij [Wed, 4 Dec 2013 20:24:18 +0000 (20:24 +0000)]
Apply vendor improvements to oce(4) driver:

 - Add support to 40Gbps devices;
 - Add support to control adaptive interrupt coalescing (AIC)
   via sysctl;
 - Improve support of BE3 devices;

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex Com>
MFC after: 3 days

10 years agoroute(1): Pull static data to the top of the file.
eadler [Wed, 4 Dec 2013 20:15:53 +0000 (20:15 +0000)]
route(1): Pull static data to the top of the file.

This is a pre-requisisite to some upcoming changes.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Discussed on: -hackers

10 years agoroute(1): Pull static buffer out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:13:29 +0000 (20:13 +0000)]
route(1): Pull static buffer out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Discussed on: -hackers

10 years agoroute(1): Pull static buffer out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:08:57 +0000 (20:08 +0000)]
route(1): Pull static buffer out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers

10 years agoroute(1): Pull static variable out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:07:34 +0000 (20:07 +0000)]
route(1): Pull static variable out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers

10 years agoroute(1): Pull static buffer out of the function and into function scope.
eadler [Wed, 4 Dec 2013 20:03:55 +0000 (20:03 +0000)]
route(1): Pull static buffer out of the function and into function scope.

This will make it easier to link as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers

10 years agoAdd missing bits from the vendor's 2005-05-04 change to
obrien [Wed, 4 Dec 2013 19:15:56 +0000 (19:15 +0000)]
Add missing bits from the vendor's 2005-05-04 change to
contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by
applications") so that applications have a hope of detecting newer
FreeBSD YACC output from an older one.

Submitted by: Juniper Networks

10 years agodrm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge
dumbbell [Wed, 4 Dec 2013 19:04:56 +0000 (19:04 +0000)]
drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge

Before this fix, capabilities were read from vgapci and were incorrect.

10 years agoRename sysctl kern.supported_abis to kern.supported_archs, since it gives
nwhitehorn [Wed, 4 Dec 2013 16:38:40 +0000 (16:38 +0000)]
Rename sysctl kern.supported_abis to kern.supported_archs, since it gives
the set of MACHINE_ARCH values that can be run.

10 years agoFix a regression introduced by SVN r257842 that prevents Encryption from
dteske [Wed, 4 Dec 2013 16:06:23 +0000 (16:06 +0000)]
Fix a regression introduced by SVN r257842 that prevents Encryption from
being enabled.

MFC after: 3 days

10 years agoRegenerate after r258838
bdrewery [Wed, 4 Dec 2013 16:06:11 +0000 (16:06 +0000)]
Regenerate after r258838

10 years agoRegenerate after r258924
bdrewery [Wed, 4 Dec 2013 16:03:32 +0000 (16:03 +0000)]
Regenerate after r258924

MFC after: 3 days
Approved by: bapt (implicit)

10 years agoAdd missing period for WITHOUT_PKGBOOTSTRAP so that it matches all
bdrewery [Wed, 4 Dec 2013 15:58:42 +0000 (15:58 +0000)]
Add missing period for WITHOUT_PKGBOOTSTRAP so that it matches all
other entries.

Approved by: bapt
MFC after: 3 days

10 years agoFix what looks like a typo after r258732.
hselasky [Wed, 4 Dec 2013 12:30:51 +0000 (12:30 +0000)]
Fix what looks like a typo after r258732.

10 years agoFix external compiler warning(s). Avoid pointer dereferencing.
hselasky [Wed, 4 Dec 2013 12:07:46 +0000 (12:07 +0000)]
Fix external compiler warning(s). Avoid pointer dereferencing.

10 years agoChange comment to match code.
trasz [Wed, 4 Dec 2013 09:48:52 +0000 (09:48 +0000)]
Change comment to match code.

Discussed with: thompsa
Sponsored by: The FreeBSD Foundation

10 years agoUpdate release notes.
rodrigc [Wed, 4 Dec 2013 08:20:04 +0000 (08:20 +0000)]
Update release notes.

Submitted by: skreuzer

10 years agoAdd "null" backend to mdconfig(8). This does exactly what the name
trasz [Wed, 4 Dec 2013 07:38:23 +0000 (07:38 +0000)]
Add "null" backend to mdconfig(8).  This does exactly what the name
suggests, and is somewhat useful for benchmarking.

MFC after: 1 month
No objections from: kib
Sponsored by: The FreeBSD Foundation

10 years agoAvoid using a static buffer in atalk_ntoa. This will help allow users to call route...
eadler [Wed, 4 Dec 2013 05:06:56 +0000 (05:06 +0000)]
Avoid using a static buffer in atalk_ntoa.  This will help allow users to call route(1) as a library.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de> (older version)
Discussed on: -hackers
Reviwed by: adri (different older version)

10 years agoAdd const qualifier where appropriate
eadler [Wed, 4 Dec 2013 04:29:52 +0000 (04:29 +0000)]
Add const qualifier where appropriate

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>

10 years agoAdd const qualifier where appropriate
eadler [Wed, 4 Dec 2013 04:28:49 +0000 (04:28 +0000)]
Add const qualifier where appropriate

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>

10 years agoTurn 'n' into a local variable. This is required for additional changes.
eadler [Wed, 4 Dec 2013 04:28:00 +0000 (04:28 +0000)]
Turn 'n' into a local variable.  This is required for additional changes.

Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>

10 years agoext2fs: add two new reserved inodes.
pfg [Wed, 4 Dec 2013 02:27:52 +0000 (02:27 +0000)]
ext2fs: add two new reserved inodes.

According to online documentation [1], Ext4 has two new "special"
inodes so add the new exclude and replica inodes.

Reference:
[1] https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout

Reported by: Mike Ma
MFC after: 3 weeks

10 years agoEnable some previously-disabled DTrace tests for umod, ufunc and usym. They
markj [Wed, 4 Dec 2013 01:40:39 +0000 (01:40 +0000)]
Enable some previously-disabled DTrace tests for umod, ufunc and usym. They
expect the installed ksh binary to be named "ksh", which is not the case
when it's installed on FreeBSD via the shells/ksh93 port. Allow for it to be
"ksh93" as well so that the tests can actually pass.

10 years agoThe uaddr, ufunc, umod and usym functions all seem to work as expected on
markj [Wed, 4 Dec 2013 01:35:04 +0000 (01:35 +0000)]
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".

Reported by: Prashanth Kumar <pra_udupi@yahoo.co.in>

10 years agosvn r251516 resized the buf argument a bit too much. Pass a hardcoded
sbruno [Wed, 4 Dec 2013 00:28:44 +0000 (00:28 +0000)]
svn r251516 resized the buf argument a bit too much.  Pass a hardcoded
size of 6 to humanize_number() to resolve this.

PR: 184405
Submitted by: jhb
MFC after: 2 weeks

10 years agoBreak the loop once we know we have the SYF_CAPENABLED flag.
pjd [Wed, 4 Dec 2013 00:10:37 +0000 (00:10 +0000)]
Break the loop once we know we have the SYF_CAPENABLED flag.

10 years agoOnly the shared library is installed in /lib/. Static library and symlink
pjd [Tue, 3 Dec 2013 23:16:08 +0000 (23:16 +0000)]
Only the shared library is installed in /lib/. Static library and symlink
to shared library stays in /usr/lib/. Don't delete them.

Reported by: jkim

10 years agoUpdate LLDB to upstream r196322 snapshot
emaste [Tue, 3 Dec 2013 22:26:38 +0000 (22:26 +0000)]
Update LLDB to upstream r196322 snapshot

Upstream revisions of note:
r196298 - Fix use of std::lower_bound
r196322 - Fix log message for new invalidation checks

Sponsored by: DARPA, AFRL

10 years agoThe rc system aggressively caches the contents of /etc/rc.conf in order to
cperciva [Tue, 3 Dec 2013 21:55:57 +0000 (21:55 +0000)]
The rc system aggressively caches the contents of /etc/rc.conf in order to
improve boot performance; this produces arguably astonishing (non-)results
if /etc/rc.conf is modified during the boot process.

Since performance considerations make it infeasible to automatically detect
if the cached /etc/rc.conf parameters should be invalidated, provide a
mechanism for explicitly requesting that /etc/rc.conf be reloaded: Catch
SIGALRM and reload /etc/rc.conf if it is received.

Discussed on: freebsd-rc
MFC after: 3 days

10 years agoAdd a new sysctl / loader tunable kern.panic_reboot_wait_time which
cperciva [Tue, 3 Dec 2013 21:35:25 +0000 (21:35 +0000)]
Add a new sysctl / loader tunable kern.panic_reboot_wait_time which
defaults to PANIC_REBOOT_WAIT_TIME (a long-existing kernel config
setting).  Use this now-variable value in place of the defined constant
to control how long the system waits after a panic before rebooting.

10 years agolldb: Threaded inferior support for FreeBSD
emaste [Tue, 3 Dec 2013 21:29:45 +0000 (21:29 +0000)]
lldb: Threaded inferior support for FreeBSD

This is in the process of being submitted to the upstream LLDB
repository.  The thread list functionality is modelled in part on
GDBRemoteCommunicationClient.

LLDB bug pr16696 and code review D2267

Sponsored by: DARPA, AFRL

10 years agoVarious updates and tweaks to the wait(2) manpage.
jhb [Tue, 3 Dec 2013 21:00:13 +0000 (21:00 +0000)]
Various updates and tweaks to the wait(2) manpage.

PR: docs/183904
Submitted by: Michael Galassi <michaelgalassi@gmail.com>
Reviewed by: kib, wblock (earlier version)

10 years agoUpdate LLDB to upstream r196259 snapshot
emaste [Tue, 3 Dec 2013 19:23:54 +0000 (19:23 +0000)]
Update LLDB to upstream r196259 snapshot

Sponsored by: DARPA, AFRL

10 years agoImport lldb as of SVN r196259 (git 3be86e5)
emaste [Tue, 3 Dec 2013 18:51:59 +0000 (18:51 +0000)]
Import lldb as of SVN r196259 (git 3be86e5)

(A number of files not required for the FreeBSD build have been removed.)

Sponsored by: DARPA, AFRL

10 years agocxgbe(4): T4_SET_SCHED_CLASS and T4_SET_SCHED_QUEUE ioctls to program
np [Tue, 3 Dec 2013 18:34:52 +0000 (18:34 +0000)]
cxgbe(4):  T4_SET_SCHED_CLASS and T4_SET_SCHED_QUEUE ioctls to program
scheduling classes in the chip and to bind tx queue(s) to a scheduling
class respectively.  These can be used for various kinds of tx traffic
throttling (to force selected tx queues to drain at a fixed Kbps rate,
or a % of the port's total bandwidth, or at a fixed pps rate, etc.).

Obtained from: Chelsio

10 years agoWorkaround lldb issue with main module base address
emaste [Tue, 3 Dec 2013 18:12:51 +0000 (18:12 +0000)]
Workaround lldb issue with main module base address

On FreeBSD lldb sometimes reloads the the main module's (executable's)
symbols at the wrong address.  Work around this for now by explicitly
reloading at base_address=0 when it happens.

A proper fix is needed but early testers have reported this issue so
this workaround should allow them to make further progress.

http://llvm.org/bugs/show_bug.cgi?id=17880

10 years agoProperly report an error instead of panicing when user tries to create
trasz [Tue, 3 Dec 2013 18:04:14 +0000 (18:04 +0000)]
Properly report an error instead of panicing when user tries to create
LUN backed by non-disk device, e.g. /dev/null.

Reviewed by: ken (earlier version)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoFix an off-by-one error in r228960. The maximum priority delta provided
jhb [Tue, 3 Dec 2013 14:50:12 +0000 (14:50 +0000)]
Fix an off-by-one error in r228960.  The maximum priority delta provided
by SCHED_PRI_TICKS should be SCHED_PRI_RANGE - 1 so that the resulting
priority value (before nice adjustment) is between SCHED_PRI_MIN and
SCHED_PRI_MAX, inclusive.

Submitted by: kib
Reported by: pho
MFC after: 1 week

10 years agoAdd libcapsicum and libcasper libraries that were moved from /usr/lib/ to /lib/.
pjd [Tue, 3 Dec 2013 13:38:13 +0000 (13:38 +0000)]
Add libcapsicum and libcasper libraries that were moved from /usr/lib/ to /lib/.

Reviewed by: glebius