]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoNote that libstand is 32-bit on amd64 and powerpc64
emaste [Fri, 29 Nov 2013 15:05:49 +0000 (15:05 +0000)]
Note that libstand is 32-bit on amd64 and powerpc64

Sponsored by: The FreeBSD Foundation

10 years agoLook up a nand chip by id in the static table before trying to obtain
ian [Fri, 29 Nov 2013 14:23:22 +0000 (14:23 +0000)]
Look up a nand chip by id in the static table before trying to obtain
ONFI parameters.  This allows a static table entry to provide valid data
for chips known to provide invalid ONFI data.

10 years agozfs mappedread_sf: assert that a page is never partially valid
avg [Fri, 29 Nov 2013 12:19:52 +0000 (12:19 +0000)]
zfs mappedread_sf: assert that a page is never partially valid

ZFS never partially validates or invalidates a page.
The higher level VM should not do that either.
mappedread_sf correct operation depends on a page being either fully
valid or invalid.

MFC after: 7 days

10 years agoAlso mention that drill(1) can be used, now that nslookup and dig are no
rodrigc [Fri, 29 Nov 2013 08:22:48 +0000 (08:22 +0000)]
Also mention that drill(1) can be used, now that nslookup and dig are no
longer in the base system.

Suggested by: peter

10 years agoIn keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
rodrigc [Fri, 29 Nov 2013 08:04:45 +0000 (08:04 +0000)]
In keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
message printed to the console.  This makes it easier to track down
the source of certain memory leaks.

Suggested by: adrian

10 years agoFix typo in comment.
rpaulo [Fri, 29 Nov 2013 07:55:44 +0000 (07:55 +0000)]
Fix typo in comment.

10 years agoMove KDTRACE_FRAME to "options" since it's used by kern.pre.mk.
rpaulo [Fri, 29 Nov 2013 07:28:59 +0000 (07:28 +0000)]
Move KDTRACE_FRAME to "options" since it's used by kern.pre.mk.

10 years agoChange run_rt2870_rf_write() prototype (no functional change)
kevlo [Fri, 29 Nov 2013 07:08:17 +0000 (07:08 +0000)]
Change run_rt2870_rf_write() prototype (no functional change)

10 years agoOn the RT2870, rf registers are now 64-bit, not 32-bit after r257955.
kevlo [Fri, 29 Nov 2013 06:10:44 +0000 (06:10 +0000)]
On the RT2870, rf registers are now 64-bit, not 32-bit after r257955.
Committed over a Buffalo WLI-UC-AG300N (RT2870).

10 years agogcc: Make use of TREE_OVERFLOW_P.
pfg [Fri, 29 Nov 2013 05:00:07 +0000 (05:00 +0000)]
gcc: Make use of TREE_OVERFLOW_P.

While it was brought in r258179 only to fix a build issue,
bringing the rest of the change has the advantage of fixing
GCC/19978.

Obtained from: gcc 4.3 (rev. 120505; GPLv2)
MFC after: 1 week

10 years agoFix an issue where additional lines of a function definition didn't line
dteske [Fri, 29 Nov 2013 04:09:25 +0000 (04:09 +0000)]
Fix an issue where additional lines of a function definition didn't line
up with the primary (leading) line of syntax.

10 years agoFix an issue where the leading `+' sign before a function name was not
dteske [Fri, 29 Nov 2013 04:08:21 +0000 (04:08 +0000)]
Fix an issue where the leading `+' sign before a function name was not
displayed unless color was requested.

10 years agoAdd an interface for the Wii IOS kernels.
rpaulo [Fri, 29 Nov 2013 00:40:32 +0000 (00:40 +0000)]
Add an interface for the Wii IOS kernels.

Multiple IOS interfaces can exist at the same time.

10 years agoGive some output about the CPU clock on IBMPOWER machines, currently read
andreast [Thu, 28 Nov 2013 21:57:17 +0000 (21:57 +0000)]
Give some output about the CPU clock on IBMPOWER machines, currently read
from OF. Linux does it similar, means they also read the OF values and
display them.

Tested under qemu and real hardware:

cpu0: IBM POWER5+ revision 2.0, 1898.10 MHz

10 years agoMFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)
avg [Thu, 28 Nov 2013 19:44:36 +0000 (19:44 +0000)]
MFV r258665: 4347 ZPL can use dmu_tx_assign(TXG_WAIT)

illumos/illumos-gate@e722410c49fe67cbf0f639cbcc288bd6cbcf7dd1

MFC after: 9 days
X-MFC after: r258632

10 years agoPurely cosmetic change: order DT_REL* and DT_RELA* consistently.
emaste [Thu, 28 Nov 2013 19:41:03 +0000 (19:41 +0000)]
Purely cosmetic change: order DT_REL* and DT_RELA* consistently.

From projects/uefi, r246107

Sponsored by: The FreeBSD Foundation

10 years agojail_v0.ip_number was always in host byte order. This was handled
peter [Thu, 28 Nov 2013 19:40:33 +0000 (19:40 +0000)]
jail_v0.ip_number was always in host byte order.  This was handled
in one of the many layers of indirection and shims through stable/7
in jail_handle_ips().  When it was cleaned up and unified through
kern_jail() for 8.x, the byte order swap was lost.

This only matters for ancient binaries that call jail(2) themselves
internally.

10 years agoMFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control
avg [Thu, 28 Nov 2013 19:37:22 +0000 (19:37 +0000)]
MFV r258371,r258372: 4101 metaslab_debug should allow for fine-grained control

4101 metaslab_debug should allow for fine-grained control
4102 space_maps should store more information about themselves
4103 space map object blocksize should be increased
4104 ::spa_space no longer works
4105 removing a mirrored log device results in a leaked object
4106 asynchronously load metaslab

illumos/illumos-gate@0713e232b7712cd27d99e1e935ebb8d5de61c57d

Note that some tunables have been removed and some new tunables have
been added.  Of particular note, FreeBSD-only knob
vfs.zfs.space_map_last_hope is removed as it was a nop for some time now
(after one of the previous merges from upstream).

MFC after: 11 days
Sponsored by: HybridCluster [merge]

10 years ago - Add bucket size column to `show uma` DDB command.
mav [Thu, 28 Nov 2013 19:20:49 +0000 (19:20 +0000)]
 - Add bucket size column to `show uma` DDB command.
 - Add `show umacache` command to show alike stats for cache-only UMA zones.

10 years agoopensolaris compat: add taskq_wait emulation
avg [Thu, 28 Nov 2013 19:17:11 +0000 (19:17 +0000)]
opensolaris compat: add taskq_wait emulation

MFC after: 10 days

10 years agoAdd some text to clarify that nslookup and dig are no longer in the base system
rodrigc [Thu, 28 Nov 2013 19:13:05 +0000 (19:13 +0000)]
Add some text to clarify that nslookup and dig are no longer in the base system
after the removal of BIND.

10 years agoadd taskqueue_drain_all
avg [Thu, 28 Nov 2013 18:56:34 +0000 (18:56 +0000)]
add taskqueue_drain_all

This API has semantics similar to that of taskqueue_drain but acts on
all tasks that might be queued or running on a taskqueue.
A caller must ensure that no new tasks are being enqueued otherwise this
call would be totally meaningless.  For example, if the tasks are
enqueued by an interrupt filter then its interrupt must be disabled.

MFC after: 10 days

10 years agolibcpp: fix an underflow.
pfg [Thu, 28 Nov 2013 16:36:03 +0000 (16:36 +0000)]
libcpp: fix an underflow.

Obtained from: OpenBSD (Rev 1.2)
MFC after: 2 weeks

10 years agoSimplify O_NAT opcode handling.
melifaro [Thu, 28 Nov 2013 15:28:51 +0000 (15:28 +0000)]
Simplify O_NAT opcode handling.

MFC after: 2 weeks
Sponsored by: Yandex LLC

10 years agoAdd package additions support for pkgng by adding a new function cust_pkgng():
mr [Thu, 28 Nov 2013 11:06:18 +0000 (11:06 +0000)]
Add package additions support for pkgng by adding a new function cust_pkgng():
first bootstrap the pkg package (must be contained in the Pkg/ dir)
then add the other packages

10 years agoCheck ipfw table numbers in both user and kernel space before rule addition.
melifaro [Thu, 28 Nov 2013 10:28:28 +0000 (10:28 +0000)]
Check ipfw table numbers in both user and kernel space before rule addition.

Found by: Saychik Pavel <umka@localka.net>
MFC after: 2 weeks
Sponsored by: Yandex LLC

10 years agoDo a parallel buildworld & buildkernel (using NANO_PMAKE), but use a
n_hibma [Thu, 28 Nov 2013 08:54:15 +0000 (08:54 +0000)]
Do a parallel buildworld & buildkernel (using NANO_PMAKE), but use a
single threaded installworld, installkernel and distribution (using
NANO_MAKE). Setting NANO_PMAKE to 'make -j 12' would otherwise bomb
during installation of world.

MFC after: 2 weeks

10 years agofix a serious bug in r258632: offset parameter must be set in zio
avg [Thu, 28 Nov 2013 08:48:49 +0000 (08:48 +0000)]
fix a serious bug in r258632: offset parameter must be set in zio

In illumos all ioctl zio-s are "global" at the moment.  That is they act
on a whole disk, e.g. a cache flush command, and thus do not need either
offset or size parameters.
FreeBSD, on the other hand, has support for TRIM command and that
command requires proper offset and size parameters.
Without this fix all TRIM commands act on the start of any disk or
partition used by ZFS destroying any data there.

Pointyhat to: avg
Tested by: sbruno
MFC after: 3 days
X-MFC with: r258632
Sponsored by: HybridCluster

10 years agoFix some misinformation in netgraph manual pages.
glebius [Thu, 28 Nov 2013 06:45:30 +0000 (06:45 +0000)]
Fix some misinformation in netgraph manual pages.

Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com>

10 years agoAdd myself to the committers-src list.
mp [Wed, 27 Nov 2013 23:26:54 +0000 (23:26 +0000)]
Add myself to the committers-src list.

10 years agoAdd support for level triggered interrupt pins on the vioapic. Prior to this
neel [Wed, 27 Nov 2013 22:18:08 +0000 (22:18 +0000)]
Add support for level triggered interrupt pins on the vioapic. Prior to this
commit level triggered interrupts would work as long as the pin was not shared
among multiple interrupt sources.

The vlapic now keeps track of level triggered interrupts in the trigger mode
register and will forward the EOI for a level triggered interrupt to the
vioapic. The vioapic in turn uses the EOI to sample the level on the pin and
re-inject the vector if the pin is still asserted.

The vhpet is the first consumer of level triggered interrupts and advertises
that it can generate interrupts on pins 20 through 23 of the vioapic.

Discussed with: grehan@

10 years agocxgbetool: "modinfo" command to display SFP+ module information.
np [Wed, 27 Nov 2013 22:17:00 +0000 (22:17 +0000)]
cxgbetool: "modinfo" command to display SFP+ module information.

trantor:~# cxgbetool t5nex0 modinfo 1
ID: SFP
Vendor FINISAR CORP.
SN AJ10JQR
PN FTLX8571D3BCL
Rev A
Temp: +35C
Vcc 3.225600V
TX Bias 2.176000uA
TX Power 0.588800mW
RX Power 0.486400mW

Submitted by: gnn

10 years agoThis driver doesn't need the /options node, so don't check for it.
nwhitehorn [Wed, 27 Nov 2013 22:02:55 +0000 (22:02 +0000)]
This driver doesn't need the /options node, so don't check for it.

10 years agobadaddr() is used only in the grackle PCI driver, so move its definition
nwhitehorn [Wed, 27 Nov 2013 22:01:09 +0000 (22:01 +0000)]
badaddr() is used only in the grackle PCI driver, so move its definition
there. Clean up a spurious setfault() declaration as well.

10 years agoProvide a helpful diagnostic when the minimum size rounded to the block size
jmallett [Wed, 27 Nov 2013 21:55:43 +0000 (21:55 +0000)]
Provide a helpful diagnostic when the minimum size rounded to the block size
would exceed the maximum size.  This can be a difficult problem to diagnose
if one is, for instance, using -s with a fixed size in a script and the bsize
calculated for a filesystem image changes, necessitating a re-rounding of the
image size or a hand-setting of the bsize.  Previously one would get a
cryptic message about how the size exceeded the maximum size, which normally
only happens if the contents of the image are larger than specified.

10 years agoMake RTAS calls, which call setfault() to recover from machine checks,
nwhitehorn [Wed, 27 Nov 2013 21:51:34 +0000 (21:51 +0000)]
Make RTAS calls, which call setfault() to recover from machine checks,
preserve any existing fault buffer. RTAS calls are meant to be safe from
interrupt context (and are indeed used there to implement the xics PIC
drvier). Without this, calling into RTAS in interrupt context would have
the effect of clearing any existing onfault state of the interrupted
thread, potentially leading to a panic.

10 years agoMake UMA to not blindly force offpage slab header allocation for large
mav [Wed, 27 Nov 2013 20:56:10 +0000 (20:56 +0000)]
Make UMA to not blindly force offpage slab header allocation for large
(> PAGE_SIZE) zones.  If zone is not multiple to PAGE_SIZE, there may
be enough space for the header at the last page, so we may avoid extra
header memory allocation and hash table update/lookup.

ZFS creates bunch of odd-sized UMA zones (5120, 6144, 7168, 10240, 14336).
This change gives good use to at least some of otherwise lost memory there.

Reviewed by: avg

10 years agoAdd constants for use in interrogating various fiber and copper connectors
gnn [Wed, 27 Nov 2013 20:20:02 +0000 (20:20 +0000)]
Add constants for use in interrogating various fiber and copper connectors
most often used with network interfaces.

The SFF-8472 standard defines the information that can be retrieved
from an optic or a copper cable plugged into a NIC, most often
referred to as SFP+.  Examples of values that can be read
include the cable vendor's name, part number, date of manufacture
as well as running data such as temperature, voltage and tx
and rx power.

Copious comments on how to use these values with an I2C interface
are given in the header file itself.

MFC after: 2 weeks

10 years agoDon't count bucket allocation failures for UMA zones as their own failures.
mav [Wed, 27 Nov 2013 20:16:18 +0000 (20:16 +0000)]
Don't count bucket allocation failures for UMA zones as their own failures.
There are good reasons for this to happen, such as recursion prevention, etc.
and they are not fatal since buckets are just an optimization mechanism.
Real bucket allocation failures are any way counted by the bucket zones
themselves, and we don't need double accounting there.

10 years agoFix bug introduced at r252226, when udata argument passed to bucket_alloc()
mav [Wed, 27 Nov 2013 19:55:42 +0000 (19:55 +0000)]
Fix bug introduced at r252226, when udata argument passed to bucket_alloc()
was used without making sure first that it was really passed for us.

On some of my systems this bug made user argument passed by ZFS code to
uma_zalloc_arg() unexpectedly block UMA per-CPU caches for those zones.

10 years agoDisable an assertion that relies on some code[1] that isn't in HEAD yet.
np [Wed, 27 Nov 2013 19:54:19 +0000 (19:54 +0000)]
Disable an assertion that relies on some code[1] that isn't in HEAD yet.

[1] http://lists.freebsd.org/pipermail/freebsd-net/2013-August/036573.html

10 years agoRevert r258672. We clearly don't compile libraries enough times.
peter [Wed, 27 Nov 2013 19:51:50 +0000 (19:51 +0000)]
Revert r258672. We clearly don't compile libraries enough times.

10 years ago- add myself to the committers list (it's about time,
se [Wed, 27 Nov 2013 19:12:29 +0000 (19:12 +0000)]
- add myself to the committers list (it's about time,
  having been a committer for more than 19 years ...)

10 years agoFix fdisk(8) to create 2TB partitions on disks larger than 2TB, rather than
jmallett [Wed, 27 Nov 2013 17:59:13 +0000 (17:59 +0000)]
Fix fdisk(8) to create 2TB partitions on disks larger than 2TB, rather than
only being able to create 1TB partitions:
o) Use an unsigned 32-bit quantity to store the number of disk sectors.
o) Detect overflow of said 32-bit quantity and clamp to 2^32.
o) Rather than returning the disk sector count from get_params, return 0 on
   success, since its return value is only ever compared to -1 to detect
   failure.  This would cause returning 2^32 sectors to be interpreted as an
   error.

Reviewed by: bde ("good for a quick fix")

10 years agoAdd myself to the committers-src list.
royger [Wed, 27 Nov 2013 15:58:07 +0000 (15:58 +0000)]
Add myself to the committers-src list.

Approved by: gibbs (mentor)

10 years agoEscape special XML chars, returned by some devices, confusing XML parsers.
mav [Wed, 27 Nov 2013 14:25:06 +0000 (14:25 +0000)]
Escape special XML chars, returned by some devices, confusing XML parsers.

MFC after: 1 month

10 years agoConnect the two recently added man pages to the system's install process.
loos [Wed, 27 Nov 2013 12:17:05 +0000 (12:17 +0000)]
Connect the two recently added man pages to the system's install process.

Approved by: adrian (mentor)

10 years agoFix the led 'gpios' definition to match the description on
loos [Wed, 27 Nov 2013 12:12:37 +0000 (12:12 +0000)]
Fix the led 'gpios' definition to match the description on
sys/boot/fdt/dts/bindings-gpio.txt.  Make the led pin an output, add the
missing flag field.  No functional change (gpioled(4) isn’t supported on
FDT systems yet).

Approved by: adrian (mentor)

10 years agoFix key lookup in ipfw(8) broken since r232865.
melifaro [Wed, 27 Nov 2013 10:10:25 +0000 (10:10 +0000)]
Fix key lookup in ipfw(8) broken since r232865.
Print warning for IPv4 address strings which are valid in
inet_aton() but not valid in inet_pton(). (1)

Found by: Özkan KIRIK <ozkan.kirik@gmail.com>
Submitted by: Ian Smith <smithi@nimnet.asn.au> (1)
MFC after: 2 weeks
Sponsored by: Yandex LLC

10 years agoBandaid for compiling with gcc.
pluknet [Wed, 27 Nov 2013 08:39:48 +0000 (08:39 +0000)]
Bandaid for compiling with gcc.

10 years agoFix build.
glebius [Wed, 27 Nov 2013 07:21:25 +0000 (07:21 +0000)]
Fix build.

10 years agoDon't create an initial value for the host filesystem of "/".
grehan [Wed, 27 Nov 2013 06:07:03 +0000 (06:07 +0000)]
Don't create an initial value for the host filesystem of "/".
This has the unintended effect of booting the host kernel if
a disk image open fails.

Discussed with: neel

10 years agoAt great personal risk, change the default for LIB32 from yes to no. As
peter [Wed, 27 Nov 2013 04:54:23 +0000 (04:54 +0000)]
At great personal risk, change the default for LIB32 from yes to no.  As
mentioned in UPDATING, you can even do it as an as-needed operation after
doing a buildworld/installworld.  You can set WITH_LIB32=yes in make.conf
or src.conf.

10 years agoDocument the dvdrom target and NODVD variable, forgotten with r258310.
gjb [Wed, 27 Nov 2013 03:05:24 +0000 (03:05 +0000)]
Document the dvdrom target and NODVD variable, forgotten with r258310.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoAllow bhyve and bhyveload to attach to tty devices.
grehan [Wed, 27 Nov 2013 00:21:37 +0000 (00:21 +0000)]
Allow bhyve and bhyveload to attach to tty devices.

bhyveload: introduce the -c <device> parameter
 to select a tty for output (or "stdio")

bhyve: allow the puc and lpc-com backends to
 accept a tty in addition to "stdio"

When used in conjunction with the null-modem device,
nmdm(4), this allows attach/detach to the guest console
and multiple concurrent serial ports. kgdb on a serial
port is now functional.

Reviewed by: neel
Requested by: Almost everyone that has used bhyve
MFC after: 10.0

10 years ago- Nuke a second copy of nfscl_attrcache extern declarations from under
pluknet [Tue, 26 Nov 2013 22:41:40 +0000 (22:41 +0000)]
- Nuke a second copy of nfscl_attrcache extern declarations from under
ifdef KDTRACE_HOOKS.  This fixes kernel build with options KDTRACE_HOOKS.
- Fix style inconsistencies.

10 years agoFix build, attempt two.
glebius [Tue, 26 Nov 2013 20:27:57 +0000 (20:27 +0000)]
Fix build, attempt two.

10 years agoCreate /var/cache with mode 0755 instead of 0750.
delphij [Tue, 26 Nov 2013 20:03:25 +0000 (20:03 +0000)]
Create /var/cache with mode 0755 instead of 0750.

This directory is used by many third party applications and having
permission 0750 makes it impossible to drop group privileges.

MFC after: 3 days

10 years agoUse sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
kib [Tue, 26 Nov 2013 19:54:12 +0000 (19:54 +0000)]
Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
location for the native amd64 ABI.  This fixes unwinding over the
signal frame after trampoline was moved to the shared page.

The code would be more correct if using sysctl for the target process
instead of inspecting gdb' own trampoline, but the current change is
least intrusive and currently, we always initialize the native ABI
sysvec first, which means that trampoline location for FreeBSD/amd64
ABI is relatively stable.

Similar change will benefit libunwind.

Analyzed by: avg
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agomdoc: sort sections.
joel [Tue, 26 Nov 2013 19:51:53 +0000 (19:51 +0000)]
mdoc: sort sections.

10 years agoAdd an kinfo sysctl to retrieve signal trampoline location for the
kib [Tue, 26 Nov 2013 19:47:09 +0000 (19:47 +0000)]
Add an kinfo sysctl to retrieve signal trampoline location for the
given process.

Note that the correctness of the trampoline length returned for ABIs
which do not use shared page depends on the correctness of the struct
sysvec sv_szsigcodebase member, which will be fixed on as-need basis.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoHide struct pcb definition by #ifdef __amd64__ braces. If cc -m32
kib [Tue, 26 Nov 2013 19:38:42 +0000 (19:38 +0000)]
Hide struct pcb definition by #ifdef __amd64__ braces.  If cc -m32
compilation results in inclusion of the header, a confict arises due
to savefpu being union for i386, but used as struct in the pcb
definition.  The 32bit code should not need amd64 variant of the
struct pcb anyway.

For struct region_descriptor, use __uint64_t instead of unsigned long,
as the base type for bit-fields.  Unsigned long cannot have width 64
for -m32.

The changes allowed to use sys/sysctl.h for cc -m32.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoFix warnings to not append "No error: 0".
trasz [Tue, 26 Nov 2013 19:14:18 +0000 (19:14 +0000)]
Fix warnings to not append "No error: 0".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

10 years agoFix a segfault / internal compiler error.
mdf [Tue, 26 Nov 2013 17:11:43 +0000 (17:11 +0000)]
Fix a segfault / internal compiler error.

Among other causes, when gcc throws a warning before parsing any tokens,
the cur_token pointer is at the beginning of malloc'd memory.
Dereferencing cur_token[-1] can cause a segfault.

Code taken from OpenBSD
http://www.openbsd.org/cgi-bin/cvsweb/src/gnu/gcc/libcpp/errors.c
which was a more complete fix than the one I originally coded.

MFC after: 1 week

10 years agoFix macro name in comment.
pluknet [Tue, 26 Nov 2013 15:23:56 +0000 (15:23 +0000)]
Fix macro name in comment.

10 years agoForced commit to note that r258652 is actually:
pfg [Tue, 26 Nov 2013 15:18:40 +0000 (15:18 +0000)]
Forced commit to note that r258652 is actually:

gcc: Move conditions before an assert.

It is a bit cleaner to check the conditions before calling the assertion.
It also preserves the style from the rest of the code.
This is just a cosmetical change to match better what both Apple's gcc42
and Android's gcc-4.2.1 do.

10 years agogcc: Altivec register adjustments from Apple.
pfg [Tue, 26 Nov 2013 14:58:37 +0000 (14:58 +0000)]
gcc: Altivec register adjustments from Apple.

Obtained from: gcc pre-4.3 (rev. 124763; GPLv2)
MFC after: 3 weeks

10 years agogcc: Altivec register adjustments from Apple.
pfg [Tue, 26 Nov 2013 14:52:29 +0000 (14:52 +0000)]
gcc: Altivec register adjustments from Apple.

Obtained from: gcc pre-4.3 (rev. 124763; GPLv2)
MFC after: 3 weeks

10 years agouse saner calculations in should_yield
avg [Tue, 26 Nov 2013 14:00:50 +0000 (14:00 +0000)]
use saner calculations in should_yield

This is based on feedback from bde.

MFC after: 6 days

10 years agozfsboottest: properly specify a library dependency
avg [Tue, 26 Nov 2013 13:46:49 +0000 (13:46 +0000)]
zfsboottest: properly specify a library dependency

MFC after: 4 days

10 years agoStyle changes.
hselasky [Tue, 26 Nov 2013 11:11:24 +0000 (11:11 +0000)]
Style changes.

10 years agofix debug.zfs_flags sysctl description in r258638
avg [Tue, 26 Nov 2013 10:57:09 +0000 (10:57 +0000)]
fix debug.zfs_flags sysctl description in r258638

Pointyhat to: avg
MFC after: 3 days

10 years agoAdd missing static keyword.
hselasky [Tue, 26 Nov 2013 10:53:12 +0000 (10:53 +0000)]
Add missing static keyword.

MFC after: 2 weeks

10 years agoexpose zfs_flags as debug.zfs_flags r/w tunable and sysctl
avg [Tue, 26 Nov 2013 10:46:43 +0000 (10:46 +0000)]
expose zfs_flags as debug.zfs_flags r/w tunable and sysctl

This knob is purposefully hidden under debug.

MFC after: 5 days
Sponsored by: HybridCluster

10 years agoFix build.
glebius [Tue, 26 Nov 2013 10:34:34 +0000 (10:34 +0000)]
Fix build.

10 years agoMFV r258376: 3964 L2ARC should always compress metadata buffers
avg [Tue, 26 Nov 2013 10:14:23 +0000 (10:14 +0000)]
MFV r258376: 3964 L2ARC should always compress metadata buffers

illumos/illumos-gate@e4be62a2b74a8f09bb669217a1a39eee069b13a1

MFC after: 10 days
Sponsored by: HybridCluster [merge]

10 years agoMFV r255256: 3954 metaslabs continue to load even after hitting zfs_mg_alloc_failure...
avg [Tue, 26 Nov 2013 10:02:02 +0000 (10:02 +0000)]
MFV r255256: 3954 metaslabs continue to load even after hitting zfs_mg_alloc_failure limit

4080 zpool clear fails to clear pool
4081 need zfs_mg_noalloc_threshold

illumos/illumos-gate@22e30981d82a0b6dc89253596ededafae8655e00

MFC after: 10 days
Sponsored by: HybridCluster [merge]

10 years agoMFV r255255: 4045 zfs write throttle & i/o scheduler performance work
avg [Tue, 26 Nov 2013 09:57:14 +0000 (09:57 +0000)]
MFV r255255: 4045 zfs write throttle & i/o scheduler performance work

illumos/illumos-gate@69962b5647e4a8b9b14998733b765925381b727e

Please note the following changes:
- zio_ioctl has lost its priority parameter and now TRIM is executed
  with 'now' priority
- some knobs are gone and some new knobs are added; not all of them are
  exposed as tunables / sysctls yet

MFC after: 10 days
Sponsored by: HybridCluster [merge]

10 years agoMFV r247578: 3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot
avg [Tue, 26 Nov 2013 09:45:48 +0000 (09:45 +0000)]
MFV r247578: 3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot

illumos/illumos-gate@ec94d32216ed5705f5176582355cc311cf848e73

MFC after: 9 days
Sponsored by: HybridCluster [merge]

10 years ago734 taskq_dispatch_prealloc() desired
avg [Tue, 26 Nov 2013 09:26:18 +0000 (09:26 +0000)]
734 taskq_dispatch_prealloc() desired

943 zio_interrupt ends up calling taskq_dispatch with TQ_SLEEP
illumos/illumos-gate@5aeb94743e3be0c51e86f73096334611ae3a058e

Essentially FreeBSD taskqueues already operate in a mode that
was added to Illumos with taskq_dispatch_ent change.
We even exposed the superior FreeBSD interface as taskq_dispatch_safe.
Now we just rename taskq_dispatch_safe to taskq_dispatch_ent and
struct struct ostask to taskq_ent_t, so that code differences will be
minimal.

After this change sys/cddl/compat/opensolaris/sys/taskq.h header is no
longer needed.

Note that this commit is not an MFV because the upstream change was not
individually committed to the vendor area.

MFC after: 8 days

10 years agoMention that devd will kldload the driver when the device is connected.
truckman [Tue, 26 Nov 2013 09:14:39 +0000 (09:14 +0000)]
Mention that devd will kldload the driver when the device is connected.

Mention that the automatic mode switch from umass to u3g needed by some
devices does not work unless the driver is loaded before the device is
connected.

MFC after: 1 month

10 years agoopensolaris taskq: some cosmetic changes
avg [Tue, 26 Nov 2013 09:10:01 +0000 (09:10 +0000)]
opensolaris taskq: some cosmetic changes

- drop trailing whitespace
- remove redundant "extern" from function declarations
- remove unused macro

MFC after: 1 week

10 years agoAdd definitions for the microcode TLV flags entry (type 18.)
adrian [Tue, 26 Nov 2013 08:58:08 +0000 (08:58 +0000)]
Add definitions for the microcode TLV flags entry (type 18.)

This isn't used anywhere just yet!

Obtained from: Linux iwlwifi

10 years agoAdd a new debug section.
adrian [Tue, 26 Nov 2013 08:57:25 +0000 (08:57 +0000)]
Add a new debug section.

10 years agosdt: add support for solaris/illumos style DTRACE_PROBE macros
avg [Tue, 26 Nov 2013 08:49:53 +0000 (08:49 +0000)]
sdt: add support for solaris/illumos style DTRACE_PROBE macros

The new macros are implemented in terms of SDT_PROBE_DEFINE and SDT_PROBE.
Probes defined in this way will appear under SDT provider named "sdt".
Parameter types are exposed via SDT_PROBE_ARGTYPE.
This is something that illumos does not have by default.

This kind of SDT probes is already present in ZFS code, so those probes
will now be available if KDTRACE_HOOKS options is enabled.

A potential future illumos compatibility enhancement is to encode a provider
name as a prefix in a probe name.

Reviewed by: markj
MFC after: 3 weeks
X-MFC after: r258622

10 years agodtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE
avg [Tue, 26 Nov 2013 08:46:27 +0000 (08:46 +0000)]
dtrace sdt: remove the ugly sname parameter of SDT_PROBE_DEFINE

In its stead use the Solaris / illumos approach of emulating '-' (dash)
in probe names with '__' (two consecutive underscores).

Reviewed by: markj
MFC after: 3 weeks

10 years agoFix the compat32 sendfile() to be in line with my recent changes.
adrian [Tue, 26 Nov 2013 08:32:37 +0000 (08:32 +0000)]
Fix the compat32 sendfile() to be in line with my recent changes.

Reminded by: kib

10 years agoPull in r195558 from upstream clang trunk:
dim [Tue, 26 Nov 2013 08:07:45 +0000 (08:07 +0000)]
Pull in r195558 from upstream clang trunk:

  Fix a SSE2 intrinsics typo

  Full discourse at:

   http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092514.html
   http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/068124.html

  Patch by Dimitry Andric and Alexey Dokuchaev!

Reported by: danfe
MFC after: 3 days

10 years agoDragonFly 3.6.0 released.
pluknet [Tue, 26 Nov 2013 08:07:24 +0000 (08:07 +0000)]
DragonFly 3.6.0 released.

10 years agoMention axge(4)
lwhsu [Tue, 26 Nov 2013 07:52:40 +0000 (07:52 +0000)]
Mention axge(4)

Approved by: kevlo

10 years agoAlso note to add xhci(4) to kernel configuration to utilize USB 3.0
lwhsu [Tue, 26 Nov 2013 07:51:38 +0000 (07:51 +0000)]
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

Approved by: markj

10 years agoTake care to handle the full 16 byte buffer in the get/put routines. Also,
andreast [Tue, 26 Nov 2013 05:26:10 +0000 (05:26 +0000)]
Take care to handle the full 16 byte buffer in the get/put routines. Also,
skip the VTERM header once when receiving data from the hypervisor call when
we have a HVTERMPROT connection.

MFC after: 1 week

10 years agoThe Data Byte Count (DBC) field of a Physical Region Descriptor
grehan [Tue, 26 Nov 2013 03:00:54 +0000 (03:00 +0000)]
The Data Byte Count (DBC) field of a Physical Region Descriptor
Table is 22 bits, with the bit 31 being the interrupt-on-completion
bit.

OpenBSD and UEFI set this bit, resulting in large block i/o lengths
being sent to bhyve and coredumping the process. Fix by masking off
the relevant 22 bits when using the DBC field as a length.

Reviewed by: Zhixiang Yu
Discussed with: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)
MFC after: 10.0

10 years agoRefactor out the sendfile copyout in order to make vn_sendfile()
adrian [Tue, 26 Nov 2013 02:02:05 +0000 (02:02 +0000)]
Refactor out the sendfile copyout in order to make vn_sendfile()
callable from the kernel.

Right now vn_sendfile() can't be called from anything other than
a syscall handler _and_ return the number of bytes queued.
This simply moves the copyout() to do_sendfile() so that any kernel
code can initiate vn_sendfile() outside of a syscall context.

Tested:

* tiny little sendfile program spitting things out a tcp socket

Sponsored by: Netflix, Inc.

10 years agoThe bssid can change from underneath us, so take a reference before
adrian [Tue, 26 Nov 2013 01:30:10 +0000 (01:30 +0000)]
The bssid can change from underneath us, so take a reference before
we fiddle with it.

10 years agoAdjust introduction history.
pluknet [Mon, 25 Nov 2013 23:45:50 +0000 (23:45 +0000)]
Adjust introduction history.
Dump .Dd for this and previous changes.

Discussed with: trasz
MFC after: 3 days

10 years agoFix discrepancy between the IOAPIC ID advertised by firmware tables and the
neel [Mon, 25 Nov 2013 23:31:00 +0000 (23:31 +0000)]
Fix discrepancy between the IOAPIC ID advertised by firmware tables and the
actual value read by the guest from the device. The IOAPIC ID is now set to
zero in both MPtable/ACPI tables as well as in the ioapic device emulation.

Pointed out by: grehan@

10 years agoiostat: fix extracting TTY statistics from core.
pluknet [Mon, 25 Nov 2013 22:55:47 +0000 (22:55 +0000)]
iostat: fix extracting TTY statistics from core.

MFC after: 1 week

10 years agoConvert over the TCP probes to use mtod() rather than directly
adrian [Mon, 25 Nov 2013 22:55:06 +0000 (22:55 +0000)]
Convert over the TCP probes to use mtod() rather than directly
dereferencing m->m_data.

Sponsored by: Netflix, Inc.

10 years agoImport apr-util-1.5.3 from vendor branch (rr258600)
peter [Mon, 25 Nov 2013 22:20:34 +0000 (22:20 +0000)]
Import apr-util-1.5.3 from vendor branch (rr258600)
This is a minor bug fix release.