]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoImport mdocml 1.13.3
Baptiste Daroussin [Sun, 15 Mar 2015 11:35:39 +0000 (11:35 +0000)]
Import mdocml 1.13.3

9 years agoImport mdocml 1.13.3
Baptiste Daroussin [Sun, 15 Mar 2015 11:28:48 +0000 (11:28 +0000)]
Import mdocml 1.13.3

9 years agoBlock delete capability for read-only devices.
Alexander Motin [Sun, 15 Mar 2015 08:09:56 +0000 (08:09 +0000)]
Block delete capability for read-only devices.

Submitted by: neel
MFC after: 2 weeks

9 years agoAdd a nulterm byte to the returned sysctl string.
Ian Lepore [Sun, 15 Mar 2015 00:39:18 +0000 (00:39 +0000)]
Add a nulterm byte to the returned sysctl string.

PR: 195668

9 years agoInclude the nulterm byte in the sysctl string.
Ian Lepore [Sun, 15 Mar 2015 00:36:08 +0000 (00:36 +0000)]
Include the nulterm byte in the sysctl string.

PR: 195668

9 years agoGo back to using sbuf_new() with a preallocated large buffer, to avoid
Ian Lepore [Sat, 14 Mar 2015 23:57:33 +0000 (23:57 +0000)]
Go back to using sbuf_new() with a preallocated large buffer, to avoid
triggering an sbuf auto-drain copyout while holding a lock.

Pointed out by:    jhb
Pointy hat:     ian

9 years agoUse sbuf_printf() for sysctl strings instead of static buffers and snprintf.
Ian Lepore [Sat, 14 Mar 2015 23:30:03 +0000 (23:30 +0000)]
Use sbuf_printf() for sysctl strings instead of static buffers and snprintf.

9 years agoUse sbuf_printf() for sysctl strings instead of stack buffers and snprintf().
Ian Lepore [Sat, 14 Mar 2015 23:16:12 +0000 (23:16 +0000)]
Use sbuf_printf() for sysctl strings instead of stack buffers and snprintf().

9 years agoUse sysctl_handle_string() and the sbuf printf routines instead of large
Ian Lepore [Sat, 14 Mar 2015 22:32:15 +0000 (22:32 +0000)]
Use sysctl_handle_string() and the sbuf printf routines instead of large
stack-allocated buffers and snprintf().

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
Ian Lepore [Sat, 14 Mar 2015 21:41:00 +0000 (21:41 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
Ian Lepore [Sat, 14 Mar 2015 21:40:51 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
Ian Lepore [Sat, 14 Mar 2015 21:40:33 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
Ian Lepore [Sat, 14 Mar 2015 21:40:24 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoUse SYSCTL_OUT_STR() to return strings.
Ian Lepore [Sat, 14 Mar 2015 21:40:01 +0000 (21:40 +0000)]
Use SYSCTL_OUT_STR() to return strings.

PR: 195668

9 years agoDefine a convenience macro, SYSCTL_OUT_STR() for handling strings the
Ian Lepore [Sat, 14 Mar 2015 21:38:51 +0000 (21:38 +0000)]
Define a convenience macro, SYSCTL_OUT_STR() for handling strings the
standard way (including the nulterm byte in the data returned to userland).

This augments the existing sysctl_handle_string() in that this can be used
with const strings without ugly inappropriate casting.

9 years agoGive block I/O interface multiple (8) execution threads.
Alexander Motin [Sat, 14 Mar 2015 21:15:45 +0000 (21:15 +0000)]
Give block I/O interface multiple (8) execution threads.

On parallel random I/O this allows better utilize wide storage pools.
To not confuse prefetcher on linear I/O, consecutive requests are executed
sequentially, following the same logic as was earlier implemented in CTL.

Benchmarks of virtual AHCI disk, backed by ZVOL on RAID10 pool of 4 HDDs,
show ~3.5 times random read performance improvements, while no degradation
on linear I/O.

MFC after: 2 weeks

9 years agoUse sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
Ian Lepore [Sat, 14 Mar 2015 18:46:33 +0000 (18:46 +0000)]
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
string returned to userland is nulterminated.

PR:           195668

9 years agoUse sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
Ian Lepore [Sat, 14 Mar 2015 18:42:30 +0000 (18:42 +0000)]
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
string returned to userland is nulterminated.

PR:           195668

9 years agoUse sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
Ian Lepore [Sat, 14 Mar 2015 18:11:24 +0000 (18:11 +0000)]
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
string returned to userland is nulterminated.

PR: 195668

9 years agoAllow zvol_geom_worker to process BIO_DELETE's
Steven Hartland [Sat, 14 Mar 2015 17:35:04 +0000 (17:35 +0000)]
Allow zvol_geom_worker to process BIO_DELETE's

If zvol_geom_start is called with a BIO_DELETE from a thread which can
sleep it queues it for later processing by the zvol_geom_worker. The
zvol_geom_worker didn't have a delete case so would simply loose the bio
hence preventing the original caller from every completing. In addition
an other unknown types would suffer the same fate.

Allow zvol_geom_worker to process BIO_DELETE's via zvol_strategy and
return unsupported for all unknown bio types.

MFC after: 2 weeks
Sponsored by: Multiplay

9 years agoAmend r277940, by also disabling -Wcast-qual warnings for a few specific
Dimitry Andric [Sat, 14 Mar 2015 17:19:48 +0000 (17:19 +0000)]
Amend r277940, by also disabling -Wcast-qual warnings for a few specific
aesni files on i386.

9 years agoSet the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
Ian Lepore [Sat, 14 Mar 2015 17:08:28 +0000 (17:08 +0000)]
Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
strings returned to userland include the nulterm byte.

Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases.  (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)

Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.

PR: 195668

9 years agoAdd a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags.
Ian Lepore [Sat, 14 Mar 2015 16:02:11 +0000 (16:02 +0000)]
Add a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags.

The SBUF_INCLUDENUL flag causes the nulterm byte at the end of the string
to be counted in the length of the data.  If copying the data using the
sbuf_data() and sbuf_len() functions, or if writing it automatically with
a drain function, the net effect is that the nulterm byte is copied along
with the rest of the data.

9 years agoAdd checksums to identify data and NCQ command error log.
Alexander Motin [Sat, 14 Mar 2015 14:06:37 +0000 (14:06 +0000)]
Add checksums to identify data and NCQ command error log.

MFC after: 2 weeks

9 years agorestore: Preserve timestamps to the nanosecond.
Jilles Tjoelker [Sat, 14 Mar 2015 13:45:43 +0000 (13:45 +0000)]
restore: Preserve timestamps to the nanosecond.

The restore utility already knows the full-resolution timestamps, so the
only thing to do is to stop converting the timespecs to timevals and use
futimens() and utimensat().

Differential Revision: https://reviews.freebsd.org/D2020
Reviewed by: jhb

9 years agoRevert r279934, r279938; this is going to be fixed in sbuf instead.
Ian Lepore [Sat, 14 Mar 2015 13:04:39 +0000 (13:04 +0000)]
Revert r279934, r279938; this is going to be fixed in sbuf instead.

PR: 195668

9 years agoRevert r279933; this is going to be fixed in sbuf instead.
Ian Lepore [Sat, 14 Mar 2015 13:02:08 +0000 (13:02 +0000)]
Revert r279933; this is going to be fixed in sbuf instead.

PR: 195668

9 years agoRevert r279932; this is going to be fixed in the sbuf code instead.
Ian Lepore [Sat, 14 Mar 2015 13:00:37 +0000 (13:00 +0000)]
Revert r279932; this is going to be fixed in the sbuf code instead.

PR: 195668

9 years agoPull in r231965 from upstream compiler-rt trunk (by Jörg Sonnenberger):
Dimitry Andric [Sat, 14 Mar 2015 12:40:19 +0000 (12:40 +0000)]
Pull in r231965 from upstream compiler-rt trunk (by Jörg Sonnenberger):

  Refactor float to integer conversion to share the same code.
  80bit Intel/PPC long double is excluded due to lacking support
  for the abstraction. Consistently provide saturation logic.
  Extend to long double on 128bit IEEE extended platforms.

  Initial patch with test cases from GuanHong Liu.
  Reviewed by Steve Canon.

  Differential Revision: http://reviews.llvm.org/D2804

Pull in r232107 from upstream compiler-rt trunk (by Ed Maste):

  Use signed int implementation for __fixint

Requested by: emaste

9 years agoAllow relative pathnames in SRCS, so as to enable building software
Dimitry Andric [Sat, 14 Mar 2015 12:29:44 +0000 (12:29 +0000)]
Allow relative pathnames in SRCS, so as to enable building software
which includes more than one file with the same name, in different
directories.

For example, setting:

SRCS+= foo/foo.c bar/foo.c baz/foo.c

will now create separate objdirs 'foo', 'bar' and 'baz' for each of the
sources in the list, and use those objdirs for the corresponding object
files.

Reviewed by: brooks, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D1984

9 years agoSlightly polish virtual AHCI CD reporting.
Alexander Motin [Sat, 14 Mar 2015 12:18:26 +0000 (12:18 +0000)]
Slightly polish virtual AHCI CD reporting.

MFC after: 2 weeks

9 years agoFix NOP and IDLE commands for virtual AHCI disks.
Alexander Motin [Sat, 14 Mar 2015 10:38:25 +0000 (10:38 +0000)]
Fix NOP and IDLE commands for virtual AHCI disks.

MFC after: 2 weeks

9 years agoAdd support for NCQ variant of DSM TRIM for virtual AHCI disks.
Alexander Motin [Sat, 14 Mar 2015 09:46:43 +0000 (09:46 +0000)]
Add support for NCQ variant of DSM TRIM for virtual AHCI disks.

The code is not really tested yet due to lack of initiator support.

Requested by: imp
MFC after: 2 weeks

9 years agoImprove NCQ errors reporting for virtual AHCI disks.
Alexander Motin [Sat, 14 Mar 2015 08:45:54 +0000 (08:45 +0000)]
Improve NCQ errors reporting for virtual AHCI disks.

While this implementation is still not perfect, previous was just broken.

MFC after: 2 weeks

9 years agoCompile some modules - I'm going to eventually just compile all the
Adrian Chadd [Sat, 14 Mar 2015 08:29:03 +0000 (08:29 +0000)]
Compile some modules - I'm going to eventually just compile all the
modules, but these are a subset of things that are worth playing with
in deployed APs.

(ipfw in particular is rather nice.)

9 years agoAdd board support for the TP-Link TL-WR1043nd v2.
Adrian Chadd [Sat, 14 Mar 2015 07:59:54 +0000 (07:59 +0000)]
Add board support for the TP-Link TL-WR1043nd v2.

This is a QCA9558 based design with on-chip 2GHz 3x3 11n wifi,
AR8327N switch, 64MB RAM and 8MB flash.

Of course, it runs FreeBSD.

9 years agoUse lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when
Neel Natu [Sat, 14 Mar 2015 02:32:08 +0000 (02:32 +0000)]
Use lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when
vmm.ko is loaded.

Also relocate the 'justreturn' IPI handler to be alongside all other handlers.

Requested by: kib

9 years agoAdd x86 specific APIs 'lapic_ipi_alloc()' and 'lapic_ipi_free()' to allow IPI
Neel Natu [Sat, 14 Mar 2015 00:30:41 +0000 (00:30 +0000)]
Add x86 specific APIs 'lapic_ipi_alloc()' and 'lapic_ipi_free()' to allow IPI
vectors to be dynamically allocated. This allows kernel modules like vmm.ko
to allocate unique IPI slots when loaded (as opposed to hard allocating one
or more vectors).

Also, reorganize the fixed IPI vectors to create a contiguous space for
dynamic IPI allocation.

Reviewed by: kib, jhb
Differential Revision: https://reviews.freebsd.org/D2042

9 years agocxgbe(4): fix if_media handling for T520-BT cards. 1Gbps and 100Mbps
Navdeep Parhar [Sat, 14 Mar 2015 00:02:53 +0000 (00:02 +0000)]
cxgbe(4):  fix if_media handling for T520-BT cards.  1Gbps and 100Mbps
are valid for this card.

MFC after: 1 week

9 years agoRemove incorrect SERR register setting.
Alexander Motin [Fri, 13 Mar 2015 21:01:25 +0000 (21:01 +0000)]
Remove incorrect SERR register setting.

At this point we have nothing to report through that register.

MFC after: 2 weeks

9 years agoChange prdbc value reporting.
Alexander Motin [Fri, 13 Mar 2015 20:56:17 +0000 (20:56 +0000)]
Change prdbc value reporting.

MFC after: 2 weeks

9 years agoMark xo_err(3), xo_errx(3), and xo_errc(3) as __dead2.
Edward Tomasz Napierala [Fri, 13 Mar 2015 20:14:55 +0000 (20:14 +0000)]
Mark xo_err(3), xo_errx(3), and xo_errc(3) as __dead2.

Differential Revision: https://reviews.freebsd.org/D2059
Reviewed by: marcel@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoPolish AHCI disk identify data and fix speed negotiation.
Alexander Motin [Fri, 13 Mar 2015 20:14:35 +0000 (20:14 +0000)]
Polish AHCI disk identify data and fix speed negotiation.

MFC after: 2 weeks

9 years agoFix SATA Gen3 speed constants.
Alexander Motin [Fri, 13 Mar 2015 20:08:35 +0000 (20:08 +0000)]
Fix SATA Gen3 speed constants.

MFC after: 1 week

9 years agolibc: plug memory leaks in edge cases for the posix1e code.
Pedro F. Giffuni [Fri, 13 Mar 2015 18:42:43 +0000 (18:42 +0000)]
libc: plug memory leaks in edge cases for the posix1e code.

CID: 1016705
CID: 1016706
CID: 1016707

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

9 years agoAdd support for PIO variants of READ/WRITE commands for AHCI disks.
Alexander Motin [Fri, 13 Mar 2015 18:35:38 +0000 (18:35 +0000)]
Add support for PIO variants of READ/WRITE commands for AHCI disks.

AHCI API hides all PIO specifics, so this functionality is almost free.

MFC after: 2 weeks

9 years agoUse ahci_write_fis_d2h() for commands completion.
Alexander Motin [Fri, 13 Mar 2015 18:04:07 +0000 (18:04 +0000)]
Use ahci_write_fis_d2h() for commands completion.

MFC after: 2 weeks

9 years agoAdd DSM TRIM command support for virtual AHCI disks.
Alexander Motin [Fri, 13 Mar 2015 16:43:52 +0000 (16:43 +0000)]
Add DSM TRIM command support for virtual AHCI disks.

It works only for virtual disks backed by ZVOLs and raw devices supporting
BIO_DELETE.  Virtual disks backed by files won't report this capability.

MFC after: 2 weeks
Relnotes: yes

9 years agoProperly initialize scope zone id when next hop address stored
Andrey V. Elsukov [Fri, 13 Mar 2015 13:46:50 +0000 (13:46 +0000)]
Properly initialize scope zone id when next hop address stored
directly in the O_FORWARD_IP6 opcode. Use getnameinfo(3) to formatting
the IPv6 addresses of such opcodes.

Obtained from: Yandex LLC
Sponsored by: Yandex LLC

9 years agoAdd -noauto autofs map, for automatic handling of fstab entries
Edward Tomasz Napierala [Fri, 13 Mar 2015 12:44:46 +0000 (12:44 +0000)]
Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoGet executable direct maps to work.
Edward Tomasz Napierala [Fri, 13 Mar 2015 12:27:59 +0000 (12:27 +0000)]
Get executable direct maps to work.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoRework the concat() algorithm to be correct in all cases.
Edward Tomasz Napierala [Fri, 13 Mar 2015 11:26:02 +0000 (11:26 +0000)]
Rework the concat() algorithm to be correct in all cases.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years ago- Align comment for df flags variable in periodic.conf.
John Baldwin [Fri, 13 Mar 2015 09:50:29 +0000 (09:50 +0000)]
- Align comment for df flags variable in periodic.conf.
- Note default value of df flags variable in periodoc.conf(5).

MFC after: 1 week

9 years agoSimplify string mangling in ifmaybeload().
John Baldwin [Fri, 13 Mar 2015 09:45:06 +0000 (09:45 +0000)]
Simplify string mangling in ifmaybeload().
- Use strlcpy() instead of strcpy().
- Use strlcat() instead of a strlcpy() with a magic number subtracted
  from the length.
- Replace strncmp(..., strlen(foo) + 1) with strcmp(...).

Differential Revision: https://reviews.freebsd.org/D1814
Reviewed by: rpaulo
MFC after: 2 weeks

9 years agoEnable bzipfs support in the EFI loader.
John Baldwin [Fri, 13 Mar 2015 09:41:27 +0000 (09:41 +0000)]
Enable bzipfs support in the EFI loader.
- Add bzipfs to the list of supported filesystems in the EFI loader.
- Increase the heap size allocated for the EFI loader from 2MB to 3MB.

Differential Revision: https://reviews.freebsd.org/D2053
Reviewed by: benno, emaste, imp
MFC after: 2 weeks
Sponsored by: Cisco Systems, Inc.

9 years agoThe System V ABI for amd64 allows functions to use space in a 128 byte
John Baldwin [Fri, 13 Mar 2015 09:38:16 +0000 (09:38 +0000)]
The System V ABI for amd64 allows functions to use space in a 128 byte
redzone below the stack pointer for scratch space and requires
interrupt and signal frames to avoid overwriting it. However, EFI uses
the Windows ABI which does not support this. As a result, interrupt
handlers in EFI push their interrupt frames directly on top of the
stack pointer. If the compiler used the red zone in a function in the
EFI loader, then a device interrupt that occurred while that function
was running could trash its local variables.  In practice this happens
fairly reliable when using gzipfs as an interrupt during decompression
can trash the local variables in the inflate_table() function
resulting in corrupted output or hangs.

Fix this by disabling the redzone for amd64 EFI binaries. This
requires building not only the loader but any libraries used by the
loader without redzone support.

Thanks to Jilles for pointing me at the redzone once I found the stack
corruption.

Differential Revision: https://reviews.freebsd.org/D2054
Reviewed by: imp
MFC after: 2 weeks
Sponsored by: Cisco Systems, Inc.

9 years agoFix `ipfw fwd tablearg'. Use dedicated field nh4 in struct table_value
Andrey V. Elsukov [Fri, 13 Mar 2015 09:03:25 +0000 (09:03 +0000)]
Fix `ipfw fwd tablearg'. Use dedicated field nh4 in struct table_value
to obtain IPv4 next hop address in tablearg case.

Add `fwd tablearg' support for IPv6. ipfw(8) uses INADDR_ANY as next hop
address in O_FORWARD_IP opcode for specifying tablearg case. For IPv6 we
still use this opcode, but when packet identified as IPv6 packet, we
obtain next hop address from dedicated field nh6 in struct table_value.

Replace hopstore field in struct ip_fw_args with anonymous union and add
hopstore6 field. Use this field to copy tablearg value for IPv6.

Replace spare1 field in struct table_value with zoneid. Use it to keep
scope zone id for link-local IPv6 addresses. Since spare1 was used
internally, replace spare0 array with two variables spare0 and spare1.

Use getaddrinfo(3)/getnameinfo(3) functions for parsing and formatting
IPv6 addresses in table_value. Use zoneid field in struct table_value
to store sin6_scope_id value.

Since the kernel still uses embedded scope zone id to represent
link-local addresses, convert next_hop6 address into this form before
return from pfil processing. This also fixes in6_localip() check
for link-local addresses.

Differential Revision: https://reviews.freebsd.org/D2015
Obtained from: Yandex LLC
Sponsored by: Yandex LLC

9 years agoRemove UCB advertising clause per the letter dated July 22, 1999.
Ed Maste [Fri, 13 Mar 2015 07:29:49 +0000 (07:29 +0000)]
Remove UCB advertising clause per the letter dated July 22, 1999.

9 years agoFix debug symbols loading in libproc: 0 is a valid file descriptor.
Stanislav Sedov [Fri, 13 Mar 2015 04:26:48 +0000 (04:26 +0000)]
Fix debug symbols loading in libproc: 0 is a valid file descriptor.

Reported by: Chris Torek <chris.torek@gmail.com>

9 years agoMake sure that -- filemon is at start of a line, so that
Simon J. Gerraty [Fri, 13 Mar 2015 02:54:46 +0000 (02:54 +0000)]
Make sure that -- filemon is at start of a line, so that
it is found as expected.

9 years agoDelete stray clause 3 and renumber.
Ed Maste [Fri, 13 Mar 2015 02:49:55 +0000 (02:49 +0000)]
Delete stray clause 3 and renumber.

9 years agoCommit 802.1q configuration support for the AR8327.
Adrian Chadd [Fri, 13 Mar 2015 02:16:39 +0000 (02:16 +0000)]
Commit 802.1q configuration support for the AR8327.

This is slightly different to the other switches - the VLAN table
(VTU) programs in the vlan port mapping /and/ the port config
(tagged, untagged, passthrough, any.)

So:

* Add VTU operations to program the VTU (vlan table)
* abstract out the mirror-disable function so it's .. well, a function.
* setup the port to have a dot1q configuration for dot1q - the
  port security is VLAN (not per-port VLAN) and requires an entry
  in the VLAN table;
* add set_dot1q / get_dot1q to program the VLAN table;
* since the tagged/untagged ports are now programmed into the VTU,
  rather than global - plumb the ports /and/ untagged ports bitmaps
  through the arswitch API.

Tested:

* AP135 - QCA9558 SoC + AR8327N switch

9 years agoRestore auto MDIX for RTL8211B and newer revision PHYs which was
Pyun YongHyeon [Fri, 13 Mar 2015 01:16:14 +0000 (01:16 +0000)]
Restore auto MDIX for RTL8211B and newer revision PHYs which was
broken in r279903.

Reported by: john <> feith . com

9 years agoDeallocate any leftover page table entries in the LPAR at boot. This
Nathan Whitehorn [Fri, 13 Mar 2015 00:08:58 +0000 (00:08 +0000)]
Deallocate any leftover page table entries in the LPAR at boot. This
prevents contamination from a previous kernel (e.g. after shutdown -r).

9 years agohwpmc: Fix event number to match enum name
Ryan Stone [Thu, 12 Mar 2015 23:44:28 +0000 (23:44 +0000)]
hwpmc: Fix event number to match enum name

Differential revision: https://reviews.freebsd.org/D1592
Reviewed by: Joseph Kong
MFC after: 1 month

9 years agoFix a paste-o, sb is already a pointer in this one.
Ian Lepore [Thu, 12 Mar 2015 23:31:29 +0000 (23:31 +0000)]
Fix a paste-o, sb is already a pointer in this one.

9 years agoProvide VSX context in ucontext(3) API.
Nathan Whitehorn [Thu, 12 Mar 2015 21:15:38 +0000 (21:15 +0000)]
Provide VSX context in ucontext(3) API.

9 years agoRemove write-only variable.
Konstantin Belousov [Thu, 12 Mar 2015 20:14:48 +0000 (20:14 +0000)]
Remove write-only variable.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

9 years agoAdd GUID and alias for Apple Core Storage partition.
Andrey V. Elsukov [Thu, 12 Mar 2015 18:51:31 +0000 (18:51 +0000)]
Add GUID and alias for Apple Core Storage partition.

PR: 196241
MFC after: 1 week

9 years agoNullterminate strings returned via sysctl.
Ian Lepore [Thu, 12 Mar 2015 18:22:20 +0000 (18:22 +0000)]
Nullterminate strings returned via sysctl.

PR: 195668

9 years agoNullterminate strings returned via sysctl.
Ian Lepore [Thu, 12 Mar 2015 18:09:39 +0000 (18:09 +0000)]
Nullterminate strings returned via sysctl.

PR: 195668

9 years agoNullterminate strings returned via sysctl.
Ian Lepore [Thu, 12 Mar 2015 18:06:30 +0000 (18:06 +0000)]
Nullterminate strings returned via sysctl.

PR: 195668

9 years agoSpin the twiddle in dosfs to give visual feedback for disk I/O on
John Baldwin [Thu, 12 Mar 2015 17:10:04 +0000 (17:10 +0000)]
Spin the twiddle in dosfs to give visual feedback for disk I/O on
FAT filesystems as is done for other filesystems in the loader.

MFC after: 1 week

9 years agoAllow the EFI loader to work with large kernels and/or modules
John Baldwin [Thu, 12 Mar 2015 17:07:24 +0000 (17:07 +0000)]
Allow the EFI loader to work with large kernels and/or modules
(for example, a large mfsroot).  Note that for EFI the kernel and
modules (as well as other metadata files such as splash screens or
memory disk images) are loaded into a statically-sized staging area.
When the EFI loader exits it copies this staging area down to the
location the kernel expects to run at.
- Add bounds checking to the copy routines to fail attempts to access
  memory outside of the staging area.  Previously loading a combined
  kernel + modules larger than the staging size (32MB) would overflow
  the staging area trashing whatever memory was afterwards.  Under
  Intel's OVMF firmware for qemu this resulted in fatal faults in the
  firmware itself.  Now the attempt will fail with ENOMEM.
- Allow the staging area size to be configured at compile time via
  an EFI_STAGING_SIZE variable in src.conf or on the command line.
  It accepts the size of the staging area in MB.  The default size
  remains 32MB.

MFC after: 2 weeks
Sponsored by: Cisco Systems, Inc.

9 years agoThe H_VIO_SIGNAL hypercall only enables interrupts for future received
Nathan Whitehorn [Thu, 12 Mar 2015 17:01:30 +0000 (17:01 +0000)]
The H_VIO_SIGNAL hypercall only enables interrupts for future received
packets and does not schedule interrupts for any packets currently
enqueued. Close two races where enqueued packets may not ever trigger
interrupts. The first of these, at adapter initialization time, was
especially severe since a rush of enqueued packets could actually fill
the receive buffer completely, stalling the interface forever.

MFC after: 2 weeks

9 years agoMake DIOCGATTR in device mode handle "GEOM::candelete".
Alexander Motin [Thu, 12 Mar 2015 16:19:18 +0000 (16:19 +0000)]
Make DIOCGATTR in device mode handle "GEOM::candelete".

MFC after: 3 days

9 years agoAdd -p parameter to list PCI device to pass through to the guest.
Gleb Smirnoff [Thu, 12 Mar 2015 15:58:07 +0000 (15:58 +0000)]
Add -p parameter to list PCI device to pass through to the guest.

Reviewed by: neel

9 years agoFix 'make depend' by moving the LDSCRIPT dependency into DPADD.
John Baldwin [Thu, 12 Mar 2015 15:25:22 +0000 (15:25 +0000)]
Fix 'make depend' by moving the LDSCRIPT dependency into DPADD.

Sponsored by: Cisco Systems, Inc.

9 years agoRevert r279381. The EFI loader needs to use a separate libstand that
John Baldwin [Thu, 12 Mar 2015 15:20:05 +0000 (15:20 +0000)]
Revert r279381.  The EFI loader needs to use a separate libstand that
is compiled against the ABI EFI expects (specifically, no stack
redzone) so it cannot share libstand with userboot (which must use
the System V ABI).

9 years agoAdd if_input_default() method, that will be used for if_input
Andrey V. Elsukov [Thu, 12 Mar 2015 14:55:33 +0000 (14:55 +0000)]
Add if_input_default() method, that will be used for if_input
initialization, when no input method specified before if_attach().

This prevents panics when if_input() method called directly e.g.
from bpf(4) code.

PR: 192426
Reviewed by: glebius
MFC after: 1 week

9 years agoUsing parent DMA tag in drm_pci_alloc(). This can allow drm2 devices to work with...
Jason A. Harmening [Thu, 12 Mar 2015 14:18:36 +0000 (14:18 +0000)]
Using parent DMA tag in drm_pci_alloc().  This can allow drm2 devices to work with Intel DMAR enabled for the system, as long as DMAR is disabled for the drm2 device.

Approved by: kib (mentor)
MFC after: 1 week

9 years agoMake "automount -LL -o whatever" present options in the same order
Edward Tomasz Napierala [Thu, 12 Mar 2015 12:36:08 +0000 (12:36 +0000)]
Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoMake concat() accept NULL arguments.
Edward Tomasz Napierala [Thu, 12 Mar 2015 12:17:15 +0000 (12:17 +0000)]
Make concat() accept NULL arguments.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoOptions from auto_master must be appended to options from maps,
Edward Tomasz Napierala [Thu, 12 Mar 2015 12:14:11 +0000 (12:14 +0000)]
Options from auto_master must be appended to options from maps,
not prepended.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

9 years agoFix couple BIO_DELETE bugs in geom_mirror.
Alexander Motin [Thu, 12 Mar 2015 10:20:53 +0000 (10:20 +0000)]
Fix couple BIO_DELETE bugs in geom_mirror.

Do not report GEOM::candelete if none of providers support BIO_DELETE.
If consumer still requests BIO_DELETE, report error instead of hanging.

MFC after: 2 weeks

9 years agoReset mbuf pointer to NULL in fastroute case to indicate that mbuf was
Andrey V. Elsukov [Thu, 12 Mar 2015 08:57:24 +0000 (08:57 +0000)]
Reset mbuf pointer to NULL in fastroute case to indicate that mbuf was
consumed by filter. This fixes several panics due to accessing to mbuf
after free.

Submitted by: Kristof Provost
MFC after: 1 week

9 years agoAdd aarch64 (arm64) #define for jemalloc
Ed Maste [Thu, 12 Mar 2015 08:52:00 +0000 (08:52 +0000)]
Add aarch64 (arm64) #define for jemalloc

Sponsored by: The FreeBSD Foundation

9 years agoProvide automatic cross-binutils path if no BINUTILS_BOOTSTRAP
Ed Maste [Thu, 12 Mar 2015 08:40:32 +0000 (08:40 +0000)]
Provide automatic cross-binutils path if no BINUTILS_BOOTSTRAP

The in-tree binutils does not support arm64, so will not work for the
forthcoming FreeBSD arm64 port. BROKEN_OPTIONS will include
BINUTILS_BOOTSTRAP, so provide a default CROSS_BINUTILS_PREFIX for this
case.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation

9 years agoTARGET_* shouldn't be used here. Use MACHINE_* instead.
Warner Losh [Thu, 12 Mar 2015 08:32:24 +0000 (08:32 +0000)]
TARGET_* shouldn't be used here. Use MACHINE_* instead.

9 years agoThese local variables are unused. gc them.
Warner Losh [Thu, 12 Mar 2015 08:32:22 +0000 (08:32 +0000)]
These local variables are unused. gc them.

9 years agoIt appears that xlint isn't used in the build process, so it certainly
Warner Losh [Thu, 12 Mar 2015 08:32:20 +0000 (08:32 +0000)]
It appears that xlint isn't used in the build process, so it certainly
doesn't need to be a build tool.

9 years agoAdd RTL8211F gigabit PHY support.
Pyun YongHyeon [Thu, 12 Mar 2015 07:05:28 +0000 (07:05 +0000)]
Add RTL8211F gigabit PHY support.

PR: 197265
MFC after: 2 weeks

9 years agoFile names with commas in them cause issues for freebsd-update. We
Warner Losh [Thu, 12 Mar 2015 06:43:58 +0000 (06:43 +0000)]
File names with commas in them cause issues for freebsd-update. We
don't actually use these files at the moment, so eliminate them until
we actually do. In the mean time, freebsd-update will be updated
to eliminate the issues.

Requested by: cperciva

9 years ago- Include commas in valid file-name chars freebsd-update will support
Kris Moore [Thu, 12 Mar 2015 06:41:01 +0000 (06:41 +0000)]
- Include commas in valid file-name chars freebsd-update will support

Approved by: cperciva

9 years agoCategorize certain kernel builds as being broken in certain places.
Warner Losh [Thu, 12 Mar 2015 03:57:19 +0000 (03:57 +0000)]
Categorize certain kernel builds as being broken in certain places.

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

9 years agoAdd support for specifying unsupported / broken options that override
Warner Losh [Thu, 12 Mar 2015 03:57:00 +0000 (03:57 +0000)]
Add support for specifying unsupported / broken options that override
any defaults or user specified actions on the command line. This would
be useful for specifying features that are always broken or that
cannot make sense on a specific architecture, like ACPI on pc98 or
EISA on !i386 (!x86 usage of EISA is broken and there's no supported
hardware that could have it in any event). Any items in
BROKEN_OPTIONS are forced to "no" regardless of other settings.
Clients are expected change BROKEN_OPTIONS with +=. It will not
be unset, so other parts of the build system can have visibility
into the options that are broken on this platform, though this
should be very rare.

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

9 years agoDocument m_collapse().
Mark Johnston [Thu, 12 Mar 2015 01:05:54 +0000 (01:05 +0000)]
Document m_collapse().

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

9 years agoYou need to have the capabilities and not skip it if you are
Randall Stewart [Wed, 11 Mar 2015 20:15:49 +0000 (20:15 +0000)]
You need to have the capabilities and not skip it if you are
not on head.. otherwise the file pointer will be NULL and when
you try to do something with it you will crash. Make the #else
be the old capabilites, and then remove the erroneous ifdefs for
11.

MFC after: 1 week (with the other MFC I was going to do until the panic)

9 years agoResize receive socket buffers that support autosizing when receiving
John Baldwin [Wed, 11 Mar 2015 17:35:07 +0000 (17:35 +0000)]
Resize receive socket buffers that support autosizing when receiving
TCP data via direct data placement.

Sponsored by: Chelsio
MFC after: 1 week

9 years agoFactor out mbuf hashing code from LAGG driver so that other network
Hans Petter Selasky [Wed, 11 Mar 2015 16:02:24 +0000 (16:02 +0000)]
Factor out mbuf hashing code from LAGG driver so that other network
drivers can use it. This avoids some code duplication. Add missing
default case to all switch statements while at it. Also move the
hashing of the IPv6 flow field to layer 4 because the IPv6 flow field
is constant on a per L4 connection basis and not on a per L3 network.

Differential Revision: https://reviews.freebsd.org/D1987
Sponsored by: Mellanox Technologies
MFC after: 1 month