]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoMFC: r283049
arybchik [Thu, 21 May 2015 09:22:15 +0000 (09:22 +0000)]
MFC: r283049

sfxge: allow to disable checksum offloads over VLAN

It just affects capabilities of the created VLAN interface.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r283048
arybchik [Thu, 21 May 2015 09:21:05 +0000 (09:21 +0000)]
MFC: r283048

sfxge: fix overflow queue freeze

If TxQ lock is obtained, deferred packet list shold be serviced even if
the packet addition fails because of overflow.

Without the patch freeze happens if:
 - queue is not blocked (i.e. completion does not trigger unblock and service)
 - put-list overflow (1024 entries)
 - sfxge_tx_packet_add() acquires TxQ lock just as it is released it in
   sfxge_tx_qdpl_service() on the second CPU but before pending check
 - sfxge_tx_packet_add() swizzles put-list to get-list, fails because of
   non-tcp get-list overflow and returns without packet list service
 - sfxge_tx_qdpl_service() on the second CPU checks that there are no
   pending packets in the put-list and returns

Other possible solution is to guaranee that maximum length of the put-list
is less than maximum length of any get-list.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r283007
arybchik [Thu, 21 May 2015 09:15:19 +0000 (09:15 +0000)]
MFC: r283007

sfxge: avoid usage of ifm_data

The driver uses ifm_data to save capabilities mask calculated during
initialization when supported phy modes are discovered.
The patch simply calculates it when either media or options are changed.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r283000
arybchik [Thu, 21 May 2015 09:13:47 +0000 (09:13 +0000)]
MFC: r283000

sfxge: add local variable with changed capabilities mask

It is required for the next patch which adds dependency of TSO
capabilities from Tx checksum offloads.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282998
arybchik [Thu, 21 May 2015 09:12:25 +0000 (09:12 +0000)]
MFC: r282998

sfxge: move mbuf free to sfxge_if_transmit()

It is a preparation to the next patch which will service packet queue
even if packet addtion fails.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282997
arybchik [Thu, 21 May 2015 09:11:03 +0000 (09:11 +0000)]
MFC: r282997

sfxge: get rid of locked variable in sfxge_tx_packet_add()

Now each branch has one and only one possible TxQ lock state.
It simplifies understanding of the code.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282996
arybchik [Thu, 21 May 2015 09:09:51 +0000 (09:09 +0000)]
MFC: r282996

sfxge: support Rx checksum offloads disabling

We can't disable it in HW, but we can ignore result.
Discard Rx descriptor checksum flags if Rx checksum offload is off.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282942
arybchik [Thu, 21 May 2015 09:08:10 +0000 (09:08 +0000)]
MFC: r282942

sfxge: split sfxge_tx_qdpl_put() into *_locked() and *_unlocked()

It simplifies understanding of the sfxge_tx_packet_add() logic and
avoids passing of 'locked' to called function.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282941
arybchik [Thu, 21 May 2015 09:06:41 +0000 (09:06 +0000)]
MFC: r282941

sfxge: do not change CSUM_TSO when IFCAP_TSOx is changed

It is simply not required since the kernel checks corresponding
IFCAP_TSOx capability and CSUM_TSO in hw-assisted offloads.
Note that CSUM_TSO is two bits (CSUM_IP_TSO|CSUM_IP6_TSO) and both bits
are set in IPv4 and IPv6 mbufs.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282940
arybchik [Thu, 21 May 2015 09:05:13 +0000 (09:05 +0000)]
MFC: r282940

sfxge: LRO may be done only if checksums are OK

Also it is cheaper to check Rx descriptor flags than TCP protocol in IP
header.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282903
arybchik [Thu, 21 May 2015 09:03:18 +0000 (09:03 +0000)]
MFC: r282903

sfxge: advertise IPv6 Rx and Tx checksum offload support

Tx checksum offload may be enabled/disabled.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282900
arybchik [Thu, 21 May 2015 09:00:45 +0000 (09:00 +0000)]
MFC: r282900

sfxge: IPv4 Tx checksum offload may be disabled in fact

Split IFCAP_HWCSUM to IFCAP_RXCSUM and IFCAP_TXCSUM to highlight Tx and Rx.

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282899
arybchik [Thu, 21 May 2015 08:59:03 +0000 (08:59 +0000)]
MFC: r282899

sfxge: add local variable with Rx descriptor flags

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC: r282897
arybchik [Thu, 21 May 2015 08:55:06 +0000 (08:55 +0000)]
MFC: r282897

sfxge: add missing const qualifier to sfxge_link_mode

Sponsored by:   Solarflare Communications, Inc.

9 years agoMFC r282594:
ae [Thu, 21 May 2015 08:28:35 +0000 (08:28 +0000)]
MFC r282594:
  m_dup() is supposed to give a writable copy of an mbuf chain. It uses
  m_dup_pkthdr(), that uses M_COPYFLAGS mask to copy m_flags field.
  If original mbuf chain has M_RDONLY flag, its copy also will have it.
  Reset this flag explicitly.

9 years agoMFC r282505:
hselasky [Thu, 21 May 2015 07:49:44 +0000 (07:49 +0000)]
MFC r282505:
Add new USB ID.

PR: 199843

9 years agoMFC r282017:
hselasky [Thu, 21 May 2015 07:48:06 +0000 (07:48 +0000)]
MFC r282017:
Allow DSP basename cloning to be disabled or enabled at boot and
runtime. This is useful when implementing OSS sound stacks in
userspace via libcuse for example.

9 years agoMFC r279726:
hselasky [Thu, 21 May 2015 07:41:03 +0000 (07:41 +0000)]
MFC r279726:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR: 194062

9 years agoMFC r282645, r282646 and r282730:
hselasky [Thu, 21 May 2015 07:34:08 +0000 (07:34 +0000)]
MFC r282645, r282646 and r282730:
* Prevent switching to NULL or own window in the "vt_proc_window_switch"
  function. This fixes an issue where X11 keyboard input can appear
  stuck. The cause of the problem is a duplicate TTY device window
  switch IOCTL during boot, which leaves the "vt_switch_timer" running,
  because the current window is already selected. While at it factor out
  some NULL checks.
* The "SYSCTL_INT()" default value is only used for read only SYSCTLs
  and is not applicable unless the integer pointer is NULL. Set it to
  zero to avoid confusion. While at it remove extra semicolon at the end
  of the "VT_SYSCTL_INT()" macro.
* Ensure the result from signed subtraction under modulus does not
  become negative.

PR: 200032

9 years agoMFC r282652:
hselasky [Thu, 21 May 2015 07:10:49 +0000 (07:10 +0000)]
MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.

9 years agoMFC r282817:
hselasky [Thu, 21 May 2015 06:56:35 +0000 (06:56 +0000)]
MFC r282817:
Apply proper locking when iterating the multicast addresses and add a
missing check for NULL from a non-blocking "kzalloc()" function call.

Sponsored by: Mellanox Technologies

9 years agoMFC r282577:
hselasky [Thu, 21 May 2015 06:47:20 +0000 (06:47 +0000)]
MFC r282577:
Add support for DYMO LabelWriter PnP.

9 years agoMFC r280495:
hselasky [Thu, 21 May 2015 06:30:44 +0000 (06:30 +0000)]
MFC r280495:
Implement a simple OID number garbage collector. Given the increasing
number of dynamically created and destroyed SYSCTLs during runtime it
is very likely that the current new OID number limit of 0x7fffffff can
be reached. Especially if dynamic OID creation and destruction results
from automatic tests. Additional changes:

- Optimize the typical use case by decrementing the next automatic OID
sequence number instead of incrementing it. This saves searching time
when inserting new OIDs into a fresh parent OID node.

- Add simple check for duplicate non-automatic OID numbers.

9 years agoMFC r282904: kbdmap(1): increase description size to 256 bytes
emaste [Thu, 21 May 2015 01:50:06 +0000 (01:50 +0000)]
MFC r282904: kbdmap(1): increase description size to 256 bytes

  After conversion to UTF-8 some INDEX.keymaps descriptions are longer
  than the previous limit of 64 bytes.

PR: 193656

9 years agoMFC INDEX.keymaps fixes
emaste [Thu, 21 May 2015 01:47:12 +0000 (01:47 +0000)]
MFC INDEX.keymaps fixes

r282898: Correct UTF-8 encoding in Británico

  One á was ISO 8859-1 0xE1 instead of UTF-8 0xC3 0xA1.

r282902: Correct language code -- "Danish" is English

  The menu entry "Danish ISO-8859-1 (macbook)" was first added to the
  syscons(4) INDEX.keymaps in r241851 with no language code, and then in
  r256367 incorrectly tagged with "da".  It is a Danish keyboard map, but
  the description is in English and therefore must be "en".

  This error subsequently propagated into the vt(4) INDEX.keymaps.

r282905: Restore 'he' language code for Hebrew kbdmap(1) menu title

r282914: kbdmap(1): Correct menu title: keyboards have a layout, not a language

PR: 146793, 193656

9 years agoMFC r282500, r282693:
gjb [Wed, 20 May 2015 19:32:57 +0000 (19:32 +0000)]
MFC r282500, r282693:
 r282500:
  Add initial support for building RPI2 images.

  In release.sh, allow overriding buildenv_setup() before
  the handoff to arm/release.sh.

  Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and
  the correct KERNEL, and add the buildenv_setup() override
  to install the sysutils/u-boot-rpi2 port/package.

  Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf,
  and set the correct entries for the RaspberryPi2 board.

 r282693:
  Merge ^/projects/release-arm-redux into ^/head.

  Of note:

  - This commit adds native FreeBSD/arm release build support without
    requiring out-of-tree utilities.

  - Part of this merge removes the WANDBOARD-{SOLO,DUAL,QUAD} kernel
    configuration files, for which the IMX6 kernel configuration file
    should be used instead.

  - The resulting images have a 'freebsd' user (password 'freebsd'),
    to allow ssh(1) access when console access is not available (VGA
    or serial).  The default 'root' user password is set to 'root'.

  - The /etc/ttys file for arm images now enable both ttyv0 and ttyu0
    by default.

Note:  The RPI2 kernel configuration does not yet exist in stable/10,
however the merge conflicts needed to be properly resolved.
Additionally, SRCBRANCH has been set to base/stable/10 in the updated
arm configuration files as part of this commit.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r282436 (the portion that makes sense):
brooks [Tue, 19 May 2015 19:01:52 +0000 (19:01 +0000)]
MFC r282436 (the portion that makes sense):

Remove "capability mode sandbox enabled" messages.

These messages serve little purpose and break some consumers.

PR: 199855
Differential Revision: https://reviews.freebsd.org/D2440
Reviewed by: rwatson
Approved by: pjd
Sponsored by: DARPA, AFRL

9 years agoMFC r279819:
delphij [Tue, 19 May 2015 08:00:39 +0000 (08:00 +0000)]
MFC r279819:

Fix CARP when in use in a HyperV environment:

 - Bump link state when stopping or starting the interface;
 - Don't handle SIOCGIFADDR specially, similar to r277103.

This change is based on a previous revision from Andy Zhang
(Microsoft) who did the diagnostic work and many thanks to
them for their help in supporting the HyperV work.

PR: kern/187203

9 years agoMFC r281959,282885 (fanf, partial),282888 (fanf):
delphij [Mon, 18 May 2015 21:27:46 +0000 (21:27 +0000)]
MFC r281959,282885 (fanf, partial),282888 (fanf):

Try alternate addresses more agressively.

PR:             158125
Submitted by:   Mark Andrews <marka isc org> (with changes from me)

whois: code cleanup

Use pedantically correct types.

whois: do not clobber command-line flags when tweaking O_NONBLOCK

This can make whois fail to follow referrals when it should.
The bug was introduced in r281959.

9 years agoMFC of 283079,tzdata10:
edwin [Mon, 18 May 2015 21:07:44 +0000 (21:07 +0000)]
MFC of 283079,tzdata10:

Update to tzdata2015d:

Release 2015d - 2015-04-24 08:09:46 -0700

  Changes affecting future time stamps

    Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

  Change affecting past and future time zone abbreviations

    The abbreviations for Hawaii-Aleutian standard and daylight times
    have been changed from HAST/HADT to HST/HDT, as per US Government
    Printing Office style.  This affects only America/Adak since 1983,
    as America/Honolulu was already using the new style.

9 years agoMFC r282921:
jimharris [Mon, 18 May 2015 19:48:41 +0000 (19:48 +0000)]
MFC r282921:

  Add nvme and nvd drivers to GENERIC for amd64 and i386.

Sponsored by: Intel

9 years agoMFC r281928:
ngie [Mon, 18 May 2015 10:45:18 +0000 (10:45 +0000)]
MFC r281928:

Avoid an infinite loop by ensuring that the amount of bytes read is greater
than 0 in MDXFileChunk when calculating the checksum

This edgecase can be triggered if the file is truncated while the checksum
is being calculated (i.e. the EOF is reached)

Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius)
PR: 196694
Reviewed by: delphij, ngie
Submitted by: Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division

9 years agoMFC of 283042,tzdata10:
edwin [Mon, 18 May 2015 02:05:56 +0000 (02:05 +0000)]
MFC of 283042,tzdata10:

Update to tzdata2015c:

    Release 2015c - 2015-04-11 08:55:55 -0700

    Changes affecting future time stamps

    Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore be on
    Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.  Similar fixes
    apply to 2026, 2037, 2043, etc.  (Thanks to Steffen Thorsen.)

9 years agoFor clang 3.4.1, when using -fformat-extensions, and warning about the
dim [Sun, 17 May 2015 20:38:01 +0000 (20:38 +0000)]
For clang 3.4.1, when using -fformat-extensions, and warning about the
FreeBSD-specific %D and %b printf format specifiers, avoid possible
argument overruns.  Also reduce the differences with the version added
in r280031 (which has been sent upstream).

Direct commit to stable/10, since head already has clang 3.6.0.

9 years agoMFC r282061:
ngie [Sat, 16 May 2015 23:39:54 +0000 (23:39 +0000)]
MFC r282061:

Integrate tools/regression/execve into the FreeBSD test suite as
tests/sys/kern/execve

9 years agoMFC r282747:
ngie [Sat, 16 May 2015 22:36:19 +0000 (22:36 +0000)]
MFC r282747:

Use MIN from sys/param.h instead of handrolling the macro

Replace sys/types.h with sys/param.h per-style(9)

Sponsored by: EMC / Isilon Storage Division

9 years agoBring the contrib/llvm/patches directory up-to-date.
dim [Sat, 16 May 2015 22:06:40 +0000 (22:06 +0000)]
Bring the contrib/llvm/patches directory up-to-date.

MFC r263892:
Add the llvm/clang patch for r263891.

MFC r264350:
Update the llvm/clang patch for r264345.

MFC r266675:
Add the clang patch for r266674.

MFC r275651:
Add llvm patch corresponding to r275633.

MFC r275747:
Update llvm patches for r274286 and r275633 so all the tests will pass.

MFC r275760:
Add clang patch corresponding to r275759.

MFC r275772:
Update clang patch for r275759 to use correct test cases.

Additionally:
* Remove the clang patch corresponding to r263619, as ARM EABI
  hard-float support was never MFC'd.
* Add clang patch corresponding to r279302.

9 years agoMFC r282115, r282152, r282201
pfg [Sat, 16 May 2015 15:44:13 +0000 (15:44 +0000)]
MFC r282115, r282152, r282201
MFV r282150
libgomp: Update to version 4.3.5.
bring initial BSD support from upstream.

This was not meant to be MFC'd at first but the original OMP support
for FreeBSD was in very poor shape.  The effect of this change should
be minimal as all ports are already using the version of libgomp that
comes with the gcc ports. The local libgomp is planned to be disabled
for platforms that are not using older gcc by default so this version
of libgomp will not be shipped in tier-1 platform releases.

Discussed with: emaste

9 years agoMFC r282679:
kib [Sat, 16 May 2015 09:13:56 +0000 (09:13 +0000)]
MFC r282679:
Do not return from thread_single(SINGLE_BOUNDARY) until all stopped
thread are guarenteed to be removed from the processors.

9 years agoMFC r282880:
smh [Sat, 16 May 2015 01:13:37 +0000 (01:13 +0000)]
MFC r282880:

Add copyright info missing from r282205

Sponsored by: Multiplay

9 years agoMFH: r282485
julian [Fri, 15 May 2015 15:49:24 +0000 (15:49 +0000)]
MFH: r282485
  Tweak seekdir, telldir and readdir so that when htere are deletes going on,
  as seek to teh last location saved will still work. This is needed for Samba
  to be able to correctly handle delete requests from windows. This does not
  completely fix seekdir when deletes are present but fixes the worst of the
  problems. The real solution must involve some changes to the API for eh VFS
  and getdirentries(2).

  Obtained from: Panzura inc
MFH: r282550 (jhb@)
  A few style fixes and expand the comment a bit on what _fixtelldir() is
  doing.
MFH: r282560 (jhb@)
  Tweak the comment here some more.  In particular, the previous opening
  sentence was a bit confusing.
  Noted by: kib

9 years agoMFC r279316:
trasz [Fri, 15 May 2015 15:13:51 +0000 (15:13 +0000)]
MFC r279316:

Add uefisign(8) reference to uefi(8) manual page.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r279321:
trasz [Fri, 15 May 2015 15:12:12 +0000 (15:12 +0000)]
MFC r279321:

Make the uefikeys script output slightly more obvious.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r279317:
trasz [Fri, 15 May 2015 15:10:34 +0000 (15:10 +0000)]
MFC r279317:

Add key/cert generation script for uefisign(8).

Sponsored by: The FreeBSD Foundation

9 years agoMFC r279315:
trasz [Fri, 15 May 2015 15:08:37 +0000 (15:08 +0000)]
MFC r279315:

Add uefisign(8), UEFI Secure Boot signing utility.

Relnotes: yes
Sponsored by: The FreeBSD Foundation

9 years agoMFC r279821:
jch [Fri, 15 May 2015 12:35:18 +0000 (12:35 +0000)]
MFC r279821:

    In TCP, connect() can return incorrect error code EINVAL
    instead of EADDRINUSE or ECONNREFUSED

    PR:                         196035
    Differential Revision:      https://reviews.freebsd.org/D1982
    Reported by:                Mark Nunberg <mnunberg@haskalah.org>
    Submitted by:               Harrison Grundy <harrison.grundy@astrodoggroup.com>
    Reviewed by:                adrian, jch, glebius, gnn
    Approved by:                jhb

9 years agoMFC: r280904, r280990, r281599
jch [Fri, 15 May 2015 12:07:43 +0000 (12:07 +0000)]
MFC: r280904, r280990, r281599

r280904:
    Use appropriate timeout_t* instead of void* in tcp_timer_activate()

    Suggested by:               imp
    Differential Revision:      https://reviews.freebsd.org/D2154
    Reviewed by:                imp, jhb
    Approved by:                jhb

r280990:
    Provide better debugging information in tcp_timer_activate() and
    tcp_timer_active()

    Differential Revision:      https://reviews.freebsd.org/D2179
    Suggested by:               bz
    Reviewed by:                jhb
    Approved by:                jhb

r281599:
    Fix an old and well-documented use-after-free race condition in
    TCP timers:
     - Add a reference from tcpcb to its inpcb
     - Defer tcpcb deletion until TCP timers have finished

    Differential Revision:      https://reviews.freebsd.org/D2079
    Submitted by:               jch, Marc De La Gueronniere <mdelagueronniere@verisign.com>
    Reviewed by:                imp, rrs, adrian, jhb, bz
    Approved by:                jhb
    Sponsored by:               Verisign, Inc.

9 years agoMFC r281265:
trasz [Fri, 15 May 2015 11:10:01 +0000 (11:10 +0000)]
MFC r281265:

Add a hint that "device ctl" kind of depends on "device iscsi".

It actually doesn't - "device ctl" automatically pulls in ICL, which
would normally be a part of iscsi.ko.  However, doing it that way makes
iscsi.ko unloadable, and building ctl.ko without iscsi.ko (using
MODULES_OVERRIDE) results in ctl.ko that is unloadable, due to missing
symbols that would be resolved to iscsi.ko.  And since the symbols
are named "icl_whatever", it's not obvious that it's iscsi.ko that's
required.

If there is a better way - let me know.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r280983:
trasz [Fri, 15 May 2015 11:07:49 +0000 (11:07 +0000)]
MFC r280983:

Update open(2) to make it more obvious that O_NOCTTY and O_TTY_INIT
are ignored.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r280321:
trasz [Fri, 15 May 2015 11:06:10 +0000 (11:06 +0000)]
MFC r280321:

Make the autofs LDAP script cope with server returning entries with
ENTRY_ATTRIBUTE (eg cn) after the VALUE_ATTRIBUTE (eg automountInformation),
instead of before.

PR: 198557
Sponsored by: The FreeBSD Foundation

9 years agoMFC r279536:
trasz [Fri, 15 May 2015 11:03:19 +0000 (11:03 +0000)]
MFC r279536:

Make fuse(4) respect FOPEN_DIRECT_IO.  This is required for correct
operation of GlusterFS.

PR: 192701
Submitted by: harsha at harshavardhana.net
Reviewed by: kib@
Sponsored by: The FreeBSD Foundation

9 years agoMFC r279489:
trasz [Fri, 15 May 2015 11:00:12 +0000 (11:00 +0000)]
MFC r279489:

Make the "automounted" flag work for FUSE filesystems.

PR: 192852
Submitted by: taku at tackymt.homeip.net (earlier version)
Sponsored by: The FreeBSD Foundation

9 years agoMFC r278360:
trasz [Fri, 15 May 2015 10:56:22 +0000 (10:56 +0000)]
MFC r278360:

Make hccontrol(8) and sdpcontrol(8) appear in "man -k bluetooth" output.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r278352:
trasz [Fri, 15 May 2015 10:54:40 +0000 (10:54 +0000)]
MFC r278352:

Remove useless comment.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r278316:
trasz [Fri, 15 May 2015 10:53:06 +0000 (10:53 +0000)]
MFC r278316:

Make "ctladm islist" ignore unknown elements, so the old version
continues to work with newer kernel.

Other ctladm(8) "*list" subcommands seem to already handle it in
a reasonable way.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r278237:
trasz [Fri, 15 May 2015 10:50:58 +0000 (10:50 +0000)]
MFC r278237:

Don't call callout_drain() with iscsi mutex held; this fixes a warning
that was introduced recently.  While here, don't try to access is_terminating
without lock.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r278233:
trasz [Fri, 15 May 2015 10:47:25 +0000 (10:47 +0000)]
MFC r278233:

Fix error handling.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r277170:
trasz [Fri, 15 May 2015 10:42:48 +0000 (10:42 +0000)]
MFC r277170:

Add devd(8) notifications for creation and destruction of GEOM devices.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r274720:
trasz [Fri, 15 May 2015 09:56:59 +0000 (09:56 +0000)]
MFC r274720:

Fix improper .Fx macro usage.

Sponsored by: The FreeBSD Foundation

9 years agoMFC: r282437, r282438, r282439, r282462, r282463, r282464, r282466, r282467,
bapt [Fri, 15 May 2015 09:00:20 +0000 (09:00 +0000)]
MFC: r282437, r282438, r282439, r282462, r282463, r282464, r282466, r282467,
     r282468, r282609

Update the list of known roff commands (both from NetBSD and heirloom doctools)
Improve memory checking
Remove limitation on input lines by using getline(3)

9 years agoMFC: r282449, r282450, r282451, r282452, r282453, r282454, r282455, r282457,
bapt [Fri, 15 May 2015 08:53:52 +0000 (08:53 +0000)]
MFC: r282449, r282450, r282451, r282452, r282453, r282454, r282455, r282457,
     r282459, r282460, r282461

Modernize code: ansification, use c99 features
Improve style(9)
Better memory checking

9 years agoMFC: r282305, r282309, r282342, r282669, r282722
bapt [Fri, 15 May 2015 08:45:55 +0000 (08:45 +0000)]
MFC: r282305, r282309, r282342, r282669, r282722

r282305:
col: fixing 25 year old bug

Makes col(1) respect POSIX again for escape sequences as decribed in its manpage
The bug was introduced in CSRG in 1990

r282309:
Use defines to improve clarity

r282342:
Capsicumize col(1)

r282669:
Fix about ten integer overflows and underflows and a handful of logic
errors in line number handling.

Submitted by: schwarze at OpenBSD
Discussed with: schwarze at OpenBSD
Obtained from: OpenBSD

r282722:
For half and reverse line feeds, recognize both SUSv2-style escape-digit
and BSD-style escape-control-char sequences in the input stream.

Submitted by: schwarze at OpenBSD
Discussed with: schwarze at OpenBSD
Obtained from: OpenBSD

9 years agoMFC r282939: Free vsi->queues after use.
araujo [Fri, 15 May 2015 07:07:37 +0000 (07:07 +0000)]
MFC r282939: Free vsi->queues after use.

9 years agoMFC: r281960
rmacklem [Thu, 14 May 2015 22:50:07 +0000 (22:50 +0000)]
MFC: r281960
MAXBSIZE defines both the largest UFS block size and the
largest size for a buffer in the buffer cache. This patch
defines a new constant MAXBCACHEBUF, which is the largest
size for a buffer in the buffer cache. Having a separate
constant allows MAXBCACHEBUF to be set larger than MAXBSIZE
on a per-architecture basis, so that NFS can do larger read/writes
for these architectures. It modifies sys/param.h so that BKVASIZE
can also be set on a per-architecture basis.
A couple of cases where NFS used MAXBSIZE instead of NFS_MAXBSIZE
is fixed as well.

9 years agoMFC r281283:
jimharris [Thu, 14 May 2015 21:30:36 +0000 (21:30 +0000)]
MFC r281283:

  nvme: remove CHATHAM related code

  Chatham was an internal NVMe prototype board used for
  early driver development.

Sponsored by: Intel

9 years agoMFC r281282:
jimharris [Thu, 14 May 2015 21:29:42 +0000 (21:29 +0000)]
MFC r281282:

  nvme: add device strings for Intel DC series NVMe SSDs

Sponsored by: Intel

9 years agoMFC r281281, r281285:
jimharris [Thu, 14 May 2015 21:28:46 +0000 (21:28 +0000)]
MFC r281281, r281285:

  nvme: create separate DMA tag for non-payload DMA buffers

  Submission and completion queue memory need to use a
  separate DMA tag for mappings than payload buffers,
  to ensure mappings remain contiguous even with DMAR
  enabled.

Sponsored by: Intel

9 years agoMFC r281280:
jimharris [Thu, 14 May 2015 21:27:31 +0000 (21:27 +0000)]
MFC r281280:

  nvme: fall back to a smaller MSI-X vector allocation if necessary

  Previously, if per-CPU MSI-X vectors could not be allocated,
  nvme(4) would fall back to INTx with a single I/O queue pair.
  This change will still fall back to a single I/O queue pair, but
  allocate MSI-X vectors instead of reverting to INTx.

Sponsored by: Intel

9 years agoNo need to delete export from filesystems which are not exported.
sjg [Thu, 14 May 2015 18:15:21 +0000 (18:15 +0000)]
No need to delete export from filesystems which are not exported.

9 years agoMFC r282578:
ae [Thu, 14 May 2015 11:47:18 +0000 (11:47 +0000)]
MFC r282578:
  Mark data checksum as valid for multicast packets, that we send back
  to myself via simloop.
  Also remove duplicate check under #ifdef DIAGNOSTIC.

  PR: 180065

9 years agoMFC r282482: cp: Remove fts sorting.
jilles [Thu, 14 May 2015 10:46:20 +0000 (10:46 +0000)]
MFC r282482: cp: Remove fts sorting.

In an attempt to improve performance, cp reordered directories first
(although the comment says directories last). This is not effective with new
UFS layout policies.

The sorting reorders multiple arguments passed to cp, which may be
undesirable.

Additionally, the comparison function does not induce a total order. Per
POSIX, this causes undefined behaviour in qsort().

NetBSD removed the sorting in 2009.

On filesystems that return directory entries in hash/btree order, sorting by
d_fileno before statting improves performance on large directories. However,
this can only be implemented in fts(3).

PR: 53475
Reviewed by: bde (in 2004)

9 years agoMFC r281877:
yongari [Thu, 14 May 2015 05:10:42 +0000 (05:10 +0000)]
MFC r281877:
  Add another variant of BCM5708S controller to IBM HS21 workaround
  list.

  PR: 118238

9 years agoMFC r282772:
gjb [Thu, 14 May 2015 04:21:04 +0000 (04:21 +0000)]
MFC r282772:
  Fix virtual machine disk format creating by passing VMFORMAT
  to mkimg(1)

PR: 200068
Sponsored by: The FreeBSD Foundation

9 years agoDocument EN-15:04 and EN-15:05.
gjb [Thu, 14 May 2015 04:05:34 +0000 (04:05 +0000)]
Document EN-15:04 and EN-15:05.

Sponsored by: The FreeBSD Foundation

9 years agoMFC r279571,281563 (allanjude):
delphij [Wed, 13 May 2015 22:36:00 +0000 (22:36 +0000)]
MFC r279571,281563 (allanjude):

Add a new safetly belt to freebsd-update to prevent a user doing a minor
update (-pX) while having an unfinished major upgrade (9.x to 9.y)
Safetly belt can be disabled with the -F flag

Additionally, add the --not-running-from-cron flag they bypasses the TTY
requirement, and allows freebsd-update to be invoked by orchestration
frameworks, scripts, or otherwise.

PR: 196760
Relnotes: yes
Sponsored by: ScaleEngine Inc.

9 years agoMFC r282565: Handle EDQUOT backend storage errors same as ENOSPC.
mav [Wed, 13 May 2015 15:23:53 +0000 (15:23 +0000)]
MFC r282565: Handle EDQUOT backend storage errors same as ENOSPC.

9 years agoMFC r282465:
ae [Wed, 13 May 2015 14:05:53 +0000 (14:05 +0000)]
MFC r282465:
  Add apple-boot, apple-hfs and apple-ufs aliases to MBR scheme.
  Sort DOSPTYP_* entries in diskmbr.h by value.
  Document these scheme-specific types in gpart(8).

9 years agoMFC r262781,r263336:
ngie [Wed, 13 May 2015 12:17:01 +0000 (12:17 +0000)]
MFC r262781,r263336:

r262781 (by pho):

Preserve naming consistency for test cases.

Pointed out by:  jmmv
Sponsored by: EMC / Isilon storage division

r263336 (by pho):

Added sysctl kern.maxfiles increase test, do not use /etc/passwd for tests
and use volatile sig_atomic_t for signal handler variable.

Reviewed by:  asomers (previous version)
Sponsored by: EMC / Isilon storage division

9 years agoMFC r282211,r282244:
ngie [Wed, 13 May 2015 12:13:18 +0000 (12:13 +0000)]
MFC r282211,r282244:

r282211:

ATF_REQUIRE_KERNEL_MODULE: use atf_skip, not ATF_REQUIRE_MSG so the testcase
no longer bombs out
PLAIN_REQUIRE_KERNEL_MODULE: use printf + _exit, no err so the testcase no
longer bombs out if it prints to stderr

r282244:

Fix typo. It should have been atf_tc_skip, not atf_skip

Reported by: many, Jenkins
Pointyhat to: ngie

9 years agoMFC r281593,r282071,r282074,r282133,r282134,r282135,r282136,r282137,r282138:
ngie [Wed, 13 May 2015 12:09:01 +0000 (12:09 +0000)]
MFC r281593,r282071,r282074,r282133,r282134,r282135,r282136,r282137,r282138:

r282071:

Integrate tools/regression/mqueue into the FreeBSD test suite as
tests/sys/mqueue

r282074:

Integrate tools/regression/aio/aiotest and tools/regression/aio/kqueue into the
FreeBSD test suite as tests/sys/aio

r282133:

Fill in the copyright boilerplate for the test program

r282134:

Add initial (unpolished) macros for interfacing with the FreeBSD test suite

This is very rough, but will be replaced/redesigned some time soon after I fix
the Jenkins breakage I introduced

r282135:

Use ATF_REQUIRE_KERNEL_MODULE instead of aio_available function

r282136:

- Use ATF_REQUIRE_KERNEL_MDOULE to require aio(4)
- Don't use /tmp as a basis for temporary files as it's outside of the ATF
  sandbox
- Don't override MAX macro in sys/param.h

r282137:

Use PLAIN_REQUIRE_KERNEL_MODULE to require "mqueuefs"

r282138:

Adjust CFLAGS to find freebsd_test_suite/macros.h

9 years agoMFC r280894,r280895:
ngie [Wed, 13 May 2015 11:49:38 +0000 (11:49 +0000)]
MFC r280894,r280895:

r280894:

Minor cleanup before converting to ATF testcases

- Remove blank (tab-only) lines.
- Fix -Wunused warnings.
- Bump up to WARNS= 6

r280895:

- Fix -Wsign issue
- Bump up to WARNS=6

9 years agoMFC r282057,r282092,r282106:
ngie [Wed, 13 May 2015 11:32:55 +0000 (11:32 +0000)]
MFC r282057,r282092,r282106:

r282057:

Build/install libc, librt, libthr, and msun NetBSD test suites on all
architectures

r282092 (by andrew):

Correct the spelling of MACHINE_CPUARCH, MACHINE_CPU is not set on arm64.

r282106:

Remove per-architecture checks for enabling HAVE_FENV_H

The conditional came from NetBSD, where only select architectures have this
header/support

All architectures on FreeBSD have the necessary support though, so the
conditional's completely unnecessary

make tinderbox done on all architectures (including arm64, where the issue
occurred before) this time

9 years agoMFC r282076,r282104:
ngie [Wed, 13 May 2015 11:12:06 +0000 (11:12 +0000)]
MFC r282076,r282104:

r282076:

Integrate tools/regression/mmap into the FreeBSD test suite as
tests/sys/kern/mmap_test

r282104:

Move tests/sys/kern/mmap_test to tests/sys/vm/mmap_test

As jhb noted, the actual mmap(2) implementation is under sys/vm, not
sys/kern/, so the correct logical place is tests/sys/vm/, not
tests/sys/kern/

9 years agoMFC r282075:
ngie [Wed, 13 May 2015 11:06:12 +0000 (11:06 +0000)]
MFC r282075:

Convert this testcase over to a TAP format testcase

9 years agoMFC r262526,r262730:
ngie [Wed, 13 May 2015 11:01:48 +0000 (11:01 +0000)]
MFC r262526,r262730:

r262526 (by pho):

Added a regression test for r234131.

Discussed with:  asomers
Sponsored by: EMC / Isilon storage division

r262730 (by pho):

Changed name of test case to a more descriptive one and moved
comment to the "descr" property.

Suggested by:  jmmv
Sponsored by: EMC / Isilon storage division

9 years agoMFC r281966:
ngie [Wed, 13 May 2015 10:56:35 +0000 (10:56 +0000)]
MFC r281966:

Add #include sys/types.h for register_t for mips

9 years agoMFC r281618,r281823:
ngie [Wed, 13 May 2015 10:53:16 +0000 (10:53 +0000)]
MFC r281618,r281823:

r281618:

Defeat race with MK_KERBEROS == yes introduced with bootstrap-tools
parallelization work done in r279197

- kerberos5/lib/libroken requires kerberos5/tools/make-roken to build
- kerberos5/tools/asn1_compile, kerberos5/tools/slc, and usr.bin/compile_et
  require kerberos5/lib/libroken and kerberos5/lib/libvers

This race is incredibly evident when cross-building sparc64 on
ref10-amd64.freebsd.org

Pointyhat to: ngie

r281823:

Serialize all of _kerberos5_bootstrap_tools to avoid build failures involving
make bootstrap-tools

On the plus side, this also greatly reduces complexity

Pointyhat to: ngie
Reported by: Willem Jan Withagen <wjw@digiware.nl>

9 years agoMFC r282364, r282429, r282524:
mav [Wed, 13 May 2015 10:35:34 +0000 (10:35 +0000)]
MFC r282364, r282429, r282524:
Implement BSY reporting and in-order execution of non-NCQ commands.

Block command queue on BSY or DRQ bits set or device error reported.
This can be a performance penalization for non-NCQ commands, but it is
required for proper error recovery and standard compliance.

9 years agoMFC r282345: Initialize PxCMD on reset and make its read-only bits such.
mav [Wed, 13 May 2015 10:30:53 +0000 (10:30 +0000)]
MFC r282345: Initialize PxCMD on reset and make its read-only bits such.

9 years agoMFC r282344: Handle ATA_SEND_FPDMA_QUEUED as NCQ in ahci_port_stop().
mav [Wed, 13 May 2015 10:29:45 +0000 (10:29 +0000)]
MFC r282344: Handle ATA_SEND_FPDMA_QUEUED as NCQ in ahci_port_stop().

9 years agoMFC r282073:
ngie [Wed, 13 May 2015 10:29:02 +0000 (10:29 +0000)]
MFC r282073:

- Fix style(9) a bit
-- Fix whitespace
-- Use err/errx
-- Remove superfluous braces
- Be a bit more defensive with input from the end-user
- Don't throw a floating point exception by dividing by 0 when processing a
  zero-byte file

9 years agoMFC r282067:
ngie [Wed, 13 May 2015 10:24:23 +0000 (10:24 +0000)]
MFC r282067:

Integrate tools/regression/fifo into the FreeBSD test suite as tests/sys/fifo
and tools/regression/file into the FreeBSD test suite as tests/sys/file

9 years agoMFC r282063:
ngie [Wed, 13 May 2015 10:21:13 +0000 (10:21 +0000)]
MFC r282063:

Integrate tools/regression/kqueue into the FreeBSD test suite as
tests/sys/kqueue

9 years agoMFC r281766, r281767:
mav [Wed, 13 May 2015 10:21:00 +0000 (10:21 +0000)]
MFC r281766, r281767:
Report link as up only if we managed to open tap device.

It would be cool to report tap device status, but it has no such API.

9 years agoMFC r281764, r282563: Disable RX/TX queues notifications when not needed.
mav [Wed, 13 May 2015 10:18:44 +0000 (10:18 +0000)]
MFC r281764, r282563: Disable RX/TX queues notifications when not needed.

This reduces CPU load and doubles iperf throughput, reaching 2-3Gbit/s.

Sponsored by: iXsystems, Inc.

9 years agoMFC r282062:
ngie [Wed, 13 May 2015 10:15:26 +0000 (10:15 +0000)]
MFC r282062:

Fix -Wformat warnings by using proper format string qualifiers for
long and unsigned[ long] types

9 years agoMFC r282056:
ngie [Wed, 13 May 2015 10:12:16 +0000 (10:12 +0000)]
MFC r282056:

The fmodl compat shims on arm/mips/powerpc aren't complete

Disable the test code for now on those architectures

PR: 199422

9 years agoMFC r282054:
ngie [Wed, 13 May 2015 10:07:50 +0000 (10:07 +0000)]
MFC r282054:

ath3kfw, bcmfw, bthidcontrol, bthidd all require usb(4); build them
conditionally if MK_USB != no

9 years agoMFC r281967:
ngie [Wed, 13 May 2015 10:03:21 +0000 (10:03 +0000)]
MFC r281967:

Assuming a system has /bin/csh on it is a bad idea (especially it being
optional on FreeBSD). Look for /bin/cat instead

9 years agoConvert space to tabs in the bits that I changed in my last commit.
araujo [Wed, 13 May 2015 08:58:06 +0000 (08:58 +0000)]
Convert space to tabs in the bits that I changed in my last commit.
No functional change.

Reported by: jmallet@