Commit Graph

189604 Commits

Author SHA1 Message Date
Roger Pau Monné
6989c166d6 MFC: r282269, r282277
atkbd: remove usage of x86bios
Remove leftover from r282269.
2015-05-21 10:40:18 +00:00
Roger Pau Monné
edc9f99bb6 MFC: r282908
netfront: wait for backend to connect before sending ARP

Sponsored by: Citrix Systems R&D
2015-05-21 10:28:33 +00:00
Andrew Rybchenko
0e545d0456 MFC: r283051
sfxge: do not advertise LRO capability if LRO is compiled out

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:24:35 +00:00
Andrew Rybchenko
9a605fbd16 MFC: r283050
sfxge: automatically turn off TSO when Tx checksum offload is disabled

Also return error if TSO is requested without Tx checksum offload.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:23:28 +00:00
Andrew Rybchenko
fe4d365e64 MFC: r283049
sfxge: allow to disable checksum offloads over VLAN

It just affects capabilities of the created VLAN interface.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:22:15 +00:00
Andrew Rybchenko
6372201d64 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.
2015-05-21 09:21:05 +00:00
Andrew Rybchenko
5a34d81de5 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.
2015-05-21 09:15:19 +00:00
Andrew Rybchenko
1da0af1ee3 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.
2015-05-21 09:13:47 +00:00
Andrew Rybchenko
8e4e5a2db8 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.
2015-05-21 09:12:25 +00:00
Andrew Rybchenko
39391d535f 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.
2015-05-21 09:11:03 +00:00
Andrew Rybchenko
31dbc49ffa 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.
2015-05-21 09:09:51 +00:00
Andrew Rybchenko
3030003fa8 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.
2015-05-21 09:08:10 +00:00
Andrew Rybchenko
d17a4e7033 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.
2015-05-21 09:06:41 +00:00
Andrew Rybchenko
153c1a6a3b 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.
2015-05-21 09:05:13 +00:00
Andrew Rybchenko
3d0fd2fdce MFC: r282903
sfxge: advertise IPv6 Rx and Tx checksum offload support

Tx checksum offload may be enabled/disabled.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:03:18 +00:00
Andrew Rybchenko
1759d0101a 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.
2015-05-21 09:00:45 +00:00
Andrew Rybchenko
a7963898d4 MFC: r282899
sfxge: add local variable with Rx descriptor flags

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 08:59:03 +00:00
Andrew Rybchenko
8c90b9ff10 MFC: r282897
sfxge: add missing const qualifier to sfxge_link_mode

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 08:55:06 +00:00
Andrey V. Elsukov
0991b150c8 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.
2015-05-21 08:28:35 +00:00
Hans Petter Selasky
be572085e6 MFC r282505:
Add new USB ID.

PR:		199843
2015-05-21 07:49:44 +00:00
Hans Petter Selasky
751c7427e3 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.
2015-05-21 07:48:06 +00:00
Hans Petter Selasky
0a44f62da2 MFC r279726:
Add DA_Q_NO_RC16 quirk for USB mass storage device.

PR:		194062
2015-05-21 07:41:03 +00:00
Hans Petter Selasky
11805b5f21 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
2015-05-21 07:34:08 +00:00
Hans Petter Selasky
7e13a75538 MFC r282652:
Ensure the USB audio driver doesn't attach twice on the same USB
device by grabbing all the USB audio device interfaces.
2015-05-21 07:10:49 +00:00
Hans Petter Selasky
9cab464054 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
2015-05-21 06:56:35 +00:00
Hans Petter Selasky
b0faa45a9f MFC r282577:
Add support for DYMO LabelWriter PnP.
2015-05-21 06:47:20 +00:00
Hans Petter Selasky
67744a1ece 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.
2015-05-21 06:30:44 +00:00
Ed Maste
33fff07c35 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
2015-05-21 01:50:06 +00:00
Ed Maste
a7a0dcf938 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
2015-05-21 01:47:12 +00:00
Glen Barber
e3d5164567 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
2015-05-20 19:32:57 +00:00
Brooks Davis
dfb76a0be3 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
2015-05-19 19:01:52 +00:00
Xin LI
9bce46d020 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
2015-05-19 08:00:39 +00:00
Xin LI
bf0d9ac10d 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.
2015-05-18 21:27:46 +00:00
Edwin Groothuis
c441d044e6 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.
2015-05-18 21:07:44 +00:00
Jim Harris
81a6bc88a1 MFC r282921:
Add nvme and nvd drivers to GENERIC for amd64 and i386.

Sponsored by:	Intel
2015-05-18 19:48:41 +00:00
Enji Cooper
5ed1b7dd32 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
2015-05-18 10:45:18 +00:00
Edwin Groothuis
1846e46c21 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.)
2015-05-18 02:05:56 +00:00
Dimitry Andric
c34c2ca568 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.
2015-05-17 20:38:01 +00:00
Enji Cooper
f7cf493110 MFC r282061:
Integrate tools/regression/execve into the FreeBSD test suite as
tests/sys/kern/execve
2015-05-16 23:39:54 +00:00
Enji Cooper
e4d7c6d253 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
2015-05-16 22:36:19 +00:00
Dimitry Andric
0835eff68e 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.
2015-05-16 22:06:40 +00:00
Pedro F. Giffuni
4379972e95 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
2015-05-16 15:44:13 +00:00
Konstantin Belousov
7201bd11d9 MFC r282679:
Do not return from thread_single(SINGLE_BOUNDARY) until all stopped
thread are guarenteed to be removed from the processors.
2015-05-16 09:13:56 +00:00
Steven Hartland
a30d285b87 MFC r282880:
Add copyright info missing from r282205

Sponsored by:	Multiplay
2015-05-16 01:13:37 +00:00
Julian Elischer
9ca54ceb4d 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
2015-05-15 15:49:24 +00:00
Edward Tomasz Napierala
79dc6031d6 MFC r279316:
Add uefisign(8) reference to uefi(8) manual page.

Sponsored by:	The FreeBSD Foundation
2015-05-15 15:13:51 +00:00
Edward Tomasz Napierala
cb8c664716 MFC r279321:
Make the uefikeys script output slightly more obvious.

Sponsored by:	The FreeBSD Foundation
2015-05-15 15:12:12 +00:00
Edward Tomasz Napierala
4b0ddc65ae MFC r279317:
Add key/cert generation script for uefisign(8).

Sponsored by:	The FreeBSD Foundation
2015-05-15 15:10:34 +00:00
Edward Tomasz Napierala
d581a86a1c MFC r279315:
Add uefisign(8), UEFI Secure Boot signing utility.

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-05-15 15:08:37 +00:00
Julien Charbon
8502895c6a 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
2015-05-15 12:35:18 +00:00