Commit Graph

198045 Commits

Author SHA1 Message Date
gjb
505f4c781a MFC r277216:
Evaluate running userland/kernel version in daily
  periodic(8) run, taken from uname(1) '-U' and '-K'
  flags.

Sponsored by:	The FreeBSD Foundation
2015-01-22 02:24:09 +00:00
jhb
4d3ec3464b MFC 272666: Fix build for i386 kernels with out 'I686_CPU'.
Reported by:	Mike Tancsa <mike@sentex.net>
2015-01-21 17:59:32 +00:00
smh
13bbed0129 MFC r276063:
Standardise on illumos for #ifdef's in zvol.c

MFC r276066:
Refactor zvol locking to minimise diff with upstream

MFC r276069:
Fix panic when resizing ZFS zvol's

Sponsored by:	Multiplay
2015-01-21 09:45:48 +00:00
smh
48282fa7cc MFC r272509 (by delphi):
Diff reduction with upstream

Sponsored by:	Multiplay
2015-01-21 09:39:20 +00:00
ngie
259bd5c13f MFC r275907:
r275907 (by ngie):

  Fix building/installing tests when TESTSBASE != /usr/tests

  The work in r258233 hardcoded the assumption that tests was the last component
  of the tests tree by pushing tests as an explicit prefix for the paths in
  BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
  of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
  provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

  One thing that r258233 did properly though was remove "/usr/tests" creation
  from BSD.usr.dist -- that should have not been there in the first place. That
  was an "oops" on my part for the work that was originally committed in r241823

  Phabric: D1301
  Reviewed by: imp
  Sponsored by: EMC / Isilon Storage Division
2015-01-20 23:39:08 +00:00
ngie
a170f61a5a MFC r267004,r274592:
r267004 (by gahr):

  - Use strlen instead of hardcoding a number
  - Terminate a sentence with a period

  Approved by:	cognet

r274592 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase and
  rename as lib/libc/stdio/fmemopen2_test

  Sponsored by: EMC / Isilon Storage Division
2015-01-20 21:59:48 +00:00
ngie
63ef816492 MFC r276590:
r276590 (by jilles):

  Link lib/libc/c063 tests to the build.

  Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's
  request; the includes are clearly necessary for struct stat.

  The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with
  faccessat(), which is not specified by POSIX.1-2008.

  Differential Revision:	https://reviews.freebsd.org/D1411
  Reviewed by:	ngie
2015-01-20 21:48:42 +00:00
ngie
914ba0497a MFC r276318:
r276318 (by ngie):

  Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes

  Reported by: Beeblebrox <zaphod@berentweb.com>
2015-01-20 21:46:04 +00:00
ngie
447f2d204c MFC r274075,r274581,r274582,r274595:
r274075 (by ngie):

  Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
  500 new testcases

  Various TODOs have been sprinkled around the Makefiles for items that even need
  to be ported (missing features), testcases have issues with building/linking, or
  issues at runtime.

  A variant of this code has been tested extensively on amd64 and i386
  10-STABLE/11-CURRENT for several months without issue. It builds on other
  architectures, but the code will remain off until I have prove it works on
  virtual hardware or real hardware on other architectures

  In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274581 (by ngie):

  Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase and
  rename as lib/libc/gen/arc4random_test

  Sponsored by: EMC / Isilon Storage Division

r274582 (by ngie):

  Remove test-arc4random from this Makefile so others can continue to use
  this as-is for the time being

r274595 (by ngie):

  Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase and
  Rename as lib/libc/stdio/fpclassify2_test

  Sponsored by: EMC / Isilon Storage Division
2015-01-20 21:42:40 +00:00
trasz
4e06276ca8 MFC r277128:
Fix detection of ext2/ext3 filesystems that lack labels.

Sponsored by:	The FreeBSD Foundation
2015-01-20 20:44:16 +00:00
trasz
1444c0c436 MFC r276704:
Fix memory leaks.

Sponsored by:	The FreeBSD Foundation
2015-01-20 20:42:55 +00:00
trasz
8a23a0c9e7 MFC r276703:
Remove leftovers.

Sponsored by:	The FreeBSD Foundation
2015-01-20 20:41:32 +00:00
trasz
0638ccbfc6 MFC r275680:
Add fstyp(8).  This utility, named after its SVR4 counterpart, detects
filesystems.  It differs from file(1) in that it gives machine-parseable
output, it outputs filesystem labels, doesn't get confused by other
formats metadata, and runs in Capsicum sandbox.

Differential Revision:	https://reviews.freebsd.org/D1255
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-01-20 20:39:29 +00:00
hselasky
a20136a303 MFC r276892:
Add support for USB device side mode to the USB modem driver.
2015-01-20 05:12:30 +00:00
hselasky
b34c77d403 MFC r276825 and r277372:
Allow a block size of zero to mean 512 bytes, which is the most common
block size for USB disks. This fixes support for "Action Cam SJ4000".
2015-01-20 05:00:38 +00:00
bryanv
d8207c1298 MFC r276491:
Add softc flag for when the indirect descriptor feature was negotiated
2015-01-19 17:02:30 +00:00
bryanv
17a9a10342 MFC r276489:
Use the appropriate IPv4 or IPv6 TSO HW assist flag
2015-01-19 17:00:53 +00:00
kib
44ff2e7b62 MFC r277055:
Revert r263475: TDP_DEVMEMIO no longer needed.
2015-01-19 11:07:29 +00:00
kib
762486d18f MFC r277051:
Fix several issues with /dev/mem and /dev/kmem devices on amd64.
2015-01-19 11:02:23 +00:00
brueffer
4337378f01 MFH: r277085
Fix a typo in the FFS maxbpg option, it was erroneously spelled maxbpf.

The error has been reported to and fixed in the NetBSD upstream version as well.

PR:             196598
Submitted by:   Dan McGregor
2015-01-19 10:57:00 +00:00
kib
da566e85be MFC r277047:
For x86, read MAXPHYADDR into variable cpu_maxphyaddr.
2015-01-19 10:52:55 +00:00
ngie
b1054791ad MFC r276805:
X-MFC note: the svn:mergeinfo for this MFC was accidentally committed via
            r277371

r276805 (by ngie):

  Build contrib/ofed/usr.{bin,lib} in parallel

  Sponsored by: EMC / Isilon Storage Division
2015-01-19 07:29:28 +00:00
ngie
919a946ba7 MFC r276804:
r276804 (by ngie):

  Fix 'make depend' before infiniband headers have been installed to build host
  by removing space between -I and the header directory

  Sponsored by: EMC / Isilon Storage Division
2015-01-19 07:24:18 +00:00
ngie
f219f816a2 MFC r277272:
r277272 (by ngie):

  Don't call abort on usage errors; print out the usage message instead

  PR: 196793
  Sponsored by: EMC / Isilon Storage Division
2015-01-19 07:19:56 +00:00
hselasky
544eb7ca08 MFC r276798:
Fix handling of an error case when the MUSB driver is operating in USB
device side mode.
2015-01-19 07:18:59 +00:00
hselasky
5f3d7c27fb MFC r277044:
Increase the maximum number of dynamic USB quirks. USB memory stick
devices which don't support the synchronize cache SCSI command are
likely to also not support the prevent-allow medium removal SCSI
command.

PR:		185747
2015-01-19 07:06:15 +00:00
hselasky
8f83c90921 MFC r277212:
Fix compilation for 32-bit architectures.

PR:		196580
Sponsored by:	Mellanox Technologies
2015-01-19 06:57:51 +00:00
np
4c190cd51e MFC r276959:
cxgb: replace r273280 with a more comprehensive fix.

Poll for link state when the link is down, even for interrupt capable
PHYs.

Allow PHYs to report a dubious "partial" link.  If this state is seen 3
consecutive times (each check is ~1s apart) then reset the PHY.  This is
a workaround for a situation where repeatedly toggling the link from the
peer gets the AEL2005 PHY into a state where it never establishes a PCS
block lock even when everything is in order.
2015-01-18 20:38:38 +00:00
kib
7fe8fbec77 Fix known issues which blow up the process after dlopen("libthr.so")
(or loading a dso linked to libthr.so into process which was not
linked against threading library).

MFC r276630:
Remove interposing, fix malloc, reinstall signal handlers wrappers on
libthr load.

MFC r276681:
Avoid calling internal libc function through PLT or accessing data
though GOT.

MFC r277032:
Reduce the size of the interposing table and amount of
cancellation-handling code in the libthr.

MFC note:
r276646 ("do not erronously export 'openat' symbol from rtld") is not
applicable to stable/10 yet, since PATHFDS support was not merged.
2015-01-18 11:54:20 +00:00
kib
5846d19730 MFC r277023:
Avoid excessive flushing and do missed neccessary flushing in the IOMMU
page table update code.
2015-01-18 09:49:32 +00:00
dim
880b33da75 MFC r276517:
Pull in r200010 from upstream libc++ trunk (by Marshall Clow):

  Rename some internal templates to avoid conflict with complier
  intrinsics. __is_constructible --> __libcpp_is_constructible,
  __is_nothrow_constructible --> __libcpp_is_nothrow_constructible, and
  __is_nothrow_assignable --> __libcpp_is_nothrow_assignable. No
  functionality change.

Pull in r206805 from upstream libc++ trunk (by Marshall Clow):

  Use compiler intrinsic __is_constructible if available

This should fix building parts of world with -std=c++11 enabled.

Reported by:	Oliver Hartmann <ohartman@zedat.fu-berlin.de>
2015-01-17 12:54:02 +00:00
ae
45e30f880b MFC r276901:
Move the recursion detection code into separate function
  gif_check_nesting(). Also make MTAG_GIF definition private to if_gif.c.

MFC r276907:
  Restore Ethernet-within-IP Encapsulation support that was broken after
  r273087. Move all checks from gif_output() into gif_transmit(). Previously
  they were checked always, because if_start always called gif_output.
  Now gif_transmit() can be called directly from if_bridge() code and we need
  do checks here.

  PR:		196646
2015-01-17 11:43:13 +00:00
dim
f4d39872ad MFC r277147:
Since the merge of file 5.21 in r276415 and r276416, stable/9 and
stable/10 cannot be built from FreeBSD 8.x.  This is because the
build-tools stage requires libmagic, but lib/libmagic/config.h was
generated on head, and it now enables using the xlocale.h APIs, which
are not supported on 8.x (and on 9.x before __FreeBSD_version 900506).

See also the start of this thread on -stable:
https://lists.freebsd.org/pipermail/freebsd-stable/2015-January/081521.html

To fix this, conditionalize the use of xlocale.h APIs to make
bootstrapping from older FreeBSD versions work correctly.

Reviewed by:	delphij
Differential Revision: https://reviews.freebsd.org/D1518
2015-01-17 11:41:04 +00:00
dchagin
af01cd2f74 MFC r276906:
Allow clock_getcpuclockid() on the CPU-time clock for zombie process.
Posix does not prohibit this.
2015-01-17 06:18:45 +00:00
pfg
de8bceaa35 MFC r272947, r272950:
tcpd: complete function prototypes.
tcpd.h: add prototype for hosts_ctl

This clears up at least a build issues on mysql-server
ports. While here also replace some spaces with tabs
in our headers.

PR:	32808
PR:	42336
2015-01-17 01:20:28 +00:00
jamie
fe94e6fed3 MFC r277158:
Don't set prison's pr_ip4s or pr_ip6s to -1.

PR:		196474
2015-01-17 01:16:03 +00:00
nwhitehorn
612ef79eb0 MFC r276412:
Fix loader's ability to read the 10.1 release PowerPC ISOs. There appears to
be some kind of problem with the version of makefs used for these disks.
There may be a better way to handle this problem, so I've set the MFC
timer for a fairly long time period.
2015-01-14 21:23:46 +00:00
trasz
b93020e9d5 MFC r275752:
Fix quick_exit(3) manual page to match reality - the status was missing.

Sponsored by:	The FreeBSD Foundation
2015-01-14 11:31:31 +00:00
trasz
45a21be73d MFC r275510:
Move iscsi.conf.5 from sbin/iscontrol/ to usr.bin/iscsictl/, as the
former is obsolete.

Sponsored by:	The FreeBSD Foundation
2015-01-14 11:29:16 +00:00
hselasky
94c8d66297 MFC r276981:
Fix support for ConnectX2 hardware.

Sponsored by:	Mellanox Technologies
2015-01-14 05:29:35 +00:00
wblock
8a30c78f53 MFC r276419:
Move the explanation for examples before the example itself.  Add
numerous QEMU examples and explanations supplied by sbruno, with thanks
to Ingo Schwarze for help with the mdoc markup.  Code, text, testing,
proofreading, cinematography, stunts, and the haunting theme song
supplied by sbruno.
2015-01-13 22:51:44 +00:00
wblock
b9ff855f5a MFC r276426:
Remove the svn:executable property from iscsi.4.
2015-01-13 22:41:38 +00:00
hselasky
5c6e5d81e9 MFC r276749:
Fixes and updates for the Linux compatibility layer:
- Remove unsupported "bus" field from "struct pci_dev".
- Fix logic inside "pci_enable_msix()" when the number of allocated
  interrupts are less than the number of available interrupts.
- Update header files included from "list.h".
- Ensure that "idr_destroy()" removes all entries before destroying
  the IDR root node(s).
- Set the "device->release" function so that we don't leak memory at
  device destruction.
- Use FreeBSD's "log()" function for certain debug printouts.
- Put parenthesis around arguments inside the min, max, min_t and max_t macros.
- Make sure we don't leak file descriptors by dropping the extra file
  reference counts done by the FreeBSD kernel when calling falloc()
  and fget_unlocked().

MFC after:	1 week
Sponsored by:	Mellanox Technologies
2015-01-13 17:07:30 +00:00
hselasky
ca95da9368 MFC r276879:
Don't mask the IP-address when doing multicast IP over infiniband.

PR:		196631
Sponsored by:	Mellanox Technologies
2015-01-13 16:57:02 +00:00
ganbold
8307a66f60 MFC:
Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.

Approved by:    stas (mentor)
2015-01-13 07:45:16 +00:00
dchagin
427a8ba83f MFC r273048 by jhb:
Fix most of the warnings in kdump(1).

    r276758:

Eliminate new clang warnings.
2015-01-13 06:23:38 +00:00
jkim
64d1cbe697 Bump version after r277086. yacc(1) is now built with maximum MAXTABLE. 2015-01-12 20:27:06 +00:00
jkim
b42ae9a022 MFC: r274460, r274475
Increase MAXTABLE to the maxmimum possible value and regen test cases.
2015-01-12 20:14:31 +00:00
brueffer
e8b8983d0d MFH: r276695
Add a very basic manpage for the Etherswitch framework.
2015-01-12 10:43:40 +00:00
smh
f596acca20 MFC r276012:
Add a constant AHCI_MAX_IRQS removing magic number

MFC r276013:
Clamp ahci max irq's to AHCI_MAX_IRQS

MFC r276016:
Return the error from ahci_setup_interrupt in ahci_attach

MFC r276019:
style (9) nits

Sponsored by:	Multiplay
2015-01-12 10:25:07 +00:00