198421 Commits

Author SHA1 Message Date
hselasky
dd89b387bb MFC r279544:
Add quirk to disable 64-bit XHCI DMA after r276717.

Requested by:	Gary Jennejohn <gljennjohn@gmail.com>
2015-03-05 10:18:03 +00:00
ae
204f9a5f7c MFC r279324:
When gpart(8) is trying automatically determine the first available
  block of free space after existing partition, take into account
  provider's stripeoffset, since the result will be adjusted to this
  value.

  PR:		197989
2015-03-05 10:08:37 +00:00
hselasky
559bd2313e MFC r279210:
Add support for the DWC OTG v2 chipset found in the STM32F4 series of
processors. Make sure we pullup the data lines in device mode when we
power on the port.
2015-03-05 10:04:34 +00:00
hselasky
cce776ae07 MFC r279297:
Update to upstream version 2.10

The most notable new feature is support for definition files.

Obtained from:	http://dotat.at/prog/unifdef
2015-03-05 09:39:29 +00:00
hselasky
f4065a3aaf MFC r279270:
Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.

PR:		198015
PR:		198019
PR:		198026
2015-03-05 09:31:36 +00:00
hselasky
44aa7d6b56 MFC r279241 and r279242:
Fix debugging macros.
2015-03-05 09:23:43 +00:00
kib
5458a77d46 MFC r279326:
Use pthread_mutex_trylock(3) to implement mtx_trylock(3).
2015-03-05 09:01:46 +00:00
kib
e4e2464970 MFC r279318:
Check that the pointer to the thread return value is not NULL before
dereferencing. NULL is allowed by C11 and must be handled.
2015-03-05 09:00:27 +00:00
dteske
5b322e75c9 MFC r278493: Update copyrights. 2015-03-05 00:44:50 +00:00
dteske
4b2ae2ef5e MFC r278491: Add bsdconfig api function f_dialog_menutag2help() 2015-03-05 00:43:50 +00:00
dteske
c0c2990123 MFC r278490:
Add bsdconfig api functions f_dialog_pause()/f_dialog_pause_no_cancel()
2015-03-05 00:42:58 +00:00
dteske
2662228e2e MFC r278489: Eliminate sub-shells where possible for performance. 2015-03-05 00:42:06 +00:00
dteske
d2827c4f7a MFC r278488: Whitespace. 2015-03-05 00:41:03 +00:00
dteske
e1a2d44e2f MFC r278483: Comments. 2015-03-05 00:40:19 +00:00
dteske
01d39cf2cd MFC r278470:
Add new alias "bsdconfig api" (same as "bsdconfig includes")
NB: My fingers like typing "api" a lot more than "includes"
2015-03-05 00:39:15 +00:00
dteske
04c4a83715 MFC r278467:
Replace the only instance of sed(1) in bsdconfig(8) with awk(1).
2015-03-05 00:37:54 +00:00
dteske
82862f31e2 MFC r274073:
Follow-up to r255036; remove beforeinstall directives from bsdconfig(8)
Makefile's, fixing concurrent installworld (`make -j17 installworld').

Reviewed by:	delphij
Thanks to:	delphij, emaste
2015-03-05 00:34:33 +00:00
dteske
390b17942b MFC r273068:
Rename awk(1) implementation of GNU awk's built-in asorti() function to
prevent fatal conflict should one-true-awk ever be replaced -- e.g., in
an appliance -- with GNU awk. NB: Renamed my implementation to _asorti()
2015-03-05 00:32:54 +00:00
dteske
a1b0091ca7 MFC r273067:
Fix awk(1) asorti() implementation to work when called in a loop.
2015-03-05 00:29:58 +00:00
kib
d83b961fc8 MFC r279284:
Propagate errors from _thr_umutex_unlock2 through mutex_unlock_common.
2015-03-04 09:32:59 +00:00
kib
efbc02bc53 MFC r279283:
When failing to claim ownership of a umtx_pi, restore the umutex owner
to its previous, unowned state.
2015-03-04 09:31:10 +00:00
kib
17814a5b03 MFC r279282:
When unlocking a contested PI pthread mutex, if the queue of waiters
is empty, look up the umtx_pi and disown it if the current thread owns it.
2015-03-04 09:29:25 +00:00
emaste
e28f1e3a99 MFC r279301: GNU nm: Avoid NULL dereference
bfd_dwarf2_find_line() calls find_line() with NULL functionname_ptr,
  which resulted in a crash on certain ELF objects.

  This change was implemented independently from upstream binutils, but
  I have checked that the crash does not happen there.

Sponsored by:	The FreeBSD Foundation
2015-03-04 01:10:09 +00:00
loos
6dec850dfa MFC r278915:
Set the #address-cells and #size-cells properties on I2C controllers of
Raspberry-pi.

This fixes the issues on dtc(1) while compiling I2C addresses set with
"reg" property.
2015-03-03 17:03:41 +00:00
royger
2de8a94917 MFC r278844:
xen: fix xenstore dev
2015-03-03 10:11:58 +00:00
gjb
8de40d0193 MFC r279249, r279250, r279257:
r279249:
  Add 'cloudware-install' target to handle copying cloud
  disk images to a directory within DESTDIR.

  Add CLOUDINSTALL variable to automatically generate the
  actual list of install targets.  While here, rename the
  cloud-specific names from 'vm-' to 'cw-' to avoid naming
  collisions.

  Add AZURE_DISK, GCE_DISK, and OPENSTACK_DISK output file
  variables.

  Add 'cloudware-install' to the 'install' target.

 r279250:
  Remove a stale comment.

 r279257:
  Add a CLOUDPACKAGE variable to contain a list of targets for
  post-install packaging cloud provider images.

  Add a 'gce-package.sh' script to generate the final output
  image ready for upload to the GCE platform.  Right now, this
  is the only image that has a specific output format (GNU-tar),
  and this implementation is expected to be temporary.

  This is not directly connected to the other release targets.

Sponsored by:	The FreeBSD Foundation
2015-03-03 02:46:59 +00:00
thomas
1290baf2e3 MFC rev. 278728:
(backup_kernel_finddir, backup_kernel, install_files):
Add missing references to $BASEDIR, in order to allow correct operation
when updating a system mounted at another location than / (e.g. when
updating an alternate Boot Environment).

Reviewed by:  cperciva
2015-03-02 23:17:17 +00:00
ken
dc6b22c8f3 MFC r279346:
------------------------------------------------------------------------
  r279346 | ken | 2015-02-26 19:44:12 -0700 (Thu, 26 Feb 2015) | 13 lines

  Remove an obsolete comment in devstat(3) about the accuracy of the
  milliseconds per transaction (DSM_MS_PER_TRANSACTION) calculation.

  The comment was accurate many years ago when the kernel didn't
  record I/O times on a per-I/O basis, but now that we do collect
  that information in most areas, it isn't correct.

  The milliseconds per transaction values are correct, assuming the
  I/O duration has been recorded.

  Sponsored by:	Spectra Logic

  ------------------------------------------------------------------------
2015-03-02 21:00:54 +00:00
kib
de8b80a46a MFC r279367:
Fix typo.
2015-03-02 09:15:50 +00:00
ae
4cbe57cef8 MFC r279206:
In some cases soreceive_dgram() can return no data, but has control
  message. This can happen when application is sending packets too big
  for the path MTU and recvmsg() will return zero (indicating no data)
  but there will be a cmsghdr with cmsg_type set to IPV6_PATHMTU.
  Remove KASSERT() which does NULL pointer dereference in such case.
  Also call m_freem() only when m isn't NULL.

MFC r279209:
  soreceive_generic() still has similar KASSERT(), therefore instead of
  remove KASSERT(), change it to check mbuf isn't NULL.

PR:		197882
Sponsored by:	Yandex LLC
2015-03-02 07:51:14 +00:00
ngie
06e10c673b Regen src.conf(5) 2015-03-01 22:12:24 +00:00
ngie
0625beb8de MFC r278193:
Add MK_FILE to control whether or not to build file(1), libmagic(3), etc

Sponsored by: EMC / Isilon Storage Division
2015-03-01 22:07:54 +00:00
ngie
de8fb43ec9 MFC r278192:
Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

Sponsored by: EMC / Isilon Storage Division
2015-03-01 22:03:52 +00:00
ngie
9da1add171 MFC r278704:
Unbreak rcorder when MK_UNBOUND == no by moving local_unbound from REQUIRE:
in NETWORKING to BEFORE: in the script
2015-03-01 21:24:19 +00:00
ngie
e298a3e09f Unbreak rcorUnbreak rcorder when MK_UTX == no by moving utx from REQUIRE: in LOGIN to
BEFORE: in utx
2015-03-01 21:22:34 +00:00
ngie
b4b5cbeab3 MFC r278891:
Add the mnt_lockref field to the ddb(4) 'show mount' command

Differential Revision: https://reviews.freebsd.org/D1688
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon Storage Division
2015-03-01 21:03:34 +00:00
kib
76ac5da69f MFC r276949:
(only to ease merging of r279117).

MFC r279117:
Revert r276949 and redo the fix for PCIe/PCI bridges, which do not
follow specification and do not provide PCIe capability.
2015-03-01 10:39:19 +00:00
kib
861937e4a4 MFC r276948:
Print rid when announcing DMAR context creation.  Print sid when fault
occurs.
2015-03-01 10:35:54 +00:00
kib
28c8a09abb MFC r276867:
Fix DMAR context allocations for the devices behind PCIe->PCI bridges
after dmar driver was converted to use rids.  The bus component to
calculate context page must be taken from the requestor rid, which is
a bridge, and not from the device bus number.
2015-03-01 10:29:48 +00:00
mav
8882db8870 MFC r279276: Add checks for malloc() failures.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2015-03-01 09:29:59 +00:00
mav
47c76cda56 MFC r279277: Fix memory leak on incorrect initiator portal.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2015-03-01 09:28:39 +00:00
rstone
a206bae4b5 MFC r277649:
vmspace_release() may sleep if the last reference is being released,
   so add a WITNESS_WARN() to catch cases where it is called with a
   non-sleepable lock held.

   MFC after:    1 month
   Sponsored by: Sandvine Inc.
2015-03-01 04:39:07 +00:00
rstone
6d2b81bc2b MFC r272284
Fix integer truncation in affecting systat -ifstat

   The "systat -ifstat" command was using a u_int to store byte counters.
   With a 10Gbps or faster interface, this overflows within the default
   5 second refresh period.  Switch to using a uint64_t across the board,
   which matches the size used for all counters as of r263102.

   PR:           182448
   MFC after:    1 week
   Sponsored by: Sandvine Inc
2015-03-01 04:36:20 +00:00
rstone
4d61816598 MFC r265107
Be consistent with the whitespace in the rest of these files.

   X-MFC-With: r264007
2015-03-01 04:28:30 +00:00
rstone
d495e9b4cf MFC r264091
Correct a PCI enumeration bug introduced in r264011

   Ensure that first_func is set to 0 on every iteration of the PCI slot
   enumeration loop after the first.  There is a continue statement that would
   cause first_func to stay at 1 any PCI device where slot 0 has no functions
   until we find a slot that does have a function.  This would cause us to
   not enumerate the first PCI function on the device.

   Credit to markj@ for spotting the bug.

   X-MFC-With: r264011
2015-03-01 04:26:47 +00:00
rstone
0b55a8c80a MFC r264007,r264008,r264009,r264011,r264012,r264013
MFC support for PCI Alternate RID Interpretation.  ARI is an optional PCIe
feature that allows PCI devices to present up to 256 functions on a bus.
This is effectively a prerequisite for PCI SR-IOV support.

r264007:
   Add a method to get the PCI RID for a device.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264008:
   Re-implement the DMAR I/O MMU code in terms of PCI RIDs

   Under the hood the VT-d spec is really implemented in terms of
   PCI RIDs instead of bus/slot/function, even though the spec makes
   pains to convert back to bus/slot/function in examples.  However
   working with bus/slot/function is not correct when PCI ARI is
   in use, so convert to using RIDs in most cases.  bus/slot/function
   will only be used when reporting errors to a user.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264009:
   Re-write bhyve's I/O MMU handling in terms of PCI RID.

   Reviewed by:  neel
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264011:
   Add support for PCIe ARI

   PCIe Alternate RID Interpretation (ARI) is an optional feature that
   allows devices to have up to 256 different functions.  It is
   implemented by always setting the PCI slot number to 0 and
   re-purposing the 5 bits used to encode the slot number to instead
   contain the function number.  Combined with the original 3 bits
   allocated for the function number, this allows for 256 functions.

   This is enabled by default, but it's expected to be a no-op on currently
   supported hardware.  It's a prerequisite for supporting PCI SR-IOV, and
   I want the ARI support to go in early to help shake out any bugs in it.
   ARI can be disabled by setting the tunable hw.pci.enable_ari=0.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264012:
   Print status of ARI capability in pciconf -c

   Teach pciconf how to print out the status (enabled/disabled) of the ARI
   capability on PCI Root Complexes and Downstream Ports.

   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264013:
   Add missing copyright date.

   MFC after:    2 months
2015-03-01 04:22:06 +00:00
dim
058f9df187 MFC r279312:
Fix a number of -Wcast-qual warnings under sys/arm.  No functional
change.

Submitted by:	andrew
2015-03-01 01:08:14 +00:00
dim
d160004487 MFC r279311:
In sys/arm/ti/am335x/am335x_rtc.c, fix a clang 3.6.0 warning about
am33x_rtc_softc::sc_irq_res (which is an array) never being NULL.

Submitted by:	andrew
2015-03-01 00:57:01 +00:00
dim
0611c6ea5b MFC r279307:
Make libcxxrt's parsing of DWARF exception handling tables work on
architectures with strict alignment, by using memcpy() instead of
directly reading fields.

Reported by:	Daisuke Aoyama <aoyama@peach.ne.jp>
Reviewed by:	imp, bapt
Tested by:	bapt
Differential Revision: https://reviews.freebsd.org/D1967

MFC r279310:

Since newer versions of compiler-rt require unwind.h, and we want to use
the copy in libcxxrt for it, fix the arm-specific header to define the
_Unwind_Action type.

Submitted by:	andrew
2015-03-01 00:47:37 +00:00
hselasky
c3632bcc50 MFC r279233:
Ensure that the XHCI driver will refresh the control endpoint settings
when re-enumerating a FULL speed device. Else the wrong max packet
setting might be used when trying to re-enumerate a FULL speed device.
2015-02-27 12:20:03 +00:00