198200 Commits

Author SHA1 Message Date
ngie
4b091326f3 MFC r264515:
r264515 (by imp):

  Document WITHOUT_GPL_DTC too.
2015-02-11 07:38:07 +00:00
ngie
22f4a9ff52 MFC r277728:
r277728:

  Add MK_AUTOFS knob for building and installing autofs(4), et al

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 07:30:20 +00:00
ngie
a01a4bc555 MFC r277727:
r277727:

  Add MK_BHYVE knob for building and installing bhyve(4), et al

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 07:21:16 +00:00
ngie
e146e39f9f MFC r277725:
r277725:

  Add MK_HAST knob for building and installing hastd(8), et al

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 07:12:00 +00:00
ngie
bf4551aa32 MFC r277675,r277726,r278070:
r277675:

  Add MK_ISCSI knob for building the iscsi initiator, iscsi daemon, kernel
  modules, etc

  Sponsored by: EMC / Isilon Storage Division

r277726:

  Build sbin/iscontrol again if MK_ISCSI != no

  Pointyhat to: me

r278070:

  Remove duplicate MK_ISCSI block and sort the conditional blocks so this error
  won't crop up again in the future

  Reported by: gjb
2015-02-11 07:08:32 +00:00
ngie
b7391dae4a MFC r277663:
r277663:

  Add MK_EE knob to control installing edit, ee, etc

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 06:57:20 +00:00
cy
8eb333920f MFC r277854:
ipfilter 5.1.2 (vs 4.1.28 in previous releases of FreeBSD) stores IPv4
and IPv6 rules in a single table. ipf -6 -Fa will flush the whole table,
including IPv4 rules. This patch removes the redundant ipf -I -6 -Fa
statement.

PR:		188318
2015-02-11 02:43:58 +00:00
marius
38c1f41175 MFC: r276469
- Switching the mode of Ricoh R5CE823 to SD2.0 causes their PCI device ID
  to change to 0xe822, which may be persistent across reboots and, thus,
  confuse other OSes. Therefore, restore the original mode and frequency
  setting on detach and shutdown.
- Report Ricoh R5CE822 as such.
- According to Linux, Ricoh R5CE822 also need SDHCI_QUIRK_LOWER_FREQUENCY.
- Nuke an unused softc member.
2015-02-10 21:44:28 +00:00
jhb
e15ed53e77 MFC 277709:
Use an sbuf to generate the output of the net.inet.tcp.hostcache.list
sysctl to avoid a possible buffer overflow if the cache grows while the
text is being generated.

PR:		172675
2015-02-10 21:41:56 +00:00
marius
ce996f8275 MFC: r273050
class, subclass and progif were never used, so don't bother setting
them.
2015-02-10 21:40:31 +00:00
jhb
9809511c44 MFC 273800:
Rework virtual machine hypervisor detection.
- Move the existing code to x86/x86/identcpu.c since it is x86-specific.
- If the CPUID2_HV flag is set, assume a hypervisor is present and query
  the 0x40000000 leaf to determine the hypervisor vendor ID.  Export the
  vendor ID and the highest supported hypervisor CPUID leaf via
  hv_vendor[] and hv_high variables, respectively.  The hv_vendor[]
  array is also exported via the hw.hv_vendor sysctl.
- Merge the VMWare detection code from tsc.c into the new probe in
  identcpu.c.  Add a VM_GUEST_VMWARE to identify vmware and use that in
  the TSC code to identify VMWare.
2015-02-10 16:34:42 +00:00
hselasky
cae60585e2 MFC r278105:
Separate out detection of prevent and allow medium removal quirk.

PR:		185747
2015-02-10 13:45:55 +00:00
hselasky
eaff30fc5d Append to the MFC of r278103 that we also pass along the M_FLOWID flag.
Sponsored by:	Mellanox Technologies
2015-02-10 13:43:23 +00:00
hselasky
4d9a35d031 MFC r278103:
The flowid and hashtype should be copied from the originating packet
when fragmenting IP packets to preserve the order of the packets in a
stream. Else the resulting fragments can be sent out of order when the
hardware supports multiple transmit rings.

Sponsored by:	Mellanox Technologies
2015-02-10 13:29:44 +00:00
hselasky
ae29368fe4 MFC r278074:
Optimise allocation of USB DMA structures. By default don't double map
allocations if only one element should be allocated per page
cache. Make one allocation per element compile time configurable. Fix
a comment while at it.
2015-02-10 13:25:29 +00:00
hselasky
811636d364 MFC r278071:
Section 3.2.9 in the XHCI specification about control transfers says
that we should use a normal-TRB if there are more TRBs extending the
data-stage TRB. Add a dedicated state bit to the internal USB transfer
flags to handle this case.
2015-02-10 13:16:53 +00:00
dim
f35a53399f MFC r278348:
Fix a number of -Wcast-qual warnings in ath's ar9300_attach.c, by making
the ia_array field of struct ar9300_ini_array const, and removing the
const-dropping casts.  No functional change.

Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D1725
2015-02-10 07:35:16 +00:00
jamie
f8ff07ebef MFC r278323:
Add mount.procfs jail parameter, so procfs can be mounted when a prison's
  root is in its fstab.

  Also fix a typo while I'm at it.

PR:		197237 197066
2015-02-10 01:05:51 +00:00
brooks
715b3cae1f When upgrading, install the ELF runtime linkers before libraries.
This is required to prevent problems with nss modules that use libthr when
upgrading from releases prior to 10.1.

PR:		197366
Differential Revision:	D1790
Reviewed by:	cperciva
Sponsored by:	DARPA, AFRL
2015-02-09 09:22:47 +00:00
mav
4bebe71c84 MFC r278111: Retry indefinitely on SCSI BUSY status from VMware disks and CDs.
VMware returns BUSY status when storage has transient connectivity issues.
It is often better to wait and let VM admin fix the problem then crash.
2015-02-09 09:10:46 +00:00
mav
e82104dd18 MFC r278098, r278099: Add some fields and constants from RFC7144. 2015-02-09 09:08:55 +00:00
dim
66970811c1 MFC r278297:
Fix two clang 3.6.0 warnings in usr.sbin/syslogd:

usr.sbin/syslogd/syslogd.c:1023:10: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
		    f->f_prevline && !strcmp(msg, f->f_prevline) &&
		    ~~~^~~~~~~~~~
usr.sbin/syslogd/syslogd.c:1178:16: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
	} else if (f->f_prevline) {
	       ~~  ~~~^~~~~~~~~~

In both cases, the f_prevline field of struct filed is a char array, so
it can never be null.  Remove the checks.

Reviewed by:	jilles
Differential Revision: https://reviews.freebsd.org/D1716
2015-02-09 07:52:45 +00:00
dim
45a867d429 MFC r278222:
Mark typedefs for manually implementing _Static_assert() as unused, so
they won't show up unecessarily for -Wunused-local-typedefs.
2015-02-09 07:49:41 +00:00
dim
7ddbf9a99c MFC r277953:
Fix a -Wcast-qual warning in smbfs_subr.c, by using __DECONST.  No
functional change.
2015-02-09 07:45:46 +00:00
rpaulo
9a363224b6 MFC r277958, r278061:
ti_pruss: make sure the mmap'ed memory region is uncacheable.

 am335x_clk_pruss_activate(): use the L3F clock.
2015-02-09 02:49:10 +00:00
marius
6f2d272691 MFC: r276377, r276714
- No longer exclude malo(4) and mwl(4), they have been fixed in r275870
  (MFCed to stable/10 in r278415) and r275871 (MFCed to stable/10 in
  r278416) respectively to build with PAE enabled.
- For the PAE kernel configuration file, no longer exclude devices that
  are known to be 64-bit DMA clean from amd64.
2015-02-08 23:09:01 +00:00
marius
649b6c7e5b MFC: r274054 (missed in r276076)
Fix XEN kernel build.
2015-02-08 23:04:32 +00:00
jilles
0bf8cb7b51 MFC r276359: symlink(7): Note that stat(1) does not follow symlinks by
default.
2015-02-08 22:46:29 +00:00
marius
bded83f835 MFC: r275871
Update the use of bus space macros to be more correct.
2015-02-08 22:29:57 +00:00
jilles
25afd7ae71 MFC r268857: ttyname(3): Fix EBADF/ENOTTY error descriptions.
Also, make sure to document the return values and errors for all three
functions in the man page.

PR:		191931
2015-02-08 22:29:06 +00:00
marius
d13c2ab3c3 MFC: r275870
Use the correct macro for listing the maximum bus space size.
2015-02-08 22:27:17 +00:00
jilles
fb8fcd2a04 MFC r278038: ttyname_r(): Return actual error, not always [ENOTTY].
Adjust the test that used to fail because of this bug.

PR:		191936
2015-02-08 22:24:03 +00:00
peter
969542edef Repair ia64 build after r278347 - remove const from set_mcontext 2015-02-08 22:17:20 +00:00
bapt
274501ab1e MFC: r265863
libedit: add H_SAVE_FP which saves history to a file pointer.

H_SAVE_FP is similar to H_SAVE but operates on a FILE* instead of a filename.
This is useful when operating in capability mode.

Reviewed by:	christos@NetBSD.org, pfg
2015-02-08 22:11:24 +00:00
jilles
cd2062bcd8 MFC r277862: sem_post(): Fix and document semaphore value overflow error.
The error code is per Austin Group issue #315.

I provided different wording for the manual page change.

Submitted by:	pluknet
2015-02-08 21:58:25 +00:00
marius
ff1f47aebc MFC: r266744, r267712, r276351, r277043
- Add PCI ID for AMT based serial interface found on the Lenovo T61.
- add support for MosChip MCS9922...  This is found on an ExpressCard.. [1]
- Add PCI ID for the Oxford Semiconductor OXPCIe952 device.

PR:	186891 [1]
2015-02-08 21:41:18 +00:00
marius
182ebd1941 MFC: r276344
- Const'ify the ahci_ids table.
- Use DEVMETHOD_END.
- Use NULL instead of 0 for pointers.
2015-02-08 21:31:40 +00:00
marius
78c1d9653a MFC: r276313
Const'ify a firmware image missed in r251142.
2015-02-08 21:12:48 +00:00
marius
6fdf43daea MFC: r276299
- Make PCI_QUIRK_MSI_INTX_BUG work by using the ID of the actual PCI device
  for the lookup.
- For devices affected by PCI_QUIRK_MSI_INTX_BUG, ensure PCIM_CMD_INTxDIS
  is cleared when using MSI/MSI-X.
- Employ PCI_QUIRK_MSI_INTX_BUG for BCM5714(S)/BCM5715(S)/BCM5780(S) rather
  than clearing PCIM_CMD_INTxDIS unconditionally for all devices in bge(4).
2015-02-08 20:44:44 +00:00
kib
9dc38ea5dc MFC r278001:
Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as const.
2015-02-07 08:47:15 +00:00
kib
834093cd48 MFC r278000:
Update directory times immediately after an entry is created or
removed.
2015-02-07 08:42:11 +00:00
kib
b02e8ddcdf MFC r277970:
Check for the cycle in the chain of dependency for priority-inheritance
mutexes.
2015-02-07 08:35:18 +00:00
kib
822308b9d8 MFC r277642:
Provide individual prototype and generate macros for the red-black tree.
2015-02-07 08:14:20 +00:00
gjb
99687cf094 Document a failure case when using freebsd-update
to upgrade systems that use nss_ldap.

Sponsored by:	The FreeBSD Foundation
2015-02-06 19:44:26 +00:00
jhb
865011c5e6 MFC 276065:
Explicitly treat timeouts when waiting for IBF or OBF to change state as an
error.  This fixes occasional hangs in the IPMI kcs thread when using
ipmitool locally.
2015-02-06 18:41:57 +00:00
jhb
1fa38dee26 MFC 277714:
natd(8) will work with an unconfigured interface and effectively not do
anything until the interface is assigned an address.  This fixes
ipfw_nat to do the same by using an IP of INADDR_ANY instead of
aborting the nat setup if the requested interface is not yet configured.
2015-02-06 18:13:29 +00:00
jhb
b2ec547430 MFC 275808:
Check for SS_NBIO in so->so_state instead of sb->sb_flags in
soreceive_stream().
2015-02-06 15:53:13 +00:00
kib
d00b9ac996 MFC r278145:
Fix use after free in pipe_dtor().
2015-02-06 09:02:10 +00:00
kib
e0c8cbf143 MFC r277936:
Use powerof2().  Remove single-use variable.
2015-02-06 08:58:06 +00:00
hselasky
88f22084bd MFC r277136:
Resolve a special case deadlock: When two or more threads are
simultaneously detaching kernel drivers on the same USB device we can
get stuck in the "usb_wait_pending_ref_locked()" function because the
conditions needed for allowing detach are not met.

While at it ensure that "flag_iserror" is only written when "priv_mtx"
is locked, which is protecting it.
2015-02-05 21:18:44 +00:00