198239 Commits

Author SHA1 Message Date
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
jhb
1b3da1fcae MFC 274402:
Add device ID for the T502-BT (dual-port 1G) adapter.
2015-02-05 20:59:03 +00:00
hselasky
34369aa374 MFC r277179, r277199 and r277391:
Add a kernel function to delist our kernel character devices, so that
the device name can be re-used right away in case we are destroying
the character devices in the background.
2015-02-05 20:49:13 +00:00
hselasky
181bf69d80 MFC r266969 and r276717:
Add 64-bit DMA support in the XHCI controller driver.
- Fix some comments and whitespaces while at it.
- Add support for PAE.
2015-02-05 20:03:02 +00:00
gjb
8800e37bec Reapply 'Open Issues' to the 10.1-RELEASE errata page,
which was only added to releng/10.1, not stable/10.

Sponsored by:	The FreeBSD Foundation
2015-02-05 16:31:49 +00:00
gjb
47d966effe Apply r278265 from head:
Security Advisory information is included on several
pages in the release notes.  Rather than duplicating
the information between various files, add two new
files to include in all pages that currently display
the information.

Sponsored by:	The FreeBSD Foundation
2015-02-05 16:28:18 +00:00
gjb
8599898fbb Add an entity to use to link to SAs and ENs.
Update the Security Advisories and Errata Notices
section to use the new entity.
Prefer https:// for other URLs.

Sponsored by:	The FreeBSD Foundation
2015-02-05 14:12:05 +00:00
gjb
35b84cbc9e Fill in the Security Advisories and Errata Notices sections.
Sponsored by:	The FreeBSD Foundation
2015-02-05 13:53:31 +00:00
gjb
96fe6d92bc MFC [1] r278115, r278116:
r278115:
  Move the 'Upgrading from Previous Releases of FreeBSD'
  section to the top of the file, following the introduction.

 r278116:
  Overhaul the relnotes page to reorganize the sections.

  With the previous layout, the majority of the release
  notes were categorized under one main "What's New"
  section, which in addition to making the page difficult
  to parse relevant bits, also had a few rendering issues,
  such as 'Note' blocks visually not appearing as if they
  pertain to a particular change.

  This change removes the "What's New" section, integrating
  it with the introduction.  In addition, each section now
  provides a brief description of its contents, broken down
  further into a subsection for each "topic", making it much
  easier to find a specific topic in the page.

[1] This is a direct commit, not an MFC.

Sponsored by:	The FreeBSD Foundation
2015-02-05 13:07:41 +00:00
gjb
46eddd6366 MFC r278101 (hrs):
Add a toc.section.depth=3 parameter to use the same
  ToC depth as DocBook DSSSL stylesheet.

Sponsored by:	The FreeBSD Foundation
2015-02-05 11:54:34 +00:00
ngie
a5b12ae122 MFC r277730:
r277730:

  Honor MK_ACPI in etc/devd and etc/rc.d

  Sponsored by: EMC / Isilon Storage Division
2015-02-05 10:36:38 +00:00
ngie
cf206fc8f2 MFC r270028:
r270028:

  Make the USB and ZFS devd configuration files optional depending on the
  values of MK_USB/MK_ZFS

  Making zfs.conf optional resolves PR # 186971

  PR: 186971
  Phabric: D606
  Approved by: jmmv (mentor)
  Sponsored by: EMC / Isilon Storage Division
2015-02-05 10:21:21 +00:00