198224 Commits

Author SHA1 Message Date
ian
a59279fefd MFC r276206:
For data and instruction prefetch aborts, call the same handler in the C
  code, passing a 0/1 flag that indicates which type of abort it was.  This
  sets the stage for unifying the handling of page faults in a single routine.
2015-02-12 19:35:46 +00:00
ian
564d364c54 MFC r276196, r276197, r276198, r276202, r276203, r276204:
Change the style of the DO_AST macro to match the others

  Remove _PROF_PROLOGUE from the EENTRY() macros.

  Stylish changes... put tabs where they need to be in macros, move lines
  around so that related things are more grouped together, rewrite comments.

  Fix the GLOBAL macro so it works (upper vs lowercase X), use it in _EENTRY.

  Create 'L' variants of all the ENTRY macros for file-static/local symbols.
2015-02-12 19:32:07 +00:00
jhb
39fe100d12 MFC 277710:
Pass a valid Dx state variable to PCIB_POWER_FOR_SLEEP() in pcib_resume()
instead of NULL.
2015-02-12 17:58:02 +00:00
ian
ea4d7bbc3c MFC r276191: Display correct value for cache level-of-coherency (needs +1). 2015-02-12 17:01:54 +00:00
ae
2d05aee53a MFC r278268:
Print IPv6 address in log message instead of address of pointer.
2015-02-12 11:10:07 +00:00
dim
22fe1f6542 MFC r278004:
Constify a number of accesses in drm2's radeon drivers to avoid
-Wcast-qual warnings.  No functional change.

Reviewed by:	dumbbell
Differential Revision: https://reviews.freebsd.org/D1727

MFC r278438:

After r278004 was committed, Bruce Evans noted that the casts were
actually completely unnecessary, here:

https://lists.freebsd.org/pipermail/svn-src-all/2015-February/098478.html

Remove the casts, and just assign &xxx_io_mc_regs[0][0] directly.

Reviewed by:	dumbbell
Differential Revision: https://reviews.freebsd.org/D1748
2015-02-12 07:21:22 +00:00
ian
a9d7d10c20 MFC r276187, r276190, r271422:
Rename pmap_kenter_temp to pmap_kenter_temporary to be consistent with the
  other architectures with this function.

  Eliminate unnecessary references to pte.h internals by using the standard
  pmap_kenter_temporary() to map pages while dumping.

  Cleanup up ARM *frame structures.
2015-02-12 04:15:55 +00:00
ian
dff1ee7f45 MFC r271394, r271398:
Add more register values to armreg.h and remove CPU_CONTROL_32BP_ENABLE
  from asm.h as they were already defined in armreg.h.

  Unify interrupts bit definition and usage. While here remove PSR_C_bit.
2015-02-12 03:50:33 +00:00
ian
0a5ffc4568 MFC r272519:
Add movw and movt relocations to the list of relocations against function
  names that must not be adjusted.
2015-02-12 03:16:57 +00:00
ian
4b6f93ca03 MFC r276162: Don't assume required FDT properties are present. 2015-02-12 00:35:58 +00:00
ian
4830d3556d MFC r275779, r275963, r276101, r276161, r276297:
Move ofw_cpu.c to sys/dev/ofw so that it can be used by other
  architectures.

  Add driver for CPU frequency/voltage control on the Raspberry Pi.

  On initialization, do not use bcm_mbox_intr() to read the pending messages.
  This fixes the hang that happens on boot while initializing the cpufreq on
  Raspberry Pi.
2015-02-12 00:25:33 +00:00
ian
660c9e142d MFC r276145: Convert lingering NO_FORTH conditionals to test MK_FORTH. 2015-02-11 23:05:58 +00:00
ian
f8178723e9 MFC r276079, r276087:
Add a divisor parameter to twiddle() so that callers can request that
  output only happen on every Nth call.

  Add a new loader(8) variable, twiddle_divisor, allowing control over the
  output frequency of the "twiddle" IO progress indicator.
2015-02-11 22:55:24 +00:00
ian
ba124c2ef3 MFC r276047: Add -march=armv7a to the kernel compile for all v7a ARM systems. 2015-02-11 22:47:48 +00:00
ian
fc47f4b0ff MFC r266943, r266950, r267390:
Add support for Exynos 5420 Octa - 8-core (big.LITTLE) ARM machine
  Enable SMP for both Exynos5 models we support.
2015-02-11 22:35:32 +00:00
ngie
0a3cb57fd7 Remove etc/rc.d/accounting from FILES 2015-02-11 09:16:51 +00:00
ngie
8d9631da62 MFC r277736:
r277736:

  Honor MK_ACCT with etc/rc.d/accounting

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 09:16:17 +00:00
kib
a85afe0d7d MFC r278209:
Add ddb command 'show clocksource'.
2015-02-11 09:12:10 +00:00
kib
7ca5c317ae MFC r277828:
Update mtime for tmpfs files modified through memory mapping.

MFC r277969:
Update both ctime and mtime for writes to tmpfs files.

MFC r277972:
Remove single-use boolean.

MFC r278151:
Remove duplicated assignment.
2015-02-11 09:02:21 +00:00
ngie
f5a4512544 MFC r277741:
r277741:

  Respect MK_KERBEROS with etc/rc.d/ipropd_master and etc/rc.d/ipropd_slave

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 09:00:22 +00:00
ngie
ffd518acc5 MFC r278182:
r278182:

  Conditionalize building radius support into libpam, ppp, etc via
  MK_RADIUS_SUPPORT

  Sponsored by: EMC / Isilon Storage Division
2015-02-11 08:52:29 +00:00
bapt
a0d89550fe MFC: r278173
Test the return of fetchParseURL(3)

CID:		1125811
2015-02-11 08:20:07 +00:00
bapt
1e06417cb0 MFC: r278172
Plug resources leak

  CID:          1125813
  CID:          1125807
  CID:          1125808
2015-02-11 08:07:32 +00:00
ngie
d2a14186ae Regen src.conf(5) 2015-02-11 07:53:02 +00:00
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