198246 Commits

Author SHA1 Message Date
ian
180276472c MFC r276666:
Eliminate uninitialized variable warnings in kernel and module builds when
  building with gcc 4.2
2015-02-13 16:08:45 +00:00
ian
7bafde0767 MFC r276645:
Don't allow clang to use fpu instructions or registers in kernel modules.
2015-02-13 15:41:28 +00:00
ian
8489ff3c1b MFC r276642, r276644:
Remove commented-out options SMP and APIC_IO from old arm boards that will
  never be able to support smp.

  Switch all arm kernels with option SMP to use SCHED_ULE instead of 4BSD.
2015-02-13 15:32:31 +00:00
ian
2da29ea176 MFC r266647, r270912, r273089:
Reduce the diff between the PandaBoard and BeableBone kernel configs

  Resync comments about scbus and pass for life after AHCI joined CAM.

  Uncomment general options from the Pandaboard config. These are in other
  configs and there is no reason for them not to be here.
2015-02-13 15:27:46 +00:00
ian
f406596440 MFC r276632: Create a custom /boot/defaults/loader.conf for ARM. 2015-02-13 15:16:55 +00:00
kib
000b391a47 MFC r278313:
Fully initialize allocated memory for the new barrier.
2015-02-13 08:42:01 +00:00
kib
a6e5411cef MFC r277922:
When mounting SU-enabled mount point, wait until the softdep_flush()
thread started and incremented the stat_flush_threads.

MFC r278257:
Partially revert r277922.
2015-02-13 08:40:10 +00:00
hselasky
baa2d40228 MFC r278503:
Revert r274918 and make a better solution. Poll the synchronisation
endpoint less frequently to make the sample rate adjustment more
accurate. This should resolve problems with the DN32-USB module for
Midas audio systems and possibly other similar products from Klark
Teknik.
2015-02-13 07:51:15 +00:00
hselasky
5bf9aa9b6f MFC r278477:
Fix DMA address casts.
2015-02-13 07:48:54 +00:00
rpaulo
f8653b32cf MFC r278302:
Don't add static IPv6 routes when to all FIBs when
 net.add_addr_allfibs is 0.
2015-02-13 04:50:39 +00:00
ian
ce06bc5045 MFC r272356, r275639, r276638:
Split syscall handling out to a separate file.

  Include sys/kernel.h to pick up the definition of hz in syscall.c

  Add a new trap-v6.c which has support for all armv7 exceptions.
2015-02-13 02:02:12 +00:00
ian
9165bfa9f7 MFC r276525, r276596:
Put in a workaround for bug 196407 (arm modules cause crashes & panics).
  (Don't allow movw/movt insn in modules.)

  Fix alignment directives in arm asm code after clang 3.5 import.
2015-02-13 00:49:47 +00:00
gjb
04e6c1eb4c MFC r278526:
Fix a rendering issue in the nullfs(5) manual page.

Sponsored by:	The FreeBSD Foundation
2015-02-13 00:41:03 +00:00
sbruno
538802789a MFC 272315 272757 274091 274902
r272315
Explicitly return None for negative event indices.  Prior to this,
eventat(-1) would return the next-to-last event causing the back button
to cycle back to the end of an event source instead of stopping at the
start.

r272757
Add schedgraph traces for callout handlers.  Specifically, a callwheel logs
a running event each time it executes a callout function.  The event
includes the function pointer, argument, and whether or not it was run from
hardware interrupt context.  The callwheel is marked idle when each handler
completes.  This effectively logs the duration of each callout routine in
the graph.

r274091
Bind Ctrl-Q as a global hotkey to exit.  Bind Ctrl-W as a hotkey to close
dialogs.

r274902
Add a new thread state "spinning" to schedgraph and add tracepoints at the
start and stop of spinning waits in lock primitives.

Reviewed by:	jhb
2015-02-13 00:29:57 +00:00
ian
914dd97ca5 MFC r276519:
Define a WFI macro that expands to the right form of wait-for-interrupt
  depending on the architecture.
2015-02-13 00:17:22 +00:00
ian
4b65730f6b MFC r276518: Rework vfp code so it will compile on clang 3.4 and 3.5. 2015-02-13 00:15:13 +00:00
ian
0a793f5df0 MFC r276444, r276445, r276470:
Fix a paste-o in dcache_inv_pou_all().

 Change the order of operations for the initial cache setup.

 A couple small fixes to make clang 3.5 happy... Move END(sigcode)
 and other misplace ENTRY/END macros.
2015-02-13 00:12:21 +00:00
ian
4427ba1cd2 MFC r276394, r276397:
Add armv6 implementations of the startup-time cache maintenence functions.

  Create a new locore.S that includes locore-v4 or locore-v6 as needed.
2015-02-13 00:06:07 +00:00
ian
975bfc4e8b MFC r276395, r276396: Rename locore.S to locore-v4.S and add a new locore-v6.S. 2015-02-12 21:20:28 +00:00
ian
44aea37041 MFC r276306: Use proper markup for quotes. 2015-02-12 21:15:28 +00:00
ian
4ce6bafee9 MFC r276247, r276333, r276334, r276335, r276336, r276340, r276350:
Include acle-compat.h directly rather than getting it via sysreg.h.

  Add new code to read and parse cpu identification data using the new CPUID
  mechanism defined for armv7.

  Add new TLB and cache maintainence functions for armv6 and armv7.

  Eliminate an unused macro whose name clashes now with a function in the
  new cpu-v6.h

  Add cache maintenance functions which will be used by startup code to
  initially set up the MMU.

  Fix a "decl is not a prototype" error noticed by gcc (but not clang).

  Update comments (r4 is not used anywhere), use non-profiling entry macros.

  Add arm option ARM_NEW_PMAP, to allow us to begin adding the new pmap
  code alongside the existing implementation

  Add armv6 implementations of cache operations to avoid duplication
2015-02-12 21:10:24 +00:00
ian
997bc7a02b MFC r272209, r272300, r276212, r276213:
Add machine/sysreg.h to simplify accessing the system control coprocessor
  registers and use it in the ARMv7 CPU functions.

  Add macros for asm barrier instructions with arch-specific implementations.

  Define only the CP15 register operations that are valid for the architecture.
2015-02-12 19:45:07 +00:00
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