198421 Commits

Author SHA1 Message Date
ngie
63d67d50be MFC r277678:
r277678:

  Add MK_CCD knob for building and installing ccd(4), ccdconfig, etc

  Sponsored by: EMC / Isilon Storage Division
2015-02-13 21:32:05 +00:00
dim
4f93783a26 MFC r271931:
Add a few missing llvm/clang patches, update the other ones to be able
to apply with the same patch options onto a fresh upstream llvm/clang
3.4.1 checkout, and use approximately the same header tempate for them.
2015-02-13 21:31:43 +00:00
ian
ee9ba339b2 MFC r272605: Use -mfpu=none when building arm kernels. 2015-02-13 21:26:45 +00:00
ngie
3bd87ad25c MFC r277677:
r277677:

  Add MK_BSDINSTALL knob for building and installing bsdinstall

  Sponsored by: EMC / Isilon Storage Division
2015-02-13 21:24:32 +00:00
ngie
9ed52cebd8 MFC r277676:
r277676:

  Add MK_TALK knob for building the talk and talkd

  Sponsored by: EMC / Isilon Storage Division
2015-02-13 21:19:54 +00:00
dim
4c104a70d5 MFC r271025, r271029, r271030 (by sbruno):
MFV:  Only emit movw on ARMv6T2

Building for the FreeBSD default target ARMv6 was emitting movw ASM on certain
test cases (found building qmake4/5 for ARM).  Don't do that, moreover, the AS
in base doesn't understand this instruction for this target.  One would need
to use --integrated-as to get this to build if desired.

http://llvm.org/viewvc/llvm-project?view=revision&revision=216989

Submitted by:	ian
Reviewed by:	dim
Obtained from:	llvm.org
2015-02-13 21:19:02 +00:00
ian
2210ee3484 MFC r277355: For armv6 builds, add -mfloat-abi=softfp. 2015-02-13 20:49:49 +00:00
ian
0d83b78040 MFC r277306, r277307, r277346:
Add defines for SDHCI 3.0 controllers.

  Add a new SDHCI quirk, SDHCI_QUIRK_DONT_SET_HISPD_BIT.

  Save the command-and-flags value into shadow register when it is written.
2015-02-13 20:38:39 +00:00
ian
f271f6c323 MFC r277305: Minor cleanups, comment changes. 2015-02-13 20:23:06 +00:00
ian
f3edb98cc7 MFC r277265: Enable the snoop control unit during MP startup 2015-02-13 20:21:13 +00:00
ian
0b254d1cdd MFC r277037: Enable ALT_BREAK_TO_DEBUGGER for rpi. 2015-02-13 20:18:29 +00:00
ian
d546a4529c MFC r276003:
Start to clean up the armv6 kernel configs by reducing the diff between
  them in the first sections and the later FDT support.
2015-02-13 20:15:10 +00:00
ian
fa148a0f4d MFC r263245, r269233, r267101, r275961: Config style cleanups.
Some of these are effectively record-only merges, because the actual
merge happened during conflict resolution of some prior merge.
2015-02-13 20:05:37 +00:00
ian
522359f373 MFC r271220:
Create a common i.MX53 config and use it with the two existing i.MX53 boards.
2015-02-13 19:52:16 +00:00
sbruno
ea2d650270 MFC 272315 272757 274091 274902
for real this time

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 19:06:22 +00:00
sbruno
2da30ef0ce Revert r278650. Definite layer 8 bug.
Submitted by:	dhw and Thomas Mueller <tmueller@sysgo.com>
2015-02-13 18:45:44 +00:00
ian
be0b7de958 MFC r275962: Clean up style of CUBIEBOARD2 config. 2015-02-13 18:37:22 +00:00
ian
895492b87e MFC r277028, r277038:
Check for and handle failures of bus_dmamap_load().
 Handle dma mappings with more than one segment for rpi sdhci.
2015-02-13 18:16:08 +00:00
ian
3e6b663e1f MFC r277027:
Handle the possibility that SDHCI_PLATFORM_START_TRANSFER() can fail.
2015-02-13 18:13:42 +00:00
ian
432a94e7fe MFC r277026: Rate-limit error logging to 5 lines per second. 2015-02-13 18:12:30 +00:00
ian
7a36a698cb MFC r277025: Fix an off-by-one in ppsratecheck(). 2015-02-13 18:10:06 +00:00
ian
64831f08c1 MFC r276985:
Store the shadow command/mode register in the softc, not a local static var.
2015-02-13 18:03:50 +00:00
ian
e11cd4215f MFC r276803, r276808:
Add accessors for the ARM CP15 performance monitor registers.
  Move the inclusion of cpu-v6.h inside the #ifdef _KERNEL block.
2015-02-13 17:53:11 +00:00
ian
45adae0187 MFC r267719:
Remove the incomplete Tegra 2 code, nobody was maintaining it. The AC100
  never booted to single user mode.  (And now it is blocking the ability
  to MFC other changes since it is gone from -current and hasn't kept up
  with the other changes).
2015-02-13 17:36:41 +00:00
ian
68023855e8 MFC r266083, r267597:
Give suitably-endowed ARMs a register similar to the x86 TSC register.
2015-02-13 16:21:36 +00:00
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