]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r266411:
kib [Sun, 25 May 2014 00:57:07 +0000 (00:57 +0000)]
MFC r266411:
Fix LD_LIBMAP.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266640 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFH (r266291): look for root certs in /usr/local first
des [Sat, 24 May 2014 22:50:58 +0000 (22:50 +0000)]
MFH (r266291): look for root certs in /usr/local first

git-svn-id: svn://svn.freebsd.org/base/stable/10@266632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265689:
mav [Sat, 24 May 2014 10:44:40 +0000 (10:44 +0000)]
MFC r265689:
Import adapted OpenSolaris' thread pool API implementation.

The thread pool is used by libzfs to implement parallel disk scanning.
Without this change our dummy wrapper made `zpool import ZZZ` command to
scan all disks sequentially from the single thread when searching for pools.
This change makes it use two threads per CPU, same as in OpenSolaris.

On system with 200 HDDs this change reduces ZFS pool import time from 35
to 22 seconds.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265821:
mav [Sat, 24 May 2014 10:41:37 +0000 (10:41 +0000)]
MFC r265821:
Comment out some pointless device open/close around reading device IDs.

FreeBSD ZFS port unlike OpenSolaris does not use device IDs, and does not
implement respective devid_*() fuctions.  It is pointless to open devices
just to close them back immediately.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266320:
mav [Sat, 24 May 2014 10:37:56 +0000 (10:37 +0000)]
MFC r266320:
Add -o option to gstat to display "other" operatins (e.g. BIO_FLUSH).

git-svn-id: svn://svn.freebsd.org/base/stable/10@266610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266319:
mav [Sat, 24 May 2014 10:20:56 +0000 (10:20 +0000)]
MFC r266319:
Make GEOM DISK to account also BIO_FLUSH operations.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266491:
kib [Sat, 24 May 2014 09:50:10 +0000 (09:50 +0000)]
MFC r266491:
Remove redundand loop.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agodrm/radeon: Add 32bit ioctls support
dumbbell [Fri, 23 May 2014 19:43:20 +0000 (19:43 +0000)]
drm/radeon: Add 32bit ioctls support

This allows to run 32bit applications on a 64bit host. This was tested
successfully with Wine (emulators/i386-wine-devel) and StarCraft II.

Submitted by: Jan Kokemüller <jan.kokemueller@gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@266594 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 260802,260836,260863,261001,261074,261617:
jhb [Fri, 23 May 2014 19:39:58 +0000 (19:39 +0000)]
MFC 260802,260836,260863,261001,261074,261617:
Various fixes for NMI and interrupt injection.
- If a VM-exit happens during an NMI injection then clear the "NMI Blocking"
  bit in the Guest Interruptibility-state VMCS field.
- If the guest exits due to a fault while it is executing IRET then restore
  the state of "Virtual NMI blocking" in the guest's interruptibility-state
  field before resuming the guest.
- Inject a pending NMI only if NMI_BLOCKING, MOVSS_BLOCKING, STI_BLOCKING
  are all clear. If any of these bits are set then enable "NMI window
  exiting" and inject the NMI in the VM-exit handler.
- Handle a VM-exit due to a NMI properly by vectoring to the host's NMI
  handler via a software interrupt.
- Set "Interrupt Window Exiting" in the case where there is a vector to be
  injected into the vcpu but the VM-entry interruption information field
  already has the valid bit set.
- For VM-exits due to an NMI, handle the NMI with interrupts disabled in
  addition to "blocking by NMI" already established by the VM-exit.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 260469:
jhb [Fri, 23 May 2014 19:06:35 +0000 (19:06 +0000)]
MFC 260469:
Fix issue with the virtio descriptor region being truncated
if it was above 4GB.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266592 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r259107
alc [Fri, 23 May 2014 17:47:49 +0000 (17:47 +0000)]
MFC r259107
  Eliminate a redundant parameter to vm_radix_replace().

  Improve the wording of the comment describing vm_radix_replace().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266591 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266208: Speed up pmcstat by improving string hash
emaste [Fri, 23 May 2014 17:46:00 +0000 (17:46 +0000)]
MFC r266208: Speed up pmcstat by improving string hash

  In one case generating callgraph output from a 24MB system-wide sampling
  data file took 17.4 seconds on average.  Profiling showed pmcstat
  spending a lot of time in strcmp, due to hash collisions.

  Replacing the XOR-only hash with FNV-1a reduces the run time for my
  test by 40%.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266590 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265886, r265948
alc [Fri, 23 May 2014 16:46:50 +0000 (16:46 +0000)]
MFC r265886, r265948
  With the new-and-improved vm_fault_copy_entry() (r265843), we can always
  avoid soft page faults when adding write access to user wired entries in
  vm_map_protect().  Previously, we only avoided the soft page fault when
  the underlying pages were copy-on-write.  In other words, we avoided the
  pages faults that might sleep on page allocation, but not the trivial
  page faults to update the physical map.

  On a fork allow read-only wired pages to be copy-on-write shared between
  the parent and child processes.  Previously, we copied these pages even
  though they are read only.  However, the reason for copying them is
  historical and no longer exists.  In recent times, vm_map_protect() has
  developed the ability to copy pages when write access is added to wired
  copy-on-write pages.  So, in this case, copy-on-write sharing of wired
  pages is not to be feared.  It is not going to lead to copy-on-write
  faults on wired memory.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266464:
kib [Fri, 23 May 2014 09:29:04 +0000 (09:29 +0000)]
MFC r266464:
In execve(2), postpone the free of old vmspace until the threads are resumed
and exited.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266582 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257543, r264912, r264972, r264982 and r266472:
hselasky [Fri, 23 May 2014 06:47:47 +0000 (06:47 +0000)]
MFC r257543, r264912, r264972, r264982 and r266472:
- Add preliminary support for the Realtek RTL8188EUS and RTL8188ETV chipsets.
- Add device ID for 'Sanoxy 802.11N' USB
- Initialize rssi variable.
- Fix gcc build, initialize off variable.
- The DELAY() should not be used in USB drivers.
- The usb_pause_mtx() function takes ticks and not milliseconds as last argument.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266466, r266471, r266484, r266505, r266535 and r266542:
hselasky [Fri, 23 May 2014 06:35:45 +0000 (06:35 +0000)]
MFC r266466, r266471, r266484, r266505, r266535 and r266542:
Fix multiple issues in the RSU driver.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266577 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265359 and r265780:
hselasky [Fri, 23 May 2014 06:28:31 +0000 (06:28 +0000)]
MFC r265359 and r265780:
Remove ISA load dependency for the kernel sound
driver module for ARM and MIPS.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265358, r265427, r265777, r265783,
hselasky [Fri, 23 May 2014 06:20:25 +0000 (06:20 +0000)]
MFC r265358, r265427, r265777, r265783,
 r265806, r265872, r266012 and r266394:

- Multiple DWC OTG host mode related fixes, improvements and optimisations.
- Add full support for ISOCHRONOUS transfers to the DWC OTG driver.
- Use the interrupt filter to handle basic USB FIFO interrupts.
- Fixed unbalanced unlock in case of "dwc_otg_init_fifo()" failure.
- Add common spinlock to the USB bus structure.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266297: Update example portion of comment to coincide with r264840
dteske [Thu, 22 May 2014 22:10:16 +0000 (22:10 +0000)]
MFC r266297: Update example portion of comment to coincide with r264840

git-svn-id: svn://svn.freebsd.org/base/stable/10@266562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r266261 from head:
gavin [Thu, 22 May 2014 21:08:32 +0000 (21:08 +0000)]
Merge r266261 from head:

  USB endpoints are almost always single-digits, fix the path in the man
  page to be clearer.

PR: docs/175560
Submitted by: Andreas Gustafsson <gson gson.org>

git-svn-id: svn://svn.freebsd.org/base/stable/10@266559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r266111 from head:
gavin [Thu, 22 May 2014 20:55:57 +0000 (20:55 +0000)]
Merge r266111 from head:

  Fix typo.  Note that although this file is under contrib, it has diverged
  sufficiently from upstream (including a full whitespace commit and large
  portions rewritten) that this change does not move us further from the
  upstream.

PR: docs/186608
Submitted by: Jamie Landeg-Jones <jamie@dyslexicfish.net>

git-svn-id: svn://svn.freebsd.org/base/stable/10@266557 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC mpr(4) changes: r265484, r265485, r265709 and r265712
ken [Thu, 22 May 2014 16:34:00 +0000 (16:34 +0000)]
MFC mpr(4) changes: r265484, r265485, r265709 and r265712

  ------------------------------------------------------------------------
  r265484 | ken | 2014-05-06 23:11:16 -0600 (Tue, 06 May 2014) | 5 lines

  Remove some debugging code.

  Submitted by: Steve McConnell <stephen.mcconnell@avagotech.com>

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265485 | ken | 2014-05-06 23:14:48 -0600 (Tue, 06 May 2014) | 9 lines

  Hold the SIM lock when calling xpt_create_path() and xpt_action() in
  mprsas_SSU_to_SATA_devices().

  This fixes an assertion on shutdown with INVARIANTS enabled with SATA
  drives present on an IR firmware controller.

  Reviewed by: Steve McConnell <stephen.mcconnell@avagotech.com>.

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265709 | ken | 2014-05-08 14:28:22 -0600 (Thu, 08 May 2014) | 15 lines

  Fix TLR (Transport Layer Retry) support in the mps(4) and mpr(4) drivers.

  TLR is necessary for reliable communication with SAS tape drives.

  This was broken by change 246713 in the mps(4) driver.  It changed the
  cm_data field for SCSI I/O requests to point to the CCB instead of the data
  buffer.  So, instead, look at the CCB's data pointer to determine whether
  or not we're talking to a tape drive.

  Also, take the residual into account to make sure that we don't go off the
  end of the request.

  Sponsored by: Spectra Logic Corporation

  ------------------------------------------------------------------------
  ------------------------------------------------------------------------
  r265712 | ken | 2014-05-08 14:46:46 -0600 (Thu, 08 May 2014) | 10 lines

  Add #ifdefs in the mpr(4) driver so that versions of stable/9 that
  have implemented the PIM_NOSCAN rescan functionality will have it
  enabled.

  This is a no-op for head.

  Reviewed by: slm
  Sponsored by: Spectra Logic Corporation

  ------------------------------------------------------------------------

Sponsored by: Spectra Logic, Avago

git-svn-id: svn://svn.freebsd.org/base/stable/10@266548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266116,r266136
jhibbits [Thu, 22 May 2014 05:20:21 +0000 (05:20 +0000)]
MFC r266116,r266136

A page mask size is 12-bits, not 11.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266532 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266426
truckman [Thu, 22 May 2014 00:39:49 +0000 (00:39 +0000)]
MFC r266426

Slightly restructure the final loop in rman_reserve_resource_bound().
Replace with the existing loop termination test with a similar
condition from the nested "if" that may terminate the loop a bit
sooner, but still not too early.   This condition can then be removed
from the nested "if".  Relocate an operator to be style(9) compliant.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix a typo.
gjb [Wed, 21 May 2014 18:58:31 +0000 (18:58 +0000)]
Fix a typo.

Submitted by: Hilko Meyer <hilko.meyer@gmx.de>
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@266516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265534:
pho [Wed, 21 May 2014 09:19:05 +0000 (09:19 +0000)]
MFC r265534:

msync(2) must return ENOMEM and not EINVAL when the address is outside the
allowed range or when one or more pages are not mapped. This according to
The Open Group Base Specifications Issue 7.

Sponsored by: EMC / Isilon storage division

git-svn-id: svn://svn.freebsd.org/base/stable/10@266492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC rev. 265593:
thomas [Wed, 21 May 2014 07:21:36 +0000 (07:21 +0000)]
MFC rev. 265593:
(dd_out): Fix handling of all-zeroes block at end of input with
conv=sparse.

PR: bin/189174
PR: bin/189284
Reviewed by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/10@266488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266006 and r266011:
hselasky [Wed, 21 May 2014 06:29:52 +0000 (06:29 +0000)]
MFC r266006 and r266011:
Fix unload of USB audio kernel module.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdd FreeBSD version 11.0.
pluknet [Tue, 20 May 2014 21:15:47 +0000 (21:15 +0000)]
Add FreeBSD version 11.0.

This is a direct commit to stable/10.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 260237:
jhb [Tue, 20 May 2014 21:05:36 +0000 (21:05 +0000)]
MFC 260237:
Fix a bug in the HPET emulation where a timer interrupt could be lost when the
guest disables the HPET.

The HPET timer interrupt is triggered from the callout handler associated with
the timer. It is possible for the callout handler to be delayed before it gets
a chance to execute. If the guest disables the HPET during this window then the
handler never gets a chance to execute and the timer interrupt is lost.

This is now fixed by injecting a timer interrupt into the guest if the callout
time is detected to be in the past when the HPET is disabled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r266279 and r266280, '-J' flag to ps(1), and
gjb [Tue, 20 May 2014 01:17:52 +0000 (01:17 +0000)]
Document r266279 and r266280, '-J' flag to ps(1), and
corresponding top(1) change.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@266460 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265465:
delphij [Tue, 20 May 2014 00:57:00 +0000 (00:57 +0000)]
MFC r265465:

Don't reply monlist request when it's not enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266195:
markj [Mon, 19 May 2014 19:49:06 +0000 (19:49 +0000)]
MFC r266195:

Remove some prototypes for undefined functions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266452 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC rev. 265926:
thomas [Mon, 19 May 2014 10:08:05 +0000 (10:08 +0000)]
MFC rev. 265926:
(NANO_CONFIG): New variable containing path of config file, so that
the configuration can reference additional files relative to its own
location.

(NANO_MODULES): If set to "default", install all built modules.

Reviewed by: imp

git-svn-id: svn://svn.freebsd.org/base/stable/10@266441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r257808
marius [Mon, 19 May 2014 09:29:59 +0000 (09:29 +0000)]
MFC: r257808

Add new AMT serial port PCI ID on Intel Lynx Point chipset

git-svn-id: svn://svn.freebsd.org/base/stable/10@266436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoBe even more paranoid about overflow.
truckman [Mon, 19 May 2014 04:55:53 +0000 (04:55 +0000)]
Be even more paranoid about overflow.

Requested by: ache

git-svn-id: svn://svn.freebsd.org/base/stable/10@266428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoNuke a couple of unnecessary assigments. Nothing uses the values of rstart
truckman [Mon, 19 May 2014 04:53:43 +0000 (04:53 +0000)]
Nuke a couple of unnecessary assigments.  Nothing uses the values of rstart
and rend after this point.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r256790:
ian [Sun, 18 May 2014 19:28:15 +0000 (19:28 +0000)]
MFC r256790:

  Fix the VCVT instruction. It must round towards zero when converting from
  a floating-point to an integer value. This was not the case causing issues
  when printing certain values.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 258287: Implement pmap_align_superpage().
ian [Sun, 18 May 2014 17:46:48 +0000 (17:46 +0000)]
MFC 258287:  Implement pmap_align_superpage().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 257233: Use size of the MACHINE_ARCH string instead of sizeof(uint32_t).
ian [Sun, 18 May 2014 16:43:47 +0000 (16:43 +0000)]
MFC 257233: Use size of the MACHINE_ARCH string instead of sizeof(uint32_t).

git-svn-id: svn://svn.freebsd.org/base/stable/10@266410 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 257231:
ian [Sun, 18 May 2014 16:39:47 +0000 (16:39 +0000)]
MFC 257231:

  Make sure the PCB is aligned on 8 bytes, we may use ldrd/strd to access it,
  which may have strong alignment requirements.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 257189:
ian [Sun, 18 May 2014 16:17:13 +0000 (16:17 +0000)]
MFC 257189:

  Fix an itt instruction. We need to execute both the mov and b instructions
  when building for Thumb.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 256942, 256943:
ian [Sun, 18 May 2014 16:07:35 +0000 (16:07 +0000)]
MFC 256942, 256943:

  - Fix a typo.
  - Use bus_dmamap_unload(), it is not optional.
  - The new allocator won't return coherent memory for any size > PAGE_SIZE,
  so don't assume we have coherent memory, and explicitely use
  bus_dmamap_sync().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 256873: Make watchdog function conform watchdog(9):
ian [Sun, 18 May 2014 16:03:34 +0000 (16:03 +0000)]
MFC 256873: Make watchdog function conform watchdog(9):

git-svn-id: svn://svn.freebsd.org/base/stable/10@266405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 256941: make sure the frame is indeed in the kernel memory.
ian [Sun, 18 May 2014 16:02:56 +0000 (16:02 +0000)]
MFC 256941: make sure the frame is indeed in the kernel memory.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264765,264766:
jhb [Sun, 18 May 2014 15:28:25 +0000 (15:28 +0000)]
MFC 264765,264766:
- Don't claim the adapter is idle if it is clearing a drive.
- Fix an off by one error when checking for the stop event.  This
  resulted in not showing the most recent event by default.
- When the stop even is hit, break out of the outer loop to stop
  fetching more events.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265624, 265739: Fix interrupt parent property in dts, add SMP support.
ian [Sun, 18 May 2014 13:05:07 +0000 (13:05 +0000)]
MFC 265624, 265739: Fix interrupt parent property in dts, add SMP support.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266397 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 259737, 262646:
jhb [Sun, 18 May 2014 04:33:24 +0000 (04:33 +0000)]
MFC 259737, 262646:
Fix a couple of issues with vcpu state:
- Add a parameter to 'vcpu_set_state()' to enforce that the vcpu is in the
  IDLE state before the requested state transition. This guarantees that
  there is exactly one ioctl() operating on a vcpu at any point in time and
  prevents unintended state transitions.
- Fix a race between VMRUN() and vcpu_notify_event() due to 'vcpu->hostcpu'
  being updated outside of the vcpu_lock().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265915: Build modules in parallel.
ian [Sun, 18 May 2014 01:20:51 +0000 (01:20 +0000)]
MFC 265915: Build modules in parallel.

This is a record-only merge, because the actual change got merged
by accident several days ago along with some other MFC I did.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266389 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265913, 265914:
ian [Sun, 18 May 2014 01:18:42 +0000 (01:18 +0000)]
MFC 265913, 265914:

  Interrupts need to be disabled on entry to cpu_sleep() for ARM.  Given
  that and the need to be in a critical section when switching to idleclock
  mode for event timers, use spinlock_enter()/exit() to achieve both needs.

  Clean up some style nits.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266388 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265861, 265870:
ian [Sun, 18 May 2014 00:55:26 +0000 (00:55 +0000)]
MFC 265861, 265870:

  Make the hardware memory and instruction barrier functions work on armv4
  and armv5 as well.

  Add cpu_l2cache_drain_writebuf(), use it to implement generic_bs_barrier().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265852: Map device memory using PTE_DEVICE rather than PTE_NOCACHE.
ian [Sun, 18 May 2014 00:32:35 +0000 (00:32 +0000)]
MFC 265852:  Map device memory using PTE_DEVICE rather than PTE_NOCACHE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265694, 265705, 265784:
ian [Sun, 18 May 2014 00:30:04 +0000 (00:30 +0000)]
MFC 265694, 265705, 265784:

  Move the mptramp code which is specific to the Marvell ArmadaXP SoC out of
  the common locore.S file and into the mv/armadaxp directory.

  Consolidate all the AP core startup stuff under a single #ifdef SMP block

  Call idcache_inv_all from the AP core entry code before turning on the MMU.
  Also, enable instruction and branch caches, which should be safe now that
  they're properly initialized/invalidated first.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266385 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265440, 265441, 265444, 265445, 265446, 265447:
ian [Sun, 18 May 2014 00:26:42 +0000 (00:26 +0000)]
MFC 265440, 265441, 265444, 265445, 265446, 265447:

  Move the pl310.enabled tunable to hw.pl310.enabled.  Clean up a few minor
  style(9) nits.  Use DEVMETHOD_END.

  Break out the code that figures out the L2 cache geometry to its own
  routine, so that it can be called from multiple places in upcoming changes.

  Call platform_pl310_init() before enabling the controller, and handle the
  case where the controller is already enabled.

  Add defines for the bits in the PL310 debug control register.

  Add a public routine to set the L2 cache ram latencies.  This can be
  called by platform init routines to fine-tune cache performance.

  Enable PL310 power-saving modes and tune the cache ram latencies for imx6.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266384 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265155, 265254:
ian [Sun, 18 May 2014 00:21:14 +0000 (00:21 +0000)]
MFC 265155, 265254:

  Omit from the universe build all config files tagged with #NO_UNIVERSE.

  Add FDT to the VYBRID kernel.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266383 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265208: Honor the max-frequency property if it appears in the fdt data.
ian [Sun, 18 May 2014 00:15:48 +0000 (00:15 +0000)]
MFC 265208: Honor the max-frequency property if it appears in the fdt data.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265207: Use arm_devmap_add_entry() to setup static device mapping.
ian [Sat, 17 May 2014 23:29:45 +0000 (23:29 +0000)]
MFC 265207:  Use arm_devmap_add_entry() to setup static device mapping.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265156: Remove WANDBOARD.common, it was replaced by IMX6.
ian [Sat, 17 May 2014 23:27:02 +0000 (23:27 +0000)]
MFC 265156: Remove WANDBOARD.common, it was replaced by IMX6.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266380 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265099, 265148, 265690:
ian [Sat, 17 May 2014 23:25:20 +0000 (23:25 +0000)]
MFC 265099, 265148, 265690:

  Add SMP support for Zedboard.

  Use edge-triggered interrupts rather than polling loops to avoid missing
  transitions of the INIT_B line.  Also, release the mutex during uiomove().

  Convert the Zynq SoC support to the new routines for static device mapping.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265111: Make a declaration into a proper function prototype.
ian [Sat, 17 May 2014 23:21:53 +0000 (23:21 +0000)]
MFC 265111: Make a declaration into a proper function prototype.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266378 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265059: Set the new floating point exception mask correctly.
ian [Sat, 17 May 2014 23:20:29 +0000 (23:20 +0000)]
MFC 265059: Set the new floating point exception mask correctly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266377 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265038:
ian [Sat, 17 May 2014 23:16:18 +0000 (23:16 +0000)]
MFC 265038:

  Move common device tree informations to separate dtsi files for A10 and
  A20 SoC. Change cubieboard1 and cubieboard2 dts files accordingly.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265035: Move duplicated code to print l2 config into the common code.
ian [Sat, 17 May 2014 23:07:26 +0000 (23:07 +0000)]
MFC 265035: Move duplicated code to print l2 config into the common code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265023, 265024, 265036:
ian [Sat, 17 May 2014 23:03:04 +0000 (23:03 +0000)]
MFC 265023, 265024, 265036:

  There is no difference between IPI_STOP and IPI_STOP_HARD on ARM, so
  map them both to the same interrupt number like other arches do.

  Flush and invalidate caches on each CPU as part of handling IPI_STOP.

  Don't use multiprocessing-extensions instruction on processors that don't
  support SMP.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264990, 264994, 265020, 265025:
ian [Sat, 17 May 2014 22:50:16 +0000 (22:50 +0000)]
MFC 264990, 264994, 265020, 265025:

  Call cpu_icache_sync_range() rather than sync_all since we know the range
  and flushing the entire icache is needlessly expensive.

  Provide a proper armv7 implementation of icache_sync_all rather than
  using armv7_idcache_wbinv_all, because wbinv_all doesn't broadcast the
  operation to other cores.  In elf_cpu_load_file() use icache_sync_all()
  and explain why it's needed (and why other sync operations aren't).

  Remove cpu_idcache_wbinv_all() from kdb_cpu_trap(), it's no longer needed.

  Explain why wbinv_all is SMP-safe when dumping, and add a missing l2 cache
  flush.  (Either it was missing here, or it isn't needed in the minidump
  case.  Adding it here seems like the safer path to consistancy.)

git-svn-id: svn://svn.freebsd.org/base/stable/10@266373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264981, 264983, 264985:
ian [Sat, 17 May 2014 22:31:40 +0000 (22:31 +0000)]
MFC 264981, 264983, 264985:

  The freescale imx uart driver works for the whole i.MX family, so rename
  the header file to not have "5xx" in the name.

  Flesh out imx_uart_init() so that we're not relying on u-boot to init
  the hardware (meaning uarts other than the console will work).

  Reword a comment block a bit.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264977:
ian [Sat, 17 May 2014 22:29:24 +0000 (22:29 +0000)]
MFC 264977:

  Stop calling imx51_ccm_foo() clock functions from imx6 code.  Instead
  define a few imx_ccm_foo() functions that are implemented by the imx51
  or imx6 ccm code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264696, 264721,
ian [Sat, 17 May 2014 22:19:16 +0000 (22:19 +0000)]
MFC 264696, 264721,

  Add the deprecated fp{get,set}* functions, a few ports use them.

  Rename the fp{get,set}* files so they no longer conflict with the
  softfloat version of these files.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264702: Remove uncessary armv6 cache and TLB maintenance ops.
ian [Sat, 17 May 2014 22:05:31 +0000 (22:05 +0000)]
MFC 264702: Remove uncessary armv6 cache and TLB maintenance ops.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266369 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264694: Fix a comment typo; conversion tables are for leap years.
ian [Sat, 17 May 2014 22:03:44 +0000 (22:03 +0000)]
MFC 264694: Fix a comment typo; conversion tables are for leap years.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264428:
ian [Sat, 17 May 2014 22:02:26 +0000 (22:02 +0000)]
MFC 264428:

  Improve the i.MX53 / Digi DTS:

  * Fix the IPU address.
  * Fix the PATA definition.
  * Add another I2C.
  * Add more UARTs.
  * Add SATA.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266367 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264389: Fix the style of ata_interrupt_locked().
ian [Sat, 17 May 2014 22:01:17 +0000 (22:01 +0000)]
MFC 264389: Fix the style of ata_interrupt_locked().

git-svn-id: svn://svn.freebsd.org/base/stable/10@266366 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264251: Updates to i.MX53:
ian [Sat, 17 May 2014 22:00:10 +0000 (22:00 +0000)]
MFC 264251:  Updates to i.MX53:

  * Define support for the SDHCI driver, although it doesn't work yet
  * Fix the memory mappings for IPU

git-svn-id: svn://svn.freebsd.org/base/stable/10@266365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264230: Move dts files accidentally placed in arm dir to powerpc dir.
ian [Sat, 17 May 2014 21:55:00 +0000 (21:55 +0000)]
MFC 264230: Move dts files accidentally placed in arm dir to powerpc dir.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264219: Move sys/arm/econa to sys/arm/cavium/cns11xx.
ian [Sat, 17 May 2014 21:53:34 +0000 (21:53 +0000)]
MFC 264219:  Move sys/arm/econa to sys/arm/cavium/cns11xx.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266363 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264203, 264204, 264206, 264218:
ian [Sat, 17 May 2014 21:46:25 +0000 (21:46 +0000)]
MFC 264203, 264204, 264206, 264218:

  Tell VM we now have ARM platforms with physically discontiguous memory.

  Define the full 1024M of ram on the imx51 and imx53 boards.

  Use a more professional uart device description.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266362 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264190:
ian [Sat, 17 May 2014 21:35:26 +0000 (21:35 +0000)]
MFC 264190:

  Mark __fixdfdi/__aeabi_d2lz with COMPILER_RT_ABI so it uses the correct
  calling convention for __aeabi_* functions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264180, 264181, 264182:
ian [Sat, 17 May 2014 21:31:58 +0000 (21:31 +0000)]
MFC 264180, 264181, 264182:

  Follow files.imx51 and add vt support for imx53.

  Add fsl,imx53 compatible string.

  Need to include machine/fdt.h in vt_early_fb.c

git-svn-id: svn://svn.freebsd.org/base/stable/10@266360 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264160: Remove code under PMAP_CACHE_VIVT, not compiled on armv6.
ian [Sat, 17 May 2014 21:28:49 +0000 (21:28 +0000)]
MFC 264160:  Remove code under PMAP_CACHE_VIVT, not compiled on armv6.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264150: Exynos: Correct the end address of the video frame buffer.
ian [Sat, 17 May 2014 21:26:33 +0000 (21:26 +0000)]
MFC 264150:  Exynos: Correct the end address of the video frame buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266358 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264183: Add a couple more required TLB flushes.
ian [Sat, 17 May 2014 21:23:46 +0000 (21:23 +0000)]
MFC 264183:   Add a couple more required TLB flushes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264137: Switch wandboards over to the common IMX6 kernel config, which
ian [Sat, 17 May 2014 21:19:44 +0000 (21:19 +0000)]
MFC 264137:  Switch wandboards over to the common IMX6 kernel config, which
has SMP enabled.  Also switch IMX6 to use SCHED_ULE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264137: Switch wandboards over to the common IMX6 kernel config, which
ian [Sat, 17 May 2014 21:18:08 +0000 (21:18 +0000)]
MFC 264137:  Switch wandboards over to the common IMX6 kernel config, which
has SMP enabled.  Also switch IMX6 to use SCHED_ULE.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264128, 264129, 264130, 264135,
ian [Sat, 17 May 2014 21:07:54 +0000 (21:07 +0000)]
MFC 264128, 264129, 264130, 264135,

  Fix TTB set operation for armv7. Perform sychronization (by "isb" barrier)
  after TTB is set.

  Fix TLB maintenance issues for armv6 and armv7.

    - Add cpu_cpwait to comply with the convention.
    - Add missing TLB invalidations, especially in pmap_kenter & pmap_kremove
      with distinguishing between D and ID pages.
    - Modify pmap init/bootstrap invalidations to ID, just to be safe.
    - Fix TLB-inv and PTE_SYNC ordering.

  Allocate per-cpu resources for doing pmap_zero_page() and pmap_copy_page().
  This is performance enhancement rather than bugfix.

  We don't support any ARM systems with an ISA bus and don't need a freelist
  of memory to support ISA addressing limitations.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264052, 264057, 264065, 264094, 264103, 264120
ian [Sat, 17 May 2014 20:52:10 +0000 (20:52 +0000)]
MFC 264052, 264057, 264065, 264094, 264103, 264120

  Actually save the mpcore clock frequency retrieved from fdt data.

  imx6..
  - Don't call sdhci_init_slot() until after handling the FDT properties
    related to detecting card presence.
  - Flag several sysctl variables as tunables.
  - Rework the cpu frequency management code for imx6 to add "operating
    points" and min/max frequency controls.

  generic timer...
  - Setup both secure and non-secure timer IRQs.
    We don't know our ARM security state, so one of them will operate.
  - Don't set frequency, since it's unpossible in non-secure state.
    Only rely on DTS clock-frequency value or get clock from timer.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264054, 264056
ian [Sat, 17 May 2014 20:22:22 +0000 (20:22 +0000)]
MFC 264054, 264056

  Switch imx6 to using the mpcore per-cpu event timers, but continue to use
  the GPT timer, which is fixed-frequency, as a timecounter.

  Change NO_EVENTTIMERS from an arm-specific to an MI option, so that it can
  be used in MI code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 264019, 264041, 264048, 264049, 264050, 264051
ian [Sat, 17 May 2014 20:10:12 +0000 (20:10 +0000)]
MFC 264019, 264041, 264048, 264049, 264050, 264051

  Add support for event timers whose clock frequency can change while running.

  Apparently all ARM configs build kern_et.c, but only a few of them also
  build kern_clocksource.c, un-break the build by not referencing functions in
  kern_clocksource if NO_EVENTTIMERS is defined.

  Add variable-frequency support to the arm mpcore eventtimer driver.

  mpcore_timer: Disable the timer and clear any pending bit, then setup the
  new counter register values, then restart the timer.  Also re-nest the parens
  properly for casting the result of converting time and frequency to a count.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r266165, power management bug with Intel Turbo Boost.
gjb [Sat, 17 May 2014 19:45:40 +0000 (19:45 +0000)]
Document r266165, power management bug with Intel Turbo Boost.

Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@266343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 263910, 263913, 263914, 263933, 263934, 263935, 263936, 263981, 263982,
ian [Sat, 17 May 2014 19:37:04 +0000 (19:37 +0000)]
MFC 263910, 263913, 263914, 263933, 263934, 263935, 263936, 263981, 263982,

  Add more flags for the fpexc register from the ARM1176JZF-S Manual

  Initialise fpscr to a sane value when we create the pcb. This sets NaNs to
  be the default NaN and for denormalised numbers to be flushed to zero.

  VFP fixes/cleanups for ARM11:
   * Save the required VFP registers on context switch. If the exception bit
     is set we need to save and restore the FPINST register, and if the fp2v
     bit is also set we need to save and restore FPINST2.
   * Move saving and restoring the floating point control registers to C.
   * Clear the fpexc exception and fp2v flags on a floating-point exception.
   * Signal a SIGFPE if the fpexc exception flag is set on an undefined
     instruction. This is how the ARM core signals to software there is a
     floating-point exception.

  Add Cortex-A15 cpu id revisions.

  Exynos/Arndale...
  - Merge SoC-common parts
  - Enable iicbus device
  - Directly call kmem_alloc_contig to allocate framebuffer memory
    and pass VM_MEMATTR_UNCACHEABLE (no-cache, no-buffer).
    This fixes screen refreshing problem when data is updated too slowly.
  - Add support for keyboard used in Samsung Chromebook (ARM machine)
    Support covers device drivers for:
    - Interrupt Combiner
    - gpio/pad, External Interrupts Controller (pad)
    - I2C Interface
    - Chrome Embedded Controller
    - Chrome Keyboard
  - Use new gpio dev class in EHCI driver
  - Expand device tree information
  - Release i2c bus on detach.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265013
loos [Sat, 17 May 2014 19:16:45 +0000 (19:16 +0000)]
MFC r265013

Revert r258678.  Make the led gpio-specifier match again the #gpio-cells
settings from the GPIO controller, which i had broken in r258678.  Restore
the active-low flag.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266340 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 259641,259863,259924,259937,259961,259978,260380,260383,260410,260466,
jhb [Sat, 17 May 2014 19:11:08 +0000 (19:11 +0000)]
MFC 259641,259863,259924,259937,259961,259978,260380,260383,260410,260466,
260531,260532,260550,260619,261170,261453,261621,263280,263290,264516:
Add support for local APIC hardware-assist.
- Restructure vlapic access and register handling to support hardware-assist
  for the local APIC.
- Use the 'Virtual Interrupt Delivery' and 'Posted Interrupt Processing'
  feature of Intel VT-x if supported by hardware.
- Add an API to rendezvous all active vcpus in a virtual machine and use
  it to support level triggered interrupts with VT-x 'Virtual Interrupt
  Delivery'.
- Use a cheaper IPI handler than IPI_AST for nested page table shootdowns
  and avoid doing unnecessary nested TLB invalidations.

Reviewed by: neel

git-svn-id: svn://svn.freebsd.org/base/stable/10@266339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoAdds the ADC driver for TI AM3xxx SoC family.
loos [Sat, 17 May 2014 19:06:46 +0000 (19:06 +0000)]
Adds the ADC driver for TI AM3xxx SoC family.

The ADC has a 12bit resolution and its raw output can be read via sysctl(8)
interface.

The driver allows the setup of ADC clock, samples average and open delay
(the number of clock cycles to wait before start the conversion).

The TSC_ADC module is set in the general purpose mode (no touchscreen
support).

Tested on Beaglebone-black.

Written based on AM335x TRM.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266338 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 263631, 263637, 263664, 263676, 263679, 263698, 263711,
ian [Sat, 17 May 2014 18:53:36 +0000 (18:53 +0000)]
MFC 263631, 263637, 263664, 263676, 263679, 263698, 263711,

  Implement __flt_rounds for ARMv6 hard-float. The fpscr register stores the
  current rounding mode used by the VFP unit.

  Simplify how we build MACHINE_ARCH. There are 3 options that may be set
  however only arm, armeb, armv6, and soon armv6hf will be used.

  Add the llvm/clang patch for r263619.

  Reorder the pmap macros so "ARM_MMU_V6 + ARM_MMU_V7" is first. As they are
  identical this allows us to build for both v6 and v7 together.

  Add code for enabling second CPU core for A20 SoC.
  Enable SMP on Cubieboard2.

  Switch to freebsd.org emal address in copyright.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 263250, 263251, 263424, 263425, 263426, 263427, 263430, 263431
ian [Sat, 17 May 2014 17:54:38 +0000 (17:54 +0000)]
MFC 263250, 263251, 263424, 263425, 263426, 263427, 263430, 263431

  Use the same cache terminology as the ARM docs in comments. No
  functional changes.

  Use armv7 TLB flush code, not arm11, for cortex-a processors.

  Exynos/ Arndale...
  - Disable debugging by default.
  - Add display-related and clk devices to the tree
  - Prevent resources intersection with EHCI driver
  - Add display-related and clk devices to the tree
  - Prevent resources intersection with EHCI driver
  - Add driver for Display Controller.
  - Add support for Samsung Chromebook (ARM Cortex A15 machine).
  - Rename mct and ehci drivers files to match common naming.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266332 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 263301
ian [Sat, 17 May 2014 17:34:37 +0000 (17:34 +0000)]
MFC 263301

  In kernel config files, it is supposed to be 'options<space><tab>' not
  'options<tab><tab>', per long standing (but recently not so strictly
  enforced) convention.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266331 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 261357, 261358, 261421:
ian [Sat, 17 May 2014 17:18:35 +0000 (17:18 +0000)]
MFC 261357, 261358, 261421:

  Enable SCHED_ULE for ppc book-e.

  Add driver for the ADT7460/ADT7467 fan controller found in
  later PowerBooks and iBooks.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 263246: Align all comments in config files on same column.
ian [Sat, 17 May 2014 16:57:17 +0000 (16:57 +0000)]
MFC 263246:  Align all comments in config files on same column.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 263245: Make all the comments '# ' and align to same column.
ian [Sat, 17 May 2014 16:46:15 +0000 (16:46 +0000)]
MFC 263245:  Make all the comments '# ' and align to same column.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266328 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265850
alc [Sat, 17 May 2014 14:35:18 +0000 (14:35 +0000)]
MFC r265850
  About 9% of the pmap_protect() calls being performed by
  vm_map_copy_entry() are unnecessary.
  Eliminate the unnecessary calls.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266315 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 262989, 263210, 263230, 263231, 263239, 263242, 263243,
ian [Sat, 17 May 2014 14:22:37 +0000 (14:22 +0000)]
MFC 262989, 263210, 263230, 263231, 263239, 263242, 263243,

  Export _libc_arm_fpu_present as a private symbol to be used by other
  system libraries, for example libm.

  On armv6 access both the softfloat and, when available, the vfp to get and
  set the floating-point environment.

  Build fenv-vfp.c with the softfp float abi. Without this gcc generates an
  incorrect assembly file that doesn't allow for vfp instructions.

  Only build the vfp/softfp switching code on armv6 as we don't support vfp
  on anything earlier than this. This should fix the armeb and arm builds
  when using gcc.

  Add an optimised version of the float and double helper functions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@266314 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f