Merge r234561 from busdma_machdep.c to ARMv6 version of busdma:

Interrupts must be disabled while handling a partial cache line flush,
as otherwise the interrupt handling code may modify data in the non-DMA
part of the cache line while we have it stashed away in the temporary
stack buffer, then we end up restoring a stale value.

PR:             160431
Submitted by:   Ian Lepore


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244912 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
PL310 driver update:

- Add pl310.disable tunable to disable L2 cache altogether. In
    order to make sure that it's 100% disabled we use cache event
    counters for cache line eviction and read allocate events
    and panic if any of these counters increased. This is purely
    for debugging purpose
- Direct access DEBUG_CTRL and CTRL might be unavailable in
    unsecure mode, so use platform-specific functions for
    these registers
- Replace #if 1 with proper erratum numbers
- Add erratum 753970 workaround
- Remove wait function for atomic operations
- Protect cache operations with spin mutex in order to prevent race condition
- Disable instruction cache prefetch and make sure data cache
    prefetch is enabled in OMAP4-specific intialization


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Explicitly specify that the beforelinking target depends on the
generated object files, ensuring that the beforelinking recipe won't be
executed until compilation has finished.

Also define SHLIB_NAME_FULL to denote ${SHLIB_NAME}.debug if
DEBUG_FILES is set and ${SHLIB_NAME} otherwise, which helps avoid
obfuscating the compilation and linking rules.

Reviewed by:	emaste
Approved by:	emaste (co-mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244915 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add interrupt for PL310 controller


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document the known values of the RTL release field in the cache is register


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Fix a Subversion property.

Test scripts should have keywords; only pure output that must match exactly
should have keywords disabled.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f