Move initialization of CESA decoding windows from common section
to driver specific files.

- window initialization is done during device attach
- CESA TDMA decoding windows values are set based on DTS,
 not copied from CPU registers
- remove unnecessary virtual mapping
- update dts file

Obtained from: Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Initialize L2 cache for Armada XP.

Obtained from:	Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250292 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Properly initialize Armada XP MP subsystem.

- correct setting of Auxiliary Control Register for MP mode
- correct setting of Auxiliarty Debug registers
- cleanup management of memory contains bootup code
- early initialization of Coherency Fabric (MP and not-MP mode)
- enable Snoop Filtering

Obtained from:	Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250293 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid calling pcpu_init() simultaneously.

pcpu_init() updates queue, so cannot be called by multiple cores
at the same time

Obtained from:	Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disable decoding windows with no FDT entry.

- On ARMADAXP B0 (GP development board) we are not able to use PCI due to
   whole 32-bit address space used by 4GB of RAM memory.
- Change is required to destroy unnecessary window to free address space
   for PCI and other devices
- Fix offset value for SDRAM decoding windows

Obtained from:	Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250295 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct comment about initial VA=>PA mapping


git-svn-id: svn://svn.freebsd.org/base/head@250296 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix L2 PTE access permissions management.

Keep following access permissions:

APX     AP     Kernel     User
 1      01       R         N
 1      10       R         R
 0      01      R/W        N
 0      11      R/W       R/W

Avoid using reserved in ARMv6 APX|AP settings:
- In case of unprivileged (user) access without permission to write,
  the access permission bits were being set to reserved for ARMv6
  (but valid for ARMv7) value of APX|AP = 111.

Fix-up faulting userland accesses properly:
- Wrong condition statement in pmap_fault_fixup() caused that
  any genuine, unprivileged access was being fixed-up instead of
  just skip doing anything and return. Staring from now we ensure
  proper reaction for illicit user accesses.

L2_S_PROT_R and L2_S_PROT_U names might be misleading as they do not
reflect real permission levels. It will be clarified in following
patches (switch to AP[2:1] permissions model).

Obtained from: Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250297 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix byte order of ATA WWN when converting it to SCSI LUN ID.


git-svn-id: svn://svn.freebsd.org/base/head@250298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix page reference emulation on ARMv6 and v7

Submitted by: Zbigniew Bodek
Obtained from: Semihalf


git-svn-id: svn://svn.freebsd.org/base/head@250299 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Back out r249318, r249320 and r249327 due to a heisenbug most
likely related to a race condition in the ipi_hash_lock with
the exact cause currently unknown but under investigation.


git-svn-id: svn://svn.freebsd.org/base/head@250300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rework r250298 in more correct way.


git-svn-id: svn://svn.freebsd.org/base/head@250301 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a typo in an error message.

Obtained From:	DragonFlyBSD (commit 66e72101cc32272ae370b895ca3d9e3e99c5c3a8)


git-svn-id: svn://svn.freebsd.org/base/head@250302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove includes for old versions of FreeBSD.

Reviewed by:	stass
Obtained From:	DragonFlyBSD
MFC After:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
objdump output changed indentation from 1 space to 2 spaces somewhere between
FreeBSD9 and CURRENT. Removing this rather unnecessary check which expects the
second character of assembly line to be a hex number to make pmcannotate
actually annotate the code and assembly.

PR: 165654
Submitted by:	Vitaly Magerya <vmagerya@gmail.com>
Reviewed by:	attilio
Approved by:	sbruno (mentor)
MFC after:	3 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250304 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Avoid deactivating the page if it is already on a queue, only requeue
the page.  This both reduces the number of queues locking and avoids
moving the active page to inactive list just because the page was read
or written.

Based on the suggestion by:	alc
Reviewed by: alc
Tested by:   pho


git-svn-id: svn://svn.freebsd.org/base/head@250310 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Simplify printf().


git-svn-id: svn://svn.freebsd.org/base/head@250312 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Improve KASSERT() message.


git-svn-id: svn://svn.freebsd.org/base/head@250313 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fixing a clang warning about using uninitialized variable.

PR: 176712
Suggested by:	jhb
Approved by:	sbruno (mentor)


git-svn-id: svn://svn.freebsd.org/base/head@250314 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add two missing NetBSD releases

Obtained from:	NetBSD


git-svn-id: svn://svn.freebsd.org/base/head@250315 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
I miscopied the previous date.  Also add another NetBSD release.

Obtained from:	NetBSD


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