This revision contains two commits:
powerpc/radix_mmu: Preserve full radix range flushes on POWER9
The reversed unsigned range subtraction selected a full flush for every
nonempty range. Correct the length calculation and restore per-page
invalidation for ranges of up to eight pages on non-POWER9 processors.
Keep the existing full-flush policy on POWER9, where each per-page
invalidation repeats the ERAT and store queue errata workarounds and
enabling the loop has been reported to regress performance.
Fixes: 65bbba25d214 ("powerpc64: Implement Radix MMU for POWER9 CPUs")
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation, Reliable Computer Systems Labpowerpc/radix_mmu: Restrict radix TLB errata fixups to POWER9
The ERAT invalidation and store queue ordering workarounds apply to
POWER9. Preserve its existing page invalidation sequence, but skip the
two additional tlbie instructions and ptesync barriers on other CPUs.
Fixes: 7d7f26f5b613 ("powerpc/radix_mmu: Apply errata fixes for POWER9 TLB...")
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation, Reliable Computer Systems Lab