HomeFreeBSD

powerpc64: change CAS to support Radix MMU

Description

powerpc64: change CAS to support Radix MMU

Use radix_mmu environment variable to select between Hash or Radix
MMU, when performing the CAS method call. This matches kernel's
behavior, by selecting Hash MMU by default and Radix if radix_mmu
is not zero, to make sure that both loader and kernel always select
the same MMU.

The device tree is queried to detect Radix/GTSE support and to
find out if CAS is supported, making the old CPU version and HV
bit checks unnecessary now.

Reviewed by: jhibbits
MFC after: 2 weeks
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D31951

Details

Provenance
luporlAuthored on Sep 15 2021, 6:12 PM
Reviewer
jhibbits
Differential Revision
D31951: powerpc64: change CAS to support Radix MMU
Parents
rG78bf40e10c5a: arm: rockchip: rk3288: Use the macros that already exists in rk_cru.h
Branches
Unknown
Tags
Unknown