HomeFreeBSD

powerpc64: clear low-order bits of ARPN

Description

powerpc64: clear low-order bits of ARPN

PowerISA 2.07B says that the low-order p-12 bits of the real page number
contained in ARPN and LP fields of a PTE must be 0s and are ignored
by the hardware (Book III-S, 5.7.7.1), where 2^p is the actual page size
in bytes, but we were clearing only the LP field.

This worked on bare metal and QEMU with KVM, that ignore these bits,
but caused a kernel panic on QEMU with TCG, that expects them to be
cleared.

This fixes running FreeBSD with HPT superpages enabled on QEMU
with TCG.

Sponsored by: Eldorado Research Institute (eldorado.org.br)

(cherry picked from commit 3d0399c718b260da087d28825069f26d4f670065)

Details

Provenance
luporlAuthored on Mar 25 2021, 4:30 PM
Parents
rG0e0aa1eed8fa: nfsd: fix replies from session cache for retried RPCs
Branches
Unknown
Tags
Unknown