HomeFreeBSD

riscv: Port improvements from arm64/amd64 pmaps, part 1

Description

riscv: Port improvements from arm64/amd64 pmaps, part 1

  • When promoting, do not require that all PTEs all have PTE_A set. Instead, record whether they did and store this information in the PTP's valid bits.
  • Synchronize some comments in pmap_promote_l2().
  • Make pmap_promote_l2() scan starting from the end of the 2MB range instead of the beginning. See the commit log for 9d1b7fa31f510 for justification of this, which I believe applies here as well.

Reviewed by: kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D42288

(cherry picked from commit 7703ac2e983bcd44ba93878f52eb30355cbc4821)

Details

Provenance
markjAuthored on Nov 2 2023, 6:33 PM
Reviewer
kib
Differential Revision
D42288: riscv: Port improvements from arm64/amd64 pmaps, part 1
Parents
rG8f269234b700: graid3: Fix teardown races
Branches
Unknown
Tags
Unknown