aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/topology.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2020-10-12 08:54:33 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2020-11-05 23:34:25 +1100
commit33fe43cfd9b1c20f6f9899b44bf04e91823ff1c9 (patch)
tree7b59cf264092897fcef311841c33540604407040 /arch/powerpc/include/asm/topology.h
parentpowerpc/8xx: Always fault when _PAGE_ACCESSED is not set (diff)
downloadlinux-dev-33fe43cfd9b1c20f6f9899b44bf04e91823ff1c9.tar.xz
linux-dev-33fe43cfd9b1c20f6f9899b44bf04e91823ff1c9.zip
powerpc/8xx: Manage _PAGE_ACCESSED through APG bits in L1 entry
When _PAGE_ACCESSED is not set, a minor fault is expected. To do this, TLB miss exception ANDs _PAGE_PRESENT and _PAGE_ACCESSED into the L2 entry valid bit. To simplify the processing and reduce the number of instructions in TLB miss exceptions, manage it as an APG bit and get it next to _PAGE_GUARDED bit to allow a copy in one go. Then declare the corresponding groups as handling all accesses as user accesses. As the PP bits always define user as No Access, it will generate a fault. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/80f488db230c6b0e7b3b990d72bd94a8a069e93e.1602492856.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/include/asm/topology.h')
0 files changed, 0 insertions, 0 deletions