HomeFreeBSD

amd64 pmap: Use INVPCID_CTXGLOB on Ryzen processors

Description

amd64 pmap: Use INVPCID_CTXGLOB on Ryzen processors

Recent AMD Ryzen processors support a limited form of the invpcid
instruction, even when they do not support PCID functionality. In
particular, they support the type 2 form of the instruction, what we
call INVPCID_CTXGLOB. This is faster than toggling PGE in cr4.

Reviewed by: kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D51565

Details

Provenance
alcAuthored on Jul 7 2025, 2:45 AM
Reviewer
kib
Differential Revision
D51565: amd64 pmap: enable the use of INVPCID_CTXGLOB on AMD Ryzen processors
Parents
rGd0144563a0c1: UPDATING: Correct typo in hw.usb.usbhid.enable tunable
Branches
Unknown
Tags
Unknown