Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\cleanup.c Create Date:2022-07-28 08:06:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:amd_special_default_mtrr

Proto:int __init amd_special_default_mtrr(void)

Type:int

Parameter:Nothing

833  If CPU vendor != X86_VENDOR_AMD && CPU vendor != X86_VENDOR_HYGON Then Return 0
836  If CPU family < 0xf Then Return 0
839  If dmsr with exception handling (MSR_K8_SYSCFG, & l, & h) < 0 Then Return 0
845  If (l & (Newer AMD K8s and later CPUs have a special magic MSR way to force WB* for memory >4GB. Check for that here.* Note this won't check if the MTRRs < 4GB where the magic bit doesn't* apply to are wrong, but so far we don't know of any such case in the wild. | Tom2ForceMemTypeWB)) == (Newer AMD K8s and later CPUs have a special magic MSR way to force WB* for memory >4GB. Check for that here.* Note this won't check if the MTRRs < 4GB where the magic bit doesn't* apply to are wrong, but so far we don't know of any such case in the wild. | Tom2ForceMemTypeWB) Then Return 1
848  Return 0
Caller
NameDescribe
get_mtrr_stateGrab all of the MTRR state for this CPU into *state